editing a Theme Thread last updated on 2004-04-17 11:01:08

Posted by member 137182 on 2004-03-31 08:49:07

Hi,

now i found one theme, that is right okey in its Style and it have a very small cpu usage..

Now, it is the simplicity Theme. But there is one thing, thats nerve me. I can only see the taskbar, or the winamp controll or the info thing.. but ich wannt to see them all the time.. and not only one of them..

so i wnt to edit the theme, but i've got no idea how to do this..

Posted by member 12798 on 2004-03-31 09:45:35 link

read docs and learn from them, that's the only way...

Posted by member 137182 on 2004-03-31 12:44:15 link

mhm.. ok

But one question i hvae got^^..

The Clock style is in the english way. Therefore in pm and am. But i'm from germany(thats the reason for my bad english^^) and i usually see the time in the 24houre style. So i want the time to say that:

20.34 and not 8.34 Pm

In the base.rx the time is so declared:

TimeLabelText "[date('h')]:[date('nn')]"

But how can i change it to the 24 houre style?

Posted by member 7 on 2004-04-01 04:55:41 link

It's not hard. :) Check the (x)label documentation in Litestep\modules\docs\. You need to change the 'h' part to something else, the docs will tell you what it is.

Posted by member 137182 on 2004-04-01 05:02:13 link

ah.. ok... this is what i search for^^..

Posted by member 137182 on 2004-04-01 05:46:24 link

next question^^..

i edit a bmp and the pink color is now not transpereny but pink on my desktop. And thats not so beautifull^^..

So how must i save the bmp, that the pink color is transpereny?

Posted by member 99 on 2004-04-01 09:08:45 link

First you must determine whether the module in question supports magic pink transparency, then you must read its documentation to find out how to turn it on. (assuming you are using FF00FF, of course)

Posted by member 137182 on 2004-04-01 09:41:31 link

i just editing the bmp.. not a new one.. it was pink before i edit it.. and so i think that it had to work, but now it is pink and not tranperency...

Posted by member 1316 on 2004-04-01 19:00:25 link

did you change the shade of pink? magic pink has to be a very exact color code (FF00FF), otherrwise it'll just show up as pink.

Posted by member 137182 on 2004-04-02 05:26:42 link

it is FF00FF..

but what kind of bmp image should i save? 8 bit, 4bit?

Posted by member 12798 on 2004-04-02 09:42:19 link

err... try 24 bit :D

8 bit would make litestep look like being from the early 90s or something (4 bit even worse) :D

Posted by member 137182 on 2004-04-05 03:54:08 link

mhm.. my ps has some kind of error with the 24 bit.. i dont't know why..

i try some other progs..

Posted by member 137182 on 2004-04-07 05:56:18 link

HI,

a new Problem. I edited the simplicity theme to show the systray always. Now it is shown allway, but i want a button, which can hide it. But this is not the problem^^.The first thing i had to know is how can i change values in the flags.rc. I thought it just go so:

flags.rc:

tray_on 0

base.rc:

*Shortcut "" 1020 -63 systray_right.bmp systray_righta.bmp .none #19 !Enabletray
*Shortcut "" 1000 -63 systray_left.bmp systray_lefta.bmp .none #19 !Disabletray

scrip.rc:

*Script bang !Enabletray
*Script exec !textreplace "$ConfigDir$flags.rc" "^(tray_on *)0" "\11"
*Script exec !Recycle
*Script ~bang

*Script bang !Disabletray
*Script exec !textreplace "$ConfigDir$flags.rc" "^(tray_on *)1" "\10"
*Script exec !Recycle
*Script ~bang

But he doesn't do anything.. i just want to change the tray_on 0 in tray_on 1 ...

how does this work?

btw.: I use shortcut2 2.0.1

Posted by member 137182 on 2004-04-08 10:46:52 link

nobody knows something?

Posted by member 1949 on 2004-04-08 11:14:23 link

Well Im not the best with textedit.

I would do this if it where mine.

*Script bang !EnableTray
*Script exec !varset tray_on "1"
*Script exec !varsaveall replace
*Script exec !recycle
*Script ~bang

*Script bang !DisableTray
*Script exec !varset tray_on "0"
*Script exec !varsaveall replace
*Script exec !recycle
*Script ~bang

Posted by member 137182 on 2004-04-08 12:45:25 link

but there, litestep dowsn't know, where he should replace the variable..

Posted by member 145964 on 2004-04-09 16:36:00 link

Where are the Documents to Learn. First time trying. hope i dont give up!

Posted by member 7 on 2004-04-11 01:36:47 link

Schwarzer Ritter: Just appending your question to a random thread won't really help to get many answers. Try C:\Litestep\Modules\Docs.

Posted by member 137182 on 2004-04-12 12:25:20 link

sorry for the pushpost, but my problem is still alive..

Posted by member 32550 on 2004-04-12 13:14:08 link

why are you working so hard with mzscript? just use a simple bang with textedit:
!execute [!systrayshow][!shortcutgrouphide (number of group with show button)][!shortcutgroupshow (number of group with hide button)][!textreplace @$ConfigDir$flags.rc@ @^tray_on@ @tray_on 0@]

else if systray is hidden:
!execute [!systrayhide][!shortcutgrouphide (number buttonnumber of group with hide button)][!shortcutgroupshow (number of group with show )][!textreplace @$ConfigDir$flags.rc@ @^tray_on@ @tray_on 1@]


Much more easier and you need no recycle. The var will be saved that it be shown if you recycle.....

Posted by member 137182 on 2004-04-15 09:01:41 link

that was not my theme^^.. and the creator has made it so and i thoght, thats would be alright^^

but, i don't know why, the textreplace bang doesn't work..

The file, where i want to replace is here: themes\simplicity\config and it is named test.rc . (i changed it in your bang)

In this rc file is only one line. tray
And this should be replaced with may or something else^^

I tried it so:

*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #19 !textreplace @$ConfigDir$test.rc@ @tray@ @may@

but i doesn't work..

Posted by member 32550 on 2004-04-15 12:00:13 link

that couldn't work
the textreplace sting is like:

!textreplace @path_and_file/to_search.rc@ @^string_to_search@ @string_to_relpace value@

it's much more easier to replace only a value then to change the whole string, cause if you want to change it again, you've write it complete new.

example:
;test.rc
tray = 0

;theme.rc
If tray = 0
*NetLoadModule vtray-1.x
EndIf

*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #19 !execute [!textreplace @$ConfigDir$test.rc@ @^tray@ @tray 1@][!shortcutgrouphide 19][!shortcutgroupshow 20]
*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #20H !execute [!textreplace @$ConfigDir$test.rc@ @^tray@ @tray 0@][!shortcutgrouphide 20][!shortcutgroupshow 19]


now you can see that if you've tray = 1, the group 20 will be hidden on start, you can so you can use also new If loops with the $tray$ var, like:

If tray = 0
*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #19 !execute [!textreplace @$ConfigDir$test.rc@ @^tray@ @tray 0@][!shortcutgrouphide 19][!shortcutgroupshow 20]
*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #20H !execute [!textreplace @$ConfigDir$test.rc@ @^tray@ @tray 1@][!shortcutgrouphide 20][!shortcutgroupshow 19]
ElseIf tray = 1
*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #19H !execute [!textreplace @$ConfigDir$test.rc@ @^tray@ @tray 1@][!shortcutgrouphide 19][!shortcutgroupshow 20]
*Shortcut "" 1024 -63 systray_right.bmp systray_righta.bmp .none #20 !execute [!textreplace @$ConfigDir$test.rc@ @^tray@ @tray 0@][!shortcutgrouphide 20][!shortcutgroupshow 19]
EndIf

Posted by member 137182 on 2004-04-16 02:44:01 link

i try it^^

Posted by member 137182 on 2004-04-16 03:30:52 link

mhm.. slowly i think, that my pc make a joke on me..

everything worked, except the textreplace..

perhaps the mistake is somewhere else..

In the test.rc i tried " tray 0 " and "tray = 0". Is this wrong? is there a number of space (the space key's) that must beetween the value and the variable?

Or something else?

Posted by member 32550 on 2004-04-16 14:53:50 link

right syntax in test.rc "tray 0" ... also textedit is case sensitive.
the only idea now is.... do you have textedit loaded?

Posted by member 137182 on 2004-04-17 09:05:07 link

jo..

in loaded moduls stands "Textedit 2.1" is there a newer version out?

how can i update it?

Posted by member 32550 on 2004-04-17 11:01:08 link

also wrong syntax ;)

*NetLoadModule textedit-2.52

right syntax :)

ps: the tray var has to be at the beginning of the line, not indendet.