JWM Theme Maker 2.2 (June 2016)

Window managers, icon programs, widgets, etc.
Message
Author
Yogi
Posts: 207
Joined: Fri 19 Aug 2005, 18:50

#21 Post by Yogi »

trio,

OK, let's back up. This rgb2hex command you had me try turns out to be an RGB to HEX value converter. From the terminal:

# rgb2hex 127 254 127
7ffe7f
#
# rgb2hex 7ffe7f
Usage: rgb2hex R G B (where 0 >= R,G,B (integer) <= 255)
# rgb2hex 7f fe 7f
Incorrect input!

I kept wondering why when I entered a correct Hex value (i.e. 7f fe 7f) it would output "Incorrect input!". So I used Grabc screen color picker to sample a color:

The Red-Green-Blue components of the color you selected are
in decimal (values 0-255): 127,254,127
in hex (values 00-FF): #7ffe7f

So it would appear the correct format is: rgb2hex xxx xxx xxx where xxx is a decimal value between 0 and 255.

From the terminal:

# Xdialog --stdout --colorsel 22 75 [ 0 0 0 ] > /tmp/testcolor.txt
Xdialog: incorrect number of parameters !
Xdialog v2.3.1 by Thierry Godefroy <xdialog@free.fr> (v1.0 was
written by Alfred at Cyberone Internet <alfred@cyberone.com.au>).
Xdialog home page available at: http://xdialog.dyns.net/

Usage: Xdialog [<common options>] [<transient options>] <box option> ...

Common options:
--wmclass <name>
--rc-file <gtkrc filename>
--backtitle <backtitle>
--title <title>
--allow-close | --no-close
--screen-center | --under-mouse | --auto-placement
--center | --right | --left | --fill
--no-wrap | --wrap
--cr-wrap | --no-cr-wrap
--stderr | --stdout
--separator <character> | --separate-output
--buttons-style default|icon|text

Transient options:
--fixed-font
--password (may be repeated 2 or 3 times before --2inputsbox or --3inputsbox)
--password=1|2 (for --2inputsbox or --3inputsbox)
--editable
--time-stamp | --date-stamp
--reverse
--keep-colors
--interval <timeout>


There was more to this read out but I couldn't copy it all.

I've got to get to work so maybe we can continue this tomorrow, OK?

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#22 Post by trio »

Yogi,

Ok,

1. rgb2hex is working, good
2. I need the box options of your older Xdialog, please post them tomorrow.

Thanks

Yogi
Posts: 207
Joined: Fri 19 Aug 2005, 18:50

#23 Post by Yogi »

Hello Trio,

Here are the results you asked for:

Xdialog v2.3.1 by Thierry Godefroy <xdialog@free.fr> (v1.0 was
written by Alfred at Cyberone Internet <alfred@cyberone.com.au>).
Xdialog home page available at: http://xdialog.dyns.net/

Usage: Xdialog [<common options>] [<transient options>] <box option> ...

Common options:
--wmclass <name>
--rc-file <gtkrc filename>
--backtitle <backtitle>
--title <title>
--allow-close | --no-close
--screen-center | --under-mouse | --auto-placement
--center | --right | --left | --fill
--no-wrap | --wrap
--cr-wrap | --no-cr-wrap
--stderr | --stdout
--separator <character> | --separate-output
--buttons-style default|icon|text

Transient options:
--fixed-font
--password (may be repeated 2 or 3 times before --2inputsbox or --3inputsbox)
--password=1|2 (for --2inputsbox or --3inputsbox)
--editable
--time-stamp | --date-stamp
--reverse
--keep-colors
--interval <timeout>
--timeout <timeout> (in seconds)
--no-tags
--item-help (if used, the {...} parameters are needed in menus/lists widgets)
--default-item <tag>
--icon <xpm filename>
--no-ok
--no-cancel
--no-buttons
--default-no
--wizard
--help <help>
--print <printer> (1)
--check <label> [<status>]
--ok-label <label>
--cancel-label <label>
--beep
--beep-after
--begin <Yorg> <Xorg>
--ignore-eof
--smooth

Box options:
--yesno <text> <height> <width>
--msgbox <text> <height> <width>
--infobox <text> <height> <width> [<timeout>]
--gauge <text> <height> <width> [<percent>]
--progress <text> <height> <width> [<maxdots> [[-]<msglen>]]
--inputbox <text> <height> <width> [<init>]
--2inputsbox <text> <height> <width> <label1> <init1> <label2> <init2>
--3inputsbox <text> <height> <width> <label1> <init1> <label2> <init2> <label3> <init3>
--combobox <text> <height> <width> <item1> ... <itemN>
--rangebox <text> <height> <width> <min value> <max value> [<default value>]
--2rangesbox <text> <height> <width> <label1> <min1> <max1> <def1> <label2> <min2> <max2> <def2>
--3rangesbox <text> <height> <width> <label1> <min1> <max1> <def1> ... <label3> <min3> <max3> <def3>
--spinbox <text> <height> <width> <min value> <max value> <default value> <label>
--2spinsbox <text> <height> <width> <min1> <max1> <def1> <label1> <min2> <max2> <def2> <label2>
--3spinsbox <text> <height> <width> <min1> <max1> <def1> <label1> ... <min3> <max3> <def3> <label3>
--textbox <file> <height> <width>
--editbox <file> <height> <width>
--tailbox <file> <height> <width>
--logbox <file> <height> <width>
--menubox <text> <height> <width> <menu height> <tag1> <item1> {<help1>}...
--checklist <text> <height> <width> <list height> <tag1> <item1> <status1> {<help1>}...
--radiolist <text> <height> <width> <list height> <tag1> <item1> <status1> {<help1>}...
--buildlist <text> <height> <width> <list height> <tag1> <item1> <status1> {<help1>}...
--treeview <text> <height> <width> <list height> <tag1> <item1> <status1> <item_depth1> {<help1>}...
--fselect <file> <height> <width>
--dselect <directory> <height> <width>
--colorsel <text> <height> <width> [<red> <green> <blue>]
--fontsel <font name> <height> <width>
--calendar <text> <height> <width> [<day> <month> <year>]
--timebox <text> <height> <width> [<hours> <minutes> <seconds>]

Special options:
--version (prints version number to stderr and exits).
--print-version (same as above in a cdialog-compatible way).
--print-maxsize (prints maximum menu size in characters and exits).

Note that <height> and <width> are in characters and may be replaced by a single
XSIZExYSIZE[+/-XORG+/-YORG] parameter (like the one passed in the -geometry option
of X) which will represent the size of the Xdialog window in pixels. Specifying
a size of 0 0 (or 0x0) will auto-size Xdialog, while a size of -1 -1 (or -1x-1)
will maximize it.

(1) This Xdialog binary compiled with: lprshell -P<printer>
as the print command. If <printer> is "" (an empty string), the -P
option is not used.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#24 Post by trio »

hmm, everything seems to be in order...maybe you try the older pet atached
Attachments
jwmthememaker-1.1.pet
(3.76 KiB) Downloaded 1102 times

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#25 Post by Lobster »

:) Well done Trio and testers.
Barry will be putting this program in 4.3 Beta.
Look forward to using it.

Keep up the good work guys :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#26 Post by trio »

:lol: :lol: :lol:

Yogi
Posts: 207
Joined: Fri 19 Aug 2005, 18:50

#27 Post by Yogi »

Trio,

Sorry, no luck with the older pet version either. But guess what? I don't think it's your fault. I got to thinking that I'd seen Xdialog before. So... I went to Desktop > JWM Configuration > System tab > Destop Color button and ... up pops Xdialog. If I try to select anything with the mouse, it disappears. If I just hover over any part of Xdialog and even twitch the scroll wheel it disappears! But interestingly, I can use the keyboard to tab and arrow and enter values to change the background color. What do you make of that? Perhaps a quirk in Puppy 2.17 with Xdialog that I never noticed ... until now.Too bad cause I was really excited to play around with your new thememaker.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#28 Post by trio »

Yogi,

Hmm, bad Xdialog huh, you may try to adopt Xdialog from another puppy version. Anyway, if you do find one, you still only can use v 1.1, because fc-list to look up installed fonts isn't there in your puppy 2. And you still can use v 1.1 manually by typing the colors in the boxes.

Pity you can't enjoy this

Cheers

Yogi
Posts: 207
Joined: Fri 19 Aug 2005, 18:50

#29 Post by Yogi »

Trio,

I just tried using your JWM Thememaker with keyboard input only and it worked! I chose some weird color combos but I was just testing anyhow. Some things I noticed maybe might help you help us older Puppy lovers.
After I was done and saved my test theme I had to go retrieve it from the /root/.jwm/themes file. Then I had to rename them to be like formats and edit the 'themeslist' file for inclusion into the JWM Themes Selection. Unless I'm really missing something it would be nice to have all that done automatically.
Also, I tried 'nimbus' for the font but nothing changed.
All in all, I'd say a big success for you because it gives the rest of us a way to personalize and perk up our old but faithful Puppies.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#30 Post by trio »

Yogi,

I really have no idea why you have to edit theme list?..weird this puppy 2 is. We have all auto listed in 4 series. Maybe later when I have a chance to play with 2 series..but that will be really later..:lol:

Anyway, I suggest you try ttuuxxx's updated 2 series (in the puppy project section), maybe you'll like it.

Cheers

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#31 Post by DaveS »

Hey Trio. I had achance to play with this in 4.3. Managed to set the font colour the same as the background LOL. Is it possible to reload a previously created theme to edit it? I could not see how, and that would be MOST useful.
I was able to do in just a few mins using this app stuff it took hours to do when I first started with Puppy :D Brilliant thanks.
Spup Frugal HD and USB
Root forever!

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#32 Post by dejan555 »

Hmmm yeah that would be usefull, yet again, u can keep theme maker open and running when u save theme and change it to see how it looks like, then if you want to change something, edit values again and re-save with same name.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#33 Post by trio »

DaveS,

Interresting request. But you may have no idea if I told u that, it will not be that simple to create edit function than what it's worth. Maybe I will do, if I am in playful mode :lol:

But, Dejan is right, that's the way to do it, it's simple and easy to make or re-make, that to edit sounds so conservative.

Thanks all

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#34 Post by `f00 »

.. but then I just did (; .. more-or-less seriously...

in ppa422
Overall it works great. Possibly some wishlisting
1) clean up the fonts dropmenu (duplications), big plus is it works oki with 'most all fonts :)
2) once a hex is entered or selected, have the swatch displayed rather than the generic rainbow button (I'm no coder, but it seems like that should be doable) - nice job cleaning that up a bit (I've always wondered why gcolor2 lists opacity if it doesn't translate it to a 'full' name .. probably since alpha channel standards may be various :| even if used)
3) I guess the separate colors file and jwmconfig2/theme-switcher script are the way it is .. :| that PAGER_BG value always threw me as being non-intuitive, but it's the way it works unless you edit things manually
4) at the risk of making it too complex, possibly another pair of optionboxes for popup? (although the default is nicer than that old yellow :) )
5) Fine-tuning fontsizes and separate window/tasklist/menu 'figs would definitely be too much - best left for hand-edit (easy enough, really!)

addenda - enhanced jwm-beta translucencies (Opacity tags) for the menu and trays will need to be added in (serial focus-trans for the windows is good as-is with the jwm456 enhancement)

.. attached the firstborn (and a handedited younger sibling for jwm-beta with 456 .. 267k screenie here)
Attachments
tri0.tar.gz
twofer-what-it's-worth
(993 Bytes) Downloaded 1172 times

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#35 Post by trio »

foO

Thanks for inputs

1. I don't even know what blackbox is :D
2. Fonts drop menu list, actually it is what fc list does, with filtering of course, but I don't filter for duplicated fonts, as I don;t think it matters that much, but you've got a point there abou professionalism, not the funcntions
3.I don't understand about the rainbow button part, you want the button picture change after you hex color code is entered in box? to the color you choose? haha, that's not doable in gtkdialog (same problem with wallpaper seter preview)
4. The background of absvolume can't follow theme instantly, only after next reboot/restart X, but it's not the JWM theme maker's fault
5.color option for tooltips (popup boxes you said)? it is doable, but I made this app with "newbies+simplification" in mind. I compact it till we only need necessary boxes, with that only we already got 10 boxes! I don't I add more boxes

Thanks

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#36 Post by trio »

Updated to v 1.2-1 - bugfix: sort & filter duplicated font names - thanks foo

see main post

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#37 Post by trio »

Updated to v 1.3 - delete a theme & instant apply functions

see main post

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#38 Post by charlie6 »

Hi Trio,
nice little thing this JWM maker! thanks!
A) just 'd like to know what is what.....
i.e. what states Active - Inactive - Active text - Inactive text - Base background - for ?
Is there some explanation somewhere?
B) Font name: I like Tahoma font; but did'nt find it. is it possible to include it?

Cheers
Charlie

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#39 Post by trio »

charlie6 wrote:Hi Trio,
nice little thing this JWM maker! thanks!
A) just 'd like to know what is what.....
i.e. what states Active - Inactive - Active text - Inactive text - Base background - for ?
Is there some explanation somewhere?
B) Font name: I like Tahoma font; but did'nt find it. is it possible to include it?

Cheers
Charlie
Hi, thanks,
maybe I have to put tooltips next time.
1. Active: colors of active window, active scrolled menu, active taskbar pager
2. Inactive: as above but the opposite
3. Active text: color of text in no 1
4. Inactive text: color of text in no. 2

FONT:
If your font is not listed, then it is not installed in puppy. I don't know where to look for it, I know only how to install it (copy to /usr/share/fonts/default/TTF then from terminal mkfontdir & mkfontscale to that directory), but you may just google for your font

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#40 Post by charlie6 »

Hi trio,
many thanks for your quick reply !
As Ilike also roundes corners...
I configure some new themes (...5 min !) and aftwds installed Patriot's jwm-2.0.1-pe-beta-2.pet (thanks Patriot!)
http://www.murga-linux.com/puppy/viewto ... 22&t=39162
to see if rounded corners could be got on new themes.
Result:
...except wrong use at my side
all corners stays sharp even on the original proposed themes.

Cheers
Charlie

Post Reply