Gtk-Themeselectors - themes for gtk based applications

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Gtk-Themeselectors - themes for gtk based applications

#1 Post by MU »

The way the Windows of Puppy look like, depends on the Toolkit that was used for programming.

Many Puppy-Apllications are based on the Toolkits "Gtk" and "Gtk2".

This small DotPup lets you start configuration-tools to change the way the applications look like.

Screenshots:
http://www.murga-linux.com/puppy/viewto ... 3066#13066

You can download "Themes" from http://themes.freshmeat.net/browse/58/
They must be extracted to /usr/share/themes, so that they can be found.

Some Themes might need additonal libraries like "libflat.so".
You can test it, by running an application from rxvt.
There will be reported errors like "module libflat.so not found".
If you need such a lib, tell me, and I might create a dotpup with some of them.

Version 03 has a button to switch back to Puppys internal Theme-selector (it deletes these 2 files: /root/.gtkrc /root/gtkrc-2.0)

New: Version 04 fixed a segmentation fault and integrates Puppys internal Themeselector.

Version 05 fixes a bug in the Bluecurve-theme.

Download (1.3 MB):
http://dotpups.de/dotpups/Desktop-Tools ... tors05.pup

Restart X or reboot after installation!

Mark
Last edited by MU on Thu 28 Feb 2008, 04:25, edited 12 times in total.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

The themes in Puppy are located in /etc/gtk and /etc/gtk-2.0.
The GTK theme selector in Puppy is /usr/sbin/gtk-theme.

I managed to create themes that work for both GTK1 and GTK2, with only a slight change. Note also how small these themes are.

What would be very useful is a couple more very small themes that work within this mechanism, and can be added to the gtk-theme script.
Note, I have created one more in 1.0.5alpha2, a "pastel orange and peach" theme
(I created it by hacking one of the other themes).

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

Note, Puppy's GTK themes are just for the GTK windows.
Those themes on sourceforge.org, most of those are probably Gnome themes,
rather than just GTK?
For the desktop, and window manager ... well, thoughtjourney is working on something very exciting in that department, that will be in 1.0.5.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

Hey, I was just browsing through the themes, there is a very tiny XP theme, looks like it will work in Puppy, so I will add it to 1.0.5!
Doing that right now...

With thoughtjourney's input, we will have a XP desktop offered as a standard choice in the next Puppy. Not the default, which will be the "peach" theme, but the XP theme will be on the live-CD. ...expected to anyway.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

Barry,

thanks, at first look I just found the option to change the colors, but not the pixmaps.
It seems I did not look closely enough :oops:

The themes on Freshmeat:
Some are Gtk-only, some also have additional entries.
If you want to save space, simply delete the metacity-folder in the theme :)

Greets, Mark

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#6 Post by GuestToo »

one thing i have noticed, is that often the theme package will have a (hidden, i think) folder of thumbnails that The Gimp put there, and that should have been deleted before the theme package was uploaded ... they are not part of the theme, and can waste considerable space

User avatar
puppian
Posts: 537
Joined: Tue 19 Jul 2005, 03:58
Location: PuppyLand
Contact:

#7 Post by puppian »

I've tried it but it seems not compatible with the GTK theme selector that comes with Puppy :(

After I use it to select a theme, it seems that I can't swith back to Puppy's gtk themes.
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

Puppian,

try to delete
/root/.gtkrc
and
/root/gtkrc-2.0

I will try it myself this evening.

*EDIT* -- just tried, yes, thats it.
Delete these 2 files, and the Puppy-Themeselector works.

Greets, Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

I just uploaded Version 0.3, that will delete these 2 files with a buttonclick :)

Mark

Guest

#10 Post by Guest »

hey it works!
thanks.

just one thought: why not rename them instead of deleting them
someone may want them back one day :)

User avatar
puppian
Posts: 537
Joined: Tue 19 Jul 2005, 03:58
Location: PuppyLand
Contact:

#11 Post by puppian »

me above :oops:
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#12 Post by MU »

There is no need for a backup.
You simply create a new .gtkrc, by running one of the Theme-selectors again.

A .gtkrc looks like this:

Code: Select all

# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/QNX/gtk/gtkrc"

include "/root/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT
So it does not contain the Theme itself, just a "directive" for gtk, what theme to use.
The .gtkrc above uses the "QNX"-Theme.
If you delete it, Gtk does not use the QNX-Theme, instead it uses Puppys Theme.
But the QNX-theme still is in /usr/share/themes (if you installed it from freshmeat.net).
So when you run theTheme-selector again, and select "QNX", the .gtkrc will be created from new.

Mark

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#13 Post by BarryK »

Note, some of those themes on sourceforge, probably nearly all of them, load theme "engines" that are part of the GTK package.

/usr/lib/gtk-2.0/engines/

has the in-built theme engines, but I have removed all of them except "smooth", as I think that one is required. If you look in Vector, you will find the full complement of engines. Some of them are large, for example "redmond95" is, I recall, about 470K.

/usr/lib/gtk/

is where engines for GTK1 go, but I didn't put any into Puppy.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#14 Post by MU »

Thanks Barry,

I just finished a dotpup of 1 MB size with some of those engines:
http://www.murga.org/~puppy/viewtopic.php?p=13066#13066

Greets, Mark

User avatar
puppian
Posts: 537
Joined: Tue 19 Jul 2005, 03:58
Location: PuppyLand
Contact:

#15 Post by puppian »

MU wrote:There is no need for a backup...
Thanks for the info Mark :)
Btw,

# ./switch
Segmentation fault

Any idea?
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

puppian wrote: # ./switch
Segmentation fault

Any idea?
Hmm.. I also had this once tonight.. then I removed /root/.gtkrc , ran the Puppy-Themeselector once, and switch worked again.

There seems to be a bug in switch or one of the theme-engines.

I will have to test it more intensively before adding it to the wiki :?

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#17 Post by MU »

I found ther error with the segmentation fault, and uploaded Version 04 (see first message).

Now it also will run Barrys Themeselector, if you choose to use the Puppy-Theme.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

I updated to version 05.
Bluecurve-theme was fixed.

Mark

gaigel
Posts: 2
Joined: Wed 02 Aug 2006, 14:46

#19 Post by gaigel »

um, i installed it and it says refresh, how do !, oh thanx for the links bro!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#20 Post by MU »

reboot computer in the Puppy-menu.
Mark

Post Reply