View previous topic :: View next topic |
Author |
Message |
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Fri Dec 27, 2002 11:04 am Post subject: How do i change my default GTK2 style and font? (fluxbox) |
|
|
Is there some kind of gtk2 configuration app that can do this? I'm stuck with ugly fonts and want flat buttons instead of the raised ones.
Cheers |
|
Back to top |
|
|
timmfin Guru
Joined: 04 Sep 2002 Posts: 336 Location: Maryland, USA
|
Posted: Fri Dec 27, 2002 2:14 pm Post subject: |
|
|
Code: | emerge emerge /usr/portage/x11-themes/gtk-theme-switch/gtk-theme-switch-1.0.1.ebuild gtk-theme-switch |
will change gtk themes and fonts and will change gtk2 themes and fonts. Just make sure that when you run them you run them as the correct user. If you run them as root then you will only change the themes for the windows that root opens. |
|
Back to top |
|
|
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Fri Dec 27, 2002 3:31 pm Post subject: |
|
|
yo, cheers for that It sorted out my font problem but when i click to apply a theme nothing happens even when i do preview they all look the same. |
|
Back to top |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sat Dec 28, 2002 12:40 am Post subject: |
|
|
switch2 sees both gtk1 and gtk2 themes, If you try to enable a gtk1 theme in switch2, nothing happens... I made this hack that fixes it so that only gtk2 themes are listed. Im not sure if its correct to use chdir() to check for a directory, but it works much better than the original...
Code: | --- gtk-theme-switch-2.0.0rc2/switch.c 2002-05-25 06:54:35.000000000 +0000
+++ /mnt/2/home/sa/src/gtk-theme-switch-2.0.0rc2/switch.c 2002-12-13 05:12:59.000000000 +0000
@@ -66,6 +66,12 @@
if (!S_ISDIR(stats.st_mode)) continue;
if (strcmp(dent->d_name,"." ) == 0) continue;
if (strcmp(dent->d_name,"..") == 0) continue;
+ if ( (chdir(g_strconcat(
+ dirname,"/",(dent->d_name),"/gtk-2.0",NULL))) < 0 ) {
+ printf("%s is not gtk2 theme\n", (dent->d_name));
+ continue;
+ }
+
g_hash_table_insert (hash, dent->d_name, dirname);
list = g_list_insert_sorted(list, g_strdup(dent->d_name), (GCompareFunc)strcmp);
}
@@ -86,6 +92,12 @@
if (!S_ISDIR(stats.st_mode)) continue;
if (strcmp(dent->d_name, "." ) == 0) continue;
if (strcmp(dent->d_name, "..") == 0) continue;
+ if ( (chdir(g_strconcat(
+ dirname,"/",(dent->d_name),"/gtk-2.0",NULL))) < 0 ) {
+ printf("%s is not gtk2 theme\n", (dent->d_name));
+ continue;
+ }
+
g_hash_table_insert (hash, dent->d_name, dirname);
list = g_list_insert_sorted(list, g_strdup(dent->d_name), (GCompareFunc)strcmp);
}
|
|
|
Back to top |
|
|
dioxmat Bodhisattva
Joined: 04 May 2002 Posts: 709 Location: /home/mat
|
Posted: Sat Dec 28, 2002 8:04 pm Post subject: |
|
|
Quote: |
Im not sure if its correct to use chdir() to check for a directory
|
opendir might be better yeah :) |
|
Back to top |
|
|
sessionID Apprentice
Joined: 11 Nov 2002 Posts: 266 Location: hungary
|
Posted: Wed Jan 08, 2003 11:50 am Post subject: |
|
|
port001 wrote: | yo, cheers for that It sorted out my font problem but when i click to apply a theme nothing happens even when i do preview they all look the same. |
I have the same problem... what is the solution? |
|
Back to top |
|
|
hyperion n00b
Joined: 26 Dec 2002 Posts: 31
|
Posted: Wed Jan 08, 2003 2:55 pm Post subject: |
|
|
I believe that the gnome-settings-daemon process must be running in order for gtk2 themes to be applied. The problem with this is that it also manages your wallpaper, so you get some fugliness with your fb styles. |
|
Back to top |
|
|
kappax Apprentice
Joined: 30 Aug 2002 Posts: 273 Location: The Moon
|
Posted: Wed Jan 08, 2003 3:29 pm Post subject: |
|
|
i dont have any of the problems you guys are having :/ Works just fine for me.
Oh i emerged switch ver 1 fist then switch ver 2 , swtich 2 changes my gtk2 theme (right when i press apply) and swich does the gtk1 themes. |
|
Back to top |
|
|
RdsArts Apprentice
Joined: 08 Oct 2002 Posts: 190 Location: MI, USA
|
Posted: Wed Jan 08, 2003 6:59 pm Post subject: |
|
|
Pure speculation, but do you have the engines emerged? You also need to emerge some theme engines if you want to use themes.
Pixbuf and Pixmap are the 2 big ones. (at least they work for all the themes I use ) Emerge them and you should have the engine for most themes.
Code: | emerge gtk-engines-pixbuf gtk-engines-pixmap -p
emerge gtk-engines-pixbuf gtk-engines-pixmap |
Or, if you want EVERY theme under the sun, emerge the theme sets. (same as switch, GTK+ and GTK+2 themes have seperate ebuilds.)
Code: | emerge /usr/portage/x11-themes/gtk-themes/gtk-themes-1.0-r1.ebuild gtk-themes -p
emerge /usr/portage/x11-themes/gtk-themes/gtk-themes-1.0-r1.ebuild gtk-themes |
After that, you should be good to go. |
|
Back to top |
|
|
|