You are not logged in.
For those of us who don't use gnome, gtk3 apps look terrible! In gtk2 we use to put our settings in .gtkrc-2.0 but this changed for gtk3
${XDG_CONFIG_HOME}/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
See http://developer.gnome.org/gtk/unstable … tings.html for more info.
Figured this would be an issue that would bite a lot of people. Hopefully this will save help some out.
Edit: For anyone that want to see the ugly window: http://ompldr.org/vODYwYg
Last edited by pyther (2011-04-08 03:03:37)
Offline
Thanks pyther. Now if only there were more than 5 themes (none of which are Dark)....
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Now if only there were more than 5 themes (none of which are Dark)....
"ngoonee, author of the first dark gtk3 theme!".
ᶘ ᵒᴥᵒᶅ
Offline
ngoonee wrote:Now if only there were more than 5 themes (none of which are Dark)....
"ngoonee, author of the first dark gtk3 theme!".
I wish. I suppose if it was a pure copy-paste job that'd be possible. Anything needing me to make decisions on colour and shading is destined for failure...
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
I added that on the wiki ! Nice info pyther !
Offline
pyther's solution (creating .config/gtk-3.0/settings.ini with [Settings] and gtk-theme-name) didn't work for me. That is, nm-applet (the only thing that uses GTK3 on my system as far as I know) still used the ugly default theme. Making .config/gtk-3.0 a symlink to /usr/share/themes/Adwaita/gtk-3.0 worked, however. Any idea what I might be doing wrong?
Offline
Are you using a gtk3 theme? Such as the default Adwaita? Also, make sure "Adwaita" has a capital A
Yes, using Adwaita; I copied the sample code exactly from your first post.
Offline
@jjlindgren do you have gnome-themes-standard installed?
Give what you have. To someone, it may be better than you dare to think.
Offline
This solution doesn't work for me. I had to remove the exported GTK_PATH variable. Then the gtk3 theme is still not picked up from the settings.ini file. Only when I manually switch in the Xfce appearance theme changer to adwaita I get the nice gtk3 look. Any idea?
see https://bugs.archlinux.org/task/23655 and https://bugzilla.xfce.org/show_bug.cgi?id=7483
Offline
@jjlindgren do you have gnome-themes-standard installed?
Yes.
Offline
I have the gnome-themes-standard package installed as well, and the settings.ini file created, and it also doesn't work - still getting the ugly windows.
Avatar by Ditey: https://twitter.com/phrobitey
Offline
I am also still getting the ugly windows, and I think the problem might be that the gnome-themes-standard package installs the theme with root root rw r- r- permissions.
Evince, for example, complains (on the terminal) (evince:17402): Gtk-WARNING **: Could not load named theme "Adwaita": Error parsing stylesheet
Offline
... I think the problem might be that the gnome-themes-standard package installs the theme with root root rw r- r- permissions.
Evince, for example, complains (on the terminal) (evince:17402): Gtk-WARNING **: Could not load named theme "Adwaita": Error parsing stylesheet
Everyone is able to read the file, no one needs to be able to write or execute it. The permissions are fine.
Does the output of md5sum /usr/share/themes/Adwaita/gtk-3.0/* match
md5sum: /usr/share/themes/Adwaita/gtk-3.0/assets: Is a directory
4bb000e5532d5cf0fa64aec4893024e4 /usr/share/themes/Adwaita/gtk-3.0/gtk.css
529bebd2f8e6f7d9b6e07f6e806adfa3 /usr/share/themes/Adwaita/gtk-3.0/gtk-widgets.css
df8161134af1f13fc2e69c716ad8754d /usr/share/themes/Adwaita/gtk-3.0/settings.ini
Offline
Oh yeah - good point about permissions! Sorry.
Looks like a match:
ramana@lois ~ % md5sum /usr/share/themes/Adwaita/gtk-3.0/*
md5sum: /usr/share/themes/Adwaita/gtk-3.0/assets: Is a directory
4bb000e5532d5cf0fa64aec4893024e4 /usr/share/themes/Adwaita/gtk-3.0/gtk.css
529bebd2f8e6f7d9b6e07f6e806adfa3 /usr/share/themes/Adwaita/gtk-3.0/gtk-widgets.css
df8161134af1f13fc2e69c716ad8754d /usr/share/themes/Adwaita/gtk-3.0/settings.ini
Offline
Hello everybody,
I am currently using i3-wm and trying to get some normal looking gtk3 apps. I made the .config/gtk-3.0/settings.ini like mentionned in the wiki, but get when loading a gtk3 app the following output :
example : (file-roller:5477): Gtk-WARNING **: Could not load named theme "Adwaita": Error parsing stylesheet
For information, I get the same md5sum output as showned previously :
"md5sum: /usr/share/themes/Adwaita/gtk-3.0/assets: est un dossier
4bb000e5532d5cf0fa64aec4893024e4 /usr/share/themes/Adwaita/gtk-3.0/gtk.css
529bebd2f8e6f7d9b6e07f6e806adfa3 /usr/share/themes/Adwaita/gtk-3.0/gtk-widgets.css
df8161134af1f13fc2e69c716ad8754d /usr/share/themes/Adwaita/gtk-3.0/settings.ini"
Has anyone an idea to solve this issue ?
Thanks a lot for the replies !
Offline
Making .config/gtk-3.0 a symlink to /usr/share/themes/Adwaita/gtk-3.0 worked
This worked for me too This is the only solution that worked so far. Thank you jlindgren.
Offline
Wonderful, pyther, your tip works directly like a charm, no need to symlink.
And more : you can set if you want toolbars with icons only, text only, icon+text or icon+text horizontal :
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
gtk-toolbar-style=GTK_TOOLBAR_ICONS
Set the gtk-toolbar-style with : GTK_TOOLBAR_ICONS, GTK_TOOLBAR_TEXT, GTK_TOOLBAR_BOTH, or GTK_TOOLBAR_BOTH_HORIZ
Last edited by raymondcal (2011-05-04 17:47:58)
Offline
It's probably related, but I can't click on GTK3 apps when I'm not using gnome3 (for example from KDE4 or openbox)
Offline
Thanks pyther. Now if only there were more than 5 themes (none of which are Dark)....
Atolm-gtk3 is dark, and looks good.
http://thedeviantmars.deviantart.com/ar … -206663190 (gtk3)
http://skiesofazel.deviantart.com/art/Atolm-191381339 (gtk2)
I also fixed the icon in gnome-tweak-tool to work properly on a dark background. ( + also included a link to my re-vamped-version of the original logo)
https://bbs.archlinux.org/viewtopic.php?id=118490
jordan
Offline
With the symlink method, I get the following error:
ramana@lois ~ % evince
Gtk-Message: CSS: Error parsing stylesheet
/home/ramana/.config/gtk-3.0/gtk.css, line 100, char 31:
@import url("gtk-widgets.css");
^
Offline
Things might have improved since the original post. I'm not using testing and for me using the Xfce Appearance settings to select a Gtk 3 theme (located in ~/.themes) works fine. No need to tweak anything.
And BTW I have finally found a dark Gtk3 theme: Xfce-dusk-gtk3
It's not as dark as the original Xfce-dusk, but it's ok.
Offline
This is still broken, probably when not using any particular desktop environment.
ramana@lois ~ % cat ${XDG_CONFIG_HOME}/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
ramana@lois ~ % evince
(evince:775): Gtk-WARNING **: Could not load named theme "Adwaita": Error parsing stylesheet
Offline
Things might have improved since the original post. I'm not using testing and for me using the Xfce Appearance settings to select a Gtk 3 theme (located in ~/.themes) works fine. No need to tweak anything.
I tried changing the theme to Adwaita in XFCE appearance settings, and it worked for both GTK 2 and GTK 3 apps. The problem is, I don't want my GTK 2 apps to use the Adwaita GTK 2 theme (which is not the same as the Adwaita GTK 3 theme; as far as I can tell it's just Clearlooks under a different name). There are other GTK 2 themes I like better. I want to change *only* the GTK 3 theme to Adwaita. Symlinking is still the only way that works to do that here.
Offline
I've figured out where the "Error parsing stylesheet" problems are coming from. The Adwaita theme needs librsvg installed to work correctly, since it uses SVG icons for its check boxes. A quick "pacman -S librsvg" solves the problem.
Last edited by s_tec (2011-06-29 03:03:36)
Offline