You are not logged in.

#1 2015-10-04 13:17:59

CelticSpice
Member
Registered: 2015-09-11
Posts: 20

[SOLVED] Adwaita Dark Theme

Hello,

I performed a purging and reinstallation of the GNOME DE through the gnome package group. I hand-picked packages, leaving out ones I did not need (empathy, calculator, etc.) Well, everything is up and runnung, but alas: No Adwaita dark theme! Terrible! I was wondering if anyone knew what package provides the theme, or if someone could at least provide me the pertinent files. I would prefer the former information.

Or maybe I'm looking in the wrong place. The theme should be in /usr/share/themes, right?

All the best.

[EDIT] Problem solved. ~/gtk-3.0/settings.ini was not existent. Thanks to this.

Last edited by CelticSpice (2015-10-04 17:51:15)

Offline

#2 2015-10-04 13:34:36

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Offline

#3 2015-10-04 14:22:04

CelticSpice
Member
Registered: 2015-09-11
Posts: 20

Re: [SOLVED] Adwaita Dark Theme

Chazza,

I appreciate the link confirming that I *should* have the dark theme available to me; unfortunately, I do not. The GNOME Tweak Tool fails in setting the dark theme - no wonder, the theme itself is not present under /usr/share/themes. What I would like to know is what specific package actually provides the dark theme.

Last edited by CelticSpice (2015-10-04 14:22:34)

Offline

#4 2015-10-04 14:43:51

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [SOLVED] Adwaita Dark Theme

CelticSpice wrote:

Chazza,

I appreciate the link confirming that I *should* have the dark theme available to me; unfortunately, I do not. The GNOME Tweak Tool fails in setting the dark theme - no wonder, the theme itself is not present under /usr/share/themes. What I would like to know is what specific package actually provides the dark theme.

Ah I see. In fact, it's not the case that you don't have the dark theme. You do, it's part of gtk3 itself because Adwaita is the default gtk3 theme. For this reason, the Adwaita folder in /usr/share/themes and the .css file it contains are just placeholders - look at /usr/share/themes/Adwaita/gtk-3.0/gtk.css and you'll see. If you look at the gtk3 source, you'll see .css files for the light and dark Adwaita themes as well as a .css file for Raleigh which was the previous default theme. Now, I'm afraid I don't know why the the Tweak Tool isn't working properly in this regard, perhaps this is a bug in the Tweak Tool, but you definitely do have Adwaita - both light and dark.

Last edited by Chazza (2015-10-04 14:48:42)

Offline

#5 2015-10-04 18:19:03

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [SOLVED] Adwaita Dark Theme

@CelticSpice, glad you solved the issue. I'm just wondering, is there anything in your ~/gtk-3.0/settings.ini file or is it empty? I ask because whilst gtk themes can be set from ~/.gtkrc-2.0 and ~/gtk-3.0/settings.ini, I was under the impression that this wasn't necessary in GNOME - I thought these sorts of settings were applied by the settings daemon.

Offline

#6 2015-10-06 03:05:05

CelticSpice
Member
Registered: 2015-09-11
Posts: 20

Re: [SOLVED] Adwaita Dark Theme

Chazza wrote:

@CelticSpice, glad you solved the issue. I'm just wondering, is there anything in your ~/gtk-3.0/settings.ini file or is it empty? I ask because whilst gtk themes can be set from ~/.gtkrc-2.0 and ~/gtk-3.0/settings.ini, I was under the impression that this wasn't necessary in GNOME - I thought these sorts of settings were applied by the settings daemon.

Chazza,

I apologize for the delay.

Yes: There are two lines in the settings.ini file.

[Settings]
gtk-application-prefer-dark-theme=1

I don't know. What I DID do is wipe my .cache, .config, and .local directories; actually, in an attempt at neatness, I had removed the directories entirely.

Offline

#7 2015-10-06 10:40:50

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [SOLVED] Adwaita Dark Theme

Thanks for the reply. I had a look at the GTK+ article on the wiki and spotted this so your fix makes sense. My assumption is that the Tweak Tool writes the "gtk-application-prefer-dark-theme=1" line to the settings.ini file - meaning this has nothing to with the settings daemon. I don't see why the Tweak Tool shouldn't be able to create the settings.ini file itself if it doesn't exist - I'll see if I can reproduce such behaviour in a VM. I'll also add a link in the GNOME article section to the GTK+ article section so that if people have similar problems with the Tweak Tool, they'll be directed there and will know to create the settings.ini file manually.

EDIT:

CelticSpice wrote:

What I DID do is wipe my .cache, .config, and .local directories; actually, in an attempt at neatness, I had removed the directories entirely.

I figured it out. The Tweak Tool will indeed write that line to the settings.ini file. The Tweak Tool can also create the settings.ini file if the ~/.config/gtk-3.0 dir exists. But if the dir doesn't exist, it chokes. When you deleted your ~/.config dir, your ~/.config/gtk-3.0 dir was not re-created and so the issue arose. I can't think of any good reason why the Tweak Tool shouldn't create this dir if it needs to so I'll go and file a bug report if one doesn't exist already.

Last edited by Chazza (2015-10-06 11:25:18)

Offline

Board footer

Powered by FluxBB