vinceliuice / Graphite-gtk-theme

Graphite gtk theme
GNU General Public License v3.0
1.06k stars 52 forks source link

Not working in GNOME 43 #85

Open D3vil0p3r opened 2 years ago

D3vil0p3r commented 2 years ago

Hello, I always used this wonderful theme, but now that I upgraded GNOME to 43, it is not working anymore: image

Is there the chance to make it compatible with GNOME 43?

vinceliuice commented 2 years ago

Run: ./install.sh -l

D3vil0p3r commented 2 years ago

Run: ./install.sh -l

Thank you for the answer. It seems to work when I install it with the command provided on the session of the current user. If I try to install it system-wide, so sudo ./install.sh -l and rebooting, where the theme will be installed in /usr/share/themes, it seems to not work.

vinceliuice commented 2 years ago

Nope it can not work for sudo, because this fix for libadwaita is just link gtk-4.0 theme to user's gtk-4.0 config folder, when you run sudo the user is root, so it'll not work

D3vil0p3r commented 2 years ago

Nope it can not work for sudo, because this fix for libadwaita is just link gtk-4.0 theme to user's gtk-4.0 config folder, when you run sudo the user is root, so it'll not work

Uhm now I tried to generate the Graphite-Dark-compact theme on my local folder that generated the links to gtk-4.0 local folder. After this generation, I moved Graphite-Dark-compact from local $HOME/.themes folder to /usr/share/themes, I deleted all the libadwaita local links and then I just simulated the script linking as:

mkdir -p "${HOME}/.config/gtk-4.0"
ln -sf "/usr/share/themes/Graphite-Dark-compact/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets"
ln -sf "/usr/share/themes/Graphite-Dark-compact/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css"
ln -sf "/usr/share/themes/Graphite-Dark-compact/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"

It seems to work...

I need to place the theme as system-wide because I'm thinking the scenario where the theme must be installed at ISO creation, so at a moment where a user does not exist (except for root of course).

Asthonishia commented 2 years ago

Same problem for me. I have dark theme on chrome but light one on nautilus... :D

leoniscsem commented 4 months ago

It seems to be necessary to manually copy the theme over to /usr/share/themes and link the gtk-4.0 files as well in order to have a systemwide consistent experience. E.g. synaptic requires to be launched with sudo rights, so it didn't turn out well. It still strikes me odd, since synaptic is a GTK-3 application. No clue what went sideways here. I also had to start gnome-tweaks with sudo and select the Graphite theme accordingly.

before: syanptic-graphite

after: synaptic-graphite-after