GradienceTeam / Gradience

Change the look of Adwaita, with ease
https://gradienceteam.github.io
GNU General Public License v3.0
1.3k stars 47 forks source link

bug: theme not getting applied to some apps, including Gradience itself #744

Closed IvoryJam closed 1 year ago

IvoryJam commented 1 year ago

Is there an existing issue for this?

What happened?

After some flatpak updates, Gradience no longer themes itself as well as other apps like com.mattjakeman.ExtensionManager and de.haeckerfelix.Fragments.

It's not all flatpak apps though, firefox and clapper follow the theme just fine

To Reproduce

  1. Open Gradience

Expected behavior

To theme all applications

Screenshots

image

OS

Fedora Linux 37 (Workstation Edition)

DE/WM version

GNOME 43.3, Mutter

Version

0.4.1

Installation method

Flatpak from Flathub

Enabled system extensions (GNOME specific)

AlphabeticalAppGrid@stuarthayhurst blur-my-shell@aunetx caffeine@patapon.info dash-to-dock@micxgx.gmail.com ddterm@amezin.github.com io.github.mreditor.gnome-shell-extensions.scroll-panel just-perfection-desktop@just-perfection middleclickclose@paolo.tranquilli.gmail.com rounded-window-corners@yilozt

Additional context

No response

Code of Conduct

github-actions[bot] commented 1 year ago

Welcome on Gradience. 🥳 We really appreciate your contribution. The core team will review your issue as soon as possible. You can also join the Matrix room: https://matrix.to/#/#Gradience-space:envs.net or the Discord server: https://discord.com/invite/4njFDtfGEZ

IvoryJam commented 1 year ago

I am also using adw-gtk3 installed via the copr repo

tfuxu commented 1 year ago

Why does so many people have this issue... Could you please post here your ~/.local/share/flatpak/overrides file?

daudix commented 1 year ago

also, do you use any gtk4 themes? Gradience, Extension Manager and Fragments look broken

IvoryJam commented 1 year ago

There is only 1 file in there "global" here are the contents

➜ ~ cat ~/.local/share/flatpak/overrides/global 
[Context]
filesystems=xdg-config/gtk-4.0;xdg-config/gtk-3.0;

I do not use any gtk4 themes, here's a screenshot from tweaks as confirmation

image

tfuxu commented 1 year ago

Do you maybe have a /var/lib/flatpak/overrides folder?

IvoryJam commented 1 year ago

I sure do

➜ ~ cd /var/lib/flatpak/overrides/
➜ overrides ls
global  org.telegram.desktop
➜ overrides cat global 
[Context]
filesystems=/home/IvoryJam/.themes;/home/IvoryJam/.icons;/home/IvoryJam/.local/share/themes;/home/IvoryJam/.local/share/icons;

[Environment]
GTK_THEME=adw-gtk3
➜ overrides cat org.telegram.desktop 
[Environment]
XCURSOR_SIZE=24
tfuxu commented 1 year ago

Remove value from GTK_THEME and set unset-environment=GTK_THEME; in Context group, this is how I have it on my system and adw-gtk3 works just fine with Flatpak apps.

IvoryJam commented 1 year ago

That fixed it

tfuxu commented 1 year ago

One more thing to add to Troubleshooting section

daudix commented 1 year ago

I will start writing troubleshooting docs section!

failafail8 commented 1 year ago

with your help on matrix, even a neophyte like me was able to solve this same problem. thanks a lot! looking forward to using the application :)