GradienceTeam / Gradience

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

bug: Themes are not applied to Gradience and some of the apps on Manjaro. #563

Closed eboye closed 1 year ago

eboye commented 1 year ago

Is there an existing issue for this?

What happened?

After upgrade to 0.3.0 the app itself looks broken and like GTK3 app in light only mode no matter what settings I choose.

It's installed as flatpak app as aur version does not want to install as it says the libdwaita 1.2 alpha dep is needed? I'm on Manjaro Sikaris.

To Reproduce

I've tried enabling and disabling GTK4 and GTK3 Flatpak themeing, tried deleting ~/.config/gtk-* folders, uninstalling and then again installing the Gradience app, nothing happens. It's recreating the folders, apps like Nautilus, Firefox etc works ok (non flatpak apps).

I've tried resetting permission to xdg-config/gtk-3.0 and 4 via flatseal and via CLI, but no affect.

Expected behavior

Applying any other theme

Screenshots

image

image

image

image

OS

Manjaro Linux Sikaris 22.0.0

Version

0.3.0

Installation method

Flatpak from Flathub

Additional context

No response

Code of Conduct

0xMRTT commented 1 year ago

Do you have an other theme enabled ?

tfuxu commented 1 year ago

Such a weird bug... @eboye Does Gradience shows any error messages for you while running in terminal?

eboye commented 1 year ago

@tfuxu well, there are some, bunch of warnings about unknown rule @define-color and this on start:

WARNING CSSStylesheet: Unknown @rule found. [23:1: @define-color]
[WARNING] [CSSUTILS] CSSStylesheet: Unknown @rule found. [23:1: @define-color]
ERROR   CSSUnknownRule: No ending ";" or "}" found: '@define-color headerbar_backdrop_color @window_bg_color;'
[ERROR] [CSSUTILS] CSSUnknownRule: No ending ";" or "}" found: '@define-color headerbar_backdrop_color @window_bg_color;'
WARNING CSSStylesheet: Unknown @rule found. [24:1: @define-color]
[WARNING] [CSSUTILS] CSSStylesheet: Unknown @rule found. [24:1: @define-color]

After that, nothing ...

I tried opening it before via CLI, but I didn't think it was worth mentioning as it didn't seem relevant. Maybe it is?

0xMRTT commented 1 year ago

Css warning aren't important, that's normal :/

eboye commented 1 year ago

One more thing, it looks like it's not saving settings after a restart of the app.

Kooha-2022-10-03-02-41-22.webm

Maybe some permission somewhere? Where does the app store it's settings? What permissions should it have?

eboye commented 1 year ago

In ~/.var/app/com.github.GradienceTeam.Gradience/config/gtk-4.0

it looks like these

drwx------ eboye eboye 4.0 KB Sun Oct  2 02:43:34 2022 glib-2.0
drwxr-xr-x eboye eboye 4.0 KB Sun Oct  2 02:43:34 2022 gtk-3.0
drwxr-xr-x eboye eboye 4.0 KB Sun Oct  2 02:43:34 2022 gtk-4.0
drwxr-xr-x eboye eboye 4.0 KB Sun Oct  2 02:43:35 2022 presets

And those gtk folders are empy

0xMRTT commented 1 year ago

Did you followed the setup described in the README?

eboye commented 1 year ago

Yes

tfuxu commented 1 year ago

Do you have Eyedropper installed as Flatpak too?

eboye commented 1 year ago

Yes, it's installed via flatpak. Flatpak apps are not styled, that is the problem. Or does it conflict in some way?

tfuxu commented 1 year ago

Okay, so this isn't a issue with Gradience explicitly.

It looks for me like a broken installation of GNOME runtime. You could try updating GNOME runtime 42 to the newest version:

flatpak update org.gnome.Platform//42

or reinstalling:

flatpak remove org.gnome.Platform//42
flatpak install org.gnome.Platform//42

If this isn't it, then maybe a flatpak/filesystem permission issue? You should report this to flatpak repository, maybe they'll have some more knowledge on how to fix this: https://github.com/flatpak/flatpak/issues

eboye commented 1 year ago

Thanks, I've tried to update, but "nothing to do" got back to me. I've tried removing, but then it was problem of bunch of apps requiing Tried repair No change Made a list of all the packages, removed everything needed by org.gnome.Platform 41 42 and 43 Removed completely org.gnome.Platform and then installed everything back

Same result 😢

I'll try with flatpak guys. Just wanted to share my experience here

0xMRTT commented 1 year ago

Hi,

What about trying the AUR package?

Maybe that can solve your problem?

tfuxu commented 1 year ago

I'm closing this issue for now, because from what we've deducted, it's a Flatpak bug, not a Gradience bug explicitly, but if it turns out later that Gradience is indeed a culprit of this issue, we can at any moment reopen this.

tfuxu commented 1 year ago

Hi,

What about trying the AUR package?

Maybe that can solve your problem?

Yes it will, but only for Gradience.

eboye commented 1 year ago

finally I found what was causing it.

FlatSeal for some reason saved settings to ~/.local/share/flatpak/overrides at some point ... removing that folder solved all the issues.

tfuxu commented 1 year ago

finally I found what was causing it.

FlatSeal for some reason saved settings to ~/.local/share/flatpak/overrides at some point ... removing that folder solved all the issues.

Ah, yes 😂️ I forgot to tell you the most obvious thing to do in order to fix broken Flatpak config. You could do exactly what you did, or just type in terminal: flatpak override --reset Anyway, great that you found a solution for this!