Community icon indicating copy to clipboard operation
Community copied to clipboard

bug: Theme is applied partially

Open marcinjahn opened this issue 3 years ago • 13 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What happened?

I've been trying to apply a theme called "Alpha Mac". When I select the theme in Gradience, the Gradience window becomes properly themed:

image

However, when I log out and log back in, I see that:

  • window backgrounds follow the theme (not all apps though)
  • window controls (close, maximize) have 3 possible states:
    • in some apps they follow the Alpha Mac theme
    • in some apps they look like Adwaita (even though the rest of the theme is applied, like a background)
    • in some apps windows controls disappear completely, although they are still clickable

The window controls issue is kinda random. A given app may not display controls at all, and after another log out - log in, the controls are visible (but in the default Adwaita style).

To Reproduce

  1. Apply Alpha Mac theme

Expected behavior

The theme should just work across all the apps.

Screenshots

No response

OS

Fedora Linux 36 (Workstation)

Version

0.3.1

Installation method

Flatpak from Flathub

Additional context

image

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

marcinjahn avatar Oct 10 '22 15:10 marcinjahn

Did you tried with other themes ?

0xMRTT avatar Oct 10 '22 16:10 0xMRTT

Yeah, I did. I'm actually using "Pretty Purple" all the time. I think it is not as problematic as Alpha Mac, because it does not modify the window controls. There are a few apps that don't follow the Pretty Purple theme (like the Extensions Manager or Drawing). I have no idea why though.

marcinjahn avatar Oct 10 '22 16:10 marcinjahn

Are you using Extensions Manager as a flatpak ?

0xMRTT avatar Oct 10 '22 16:10 0xMRTT

Yes, it's from flathub, same as Gradience itself. Actually, many (maybe all?) flatpaks apps do not use the theme applied by Gradience, but rather the default light Adwaita theme. I surely did select the "LibAdwaita and GTK4" checkbox when applying the theme.

marcinjahn avatar Oct 10 '22 17:10 marcinjahn

Hmm, could you try:

flatpak override --reset
sudo flatpak override --filesystem=xdg-config/gtk-4.0
sudo flatpak override --filesystem=xdg-config/gtk-3.0

0xMRTT avatar Oct 10 '22 17:10 0xMRTT

That fixed the flatpak issue, thanks!

image

Maybe Gradience should invoke these when applying themes?

marcinjahn avatar Oct 10 '22 17:10 marcinjahn

I tried applying Alpha Mac again, and invoked the command you showed me. It didn't help with that issue unfortunately. Here's what some of the apps look like after log-out/log-in:

image

The window controls are missing in some apps, in others they are correctly displayed. I never see such an issue with Pretty Purple.

marcinjahn avatar Oct 10 '22 17:10 marcinjahn

@0xMRTT Please move this issue to GradienceTeam/Community as this is an issue with Alpha Mac preset itself.

tfuxu avatar Oct 10 '22 17:10 tfuxu

The window controls are missing in some apps, in others they are correctly displayed. I never see such an issue with Pretty Purple.

Can confirm it, probably author of this preset just forgot to add CSS rules for GTK 3 apps. (We should check presets before merging them next time)

tfuxu avatar Oct 10 '22 17:10 tfuxu

Could be, now when I launched Gradience, after applying Alpha Mac, I see this:

image

I think there are 2 issues here:

  1. a community theme Alpha Mac (possibly Alpha Black and Alpha Dark as well) is broken?
  2. Gradience does not show that the theme is broken until I apply it and logout/login.

marcinjahn avatar Oct 10 '22 17:10 marcinjahn

Known issue, it's something with CSS parser we are using in Gradience, it will only cause issues if you are changing something in preset, and it got loaded with those errors.

tfuxu avatar Oct 10 '22 18:10 tfuxu

Known issue, it's something with CSS parser we are using in Gradience, it will only cause issues if you are changing something in preset, and it got loaded with those errors.

Not sure if that's what you meant, but I didn't change anything in the preset. I just applied the theme, didn't make any modifications to it.

marcinjahn avatar Oct 10 '22 18:10 marcinjahn

1. a community theme Alpha Mac (possibly Alpha Black and Alpha Dark as well) is broken?

2. Gradience does not show that the theme is broken until I apply it and logout/login.
  1. Yea, it is,
  2. The preset itself isn't broken in this aspect, it's just that CSS parser is loading it in a broken way

tfuxu avatar Oct 10 '22 18:10 tfuxu