qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
19.62k stars 641 forks source link

Only light theme on Ubuntu 22.04 (flatpak) #812

Open joenepraat opened 2 years ago

joenepraat commented 2 years ago

When installing the flatpak package (5.0.0) from https://flathub.org/apps/details/com.github.qarmin.czkawka Czkawka opens with the light theme (and blue accent colour) in a dark Gnome environment. When opening the GUI from https://github.com/qarmin/czkawka/releases/tag/5.0.1 the dark theme opens with the correct accent colour.

Ubuntu 22.04.

necros2k7 commented 2 years ago

IMHO would close such cosmetic issues until app is superb in it`s main purpose

feelingwalnut commented 2 years ago

IMHO would close such cosmetic issues until app is superb in it`s main purpose

is that not the entire purpose of the alternative gui appimage? I've noticed that both look identical except one is much larger in filesize. IIRC the difference used to be the color and file size.

StephGbzh commented 2 years ago

Flatpaks don't have access to /usr/share/themes but they have access to ~/.themes.

If you put your favorite theme in there, it will be used.

For example if Yaru-dark theme is your application theme, the steps are:

bevsxyz commented 1 year ago

I think it is unfortunate that Czkawka does not follow the system dark theme setting in gnome. I can only view the app in the light theme. The flathub page though shows the dark theme.

I am facing the same issue with flatpak in Fedora Silverblue 38.

bevsxyz commented 1 year ago

Flatpaks don't have access to /usr/share/themes but they have access to ~/.themes.

If you put your favorite theme in there, it will be used.

For example if Yaru-dark theme is your application theme, the steps are:

* copy `/usr/share/themes/Yaru-dark` to `~/.themes`

* relaunch Czkawka

That did not help with the light mode. I have tried Yaru-dark and Adwaita-Dark without any change.

bevsxyz commented 1 year ago

I used the gnome extension https://extensions.gnome.org/extension/4998/legacy-gtk3-theme-scheme-auto-switcher/ to auto switch the theme based on the gnome settings. The issue is indeed czkawka following legacy gtk theme.

Qronikarz commented 1 year ago

Any update on this matter? Linux Mint 21.2 now has option to set dark scheme for Flatpaks and Czkawka Flatpak is the only one that still uses light theme anyway.

Renner0E commented 1 year ago

@MrQuerter A dirty workaround is setting "GTK_THEME=Adwaita:dark" in environment variables in flatseal. In Terminal: flatpak override com.github.qarmin.czkawka --env=GTK_THEME=Adwaita:dark And reopening czkawka again Tested on live iso of lmde 5 elsie.

Also works on kde. On the fly dark/light mode switching doesn't work obviously.

It's not the mint theme. But at least it's not burning your retinas. I presume the mint themes still have to be ported to GTK4. Even if they get ported to GTK4 some day there is still a high chance that apps with 3rd party themes will break.

robouden commented 11 months ago

@MrQuerter thanks a lot!!!

On Linux Mint 21.2 this works for me: "flatpak override com.github.qarmin.czkawka --env=GTK_THEME=Adwaita:dark"

Regards, Rob Oudendijk

elsiehupp commented 3 months ago

The application Mission Center is similarly written with Gtk4, LibAdwaita, and Rust, and it correctly detects the Dark Mode indicator when run as a Flatpak on elementary OS. I'm not sure why Mission Center does this correctly, and Czkawka does not, but one could probably figure it out by comparing the source code (and/or Flatpak manifests) of the two.