Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeePassXC no longer respects GTK dark theme #105

Closed
arielnmz opened this issue Feb 5, 2023 · 5 comments
Closed

KeePassXC no longer respects GTK dark theme #105

arielnmz opened this issue Feb 5, 2023 · 5 comments

Comments

@arielnmz
Copy link

arielnmz commented Feb 5, 2023

I'm reopening this issue since the other one (#42) was closed and there was no response to my last comment, and it is still present in KeepassXC version:

KeePassXC - Community-driven port of the Windows application “KeePass Password
Safe”

          ID: org.keepassxc.KeePassXC
         Ref: app/org.keepassxc.KeePassXC/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 2.7.4
     License: GPL-3.0+
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 38.7 MB
     Runtime: org.kde.Platform/x86_64/5.15-22.08
         Sdk: org.kde.Sdk/x86_64/5.15-22.08

      Commit: ce59520f98630092cfd09a1f88fbad3b4970fbac97c7ca13eb315a3b74321b8b
      Parent: bcb0cbd96bb1af0186dc0bea6b221c15774ee858971932d04f54916734e87c06
     Subject: Bump release to 2.7.4 (75a0f1dc)
        Date: 2022-10-30 02:17:56 +0000

.profile:


# Theme properties
export GTK_THEME="Arc-Dark"
export GTK_THEME_VARIANT="dark"

# Some tips from here:
# https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#Flatpak_Qt_apps_do_not_use_Gnome_Adwaita_dark_theme
export QT_QPA_PLATFORMTHEME="gnome"

# Some other good tips here:
# https://gist.github.com/jmrf/4de7a72c0c7a07afcb0b5f880dc9a2dc
# Configure through dconf
# Not needed unless a settings manager is used e.g. xfsettings or gnome-settings
# NOTE: Some flatpak applications can only get settings from settings daemons
dconf write /org/gnome/desktop/interface/gtk-theme "'${GTK_THEME}'"
dconf write /org/gnome/desktop/interface/gtk-color-scheme "'${GTK_THEME_VARIANT}'"
dconf write /org/gnome/desktop/interface/icon-theme "'WhiteSur-dark'"
dconf write /org/gnome/desktop/interface/font-name "'sans 10'"
dconf write /org/gnome/desktop/interface/monospace-font-name "'monospace 10'"

image

@pm4rcin
Copy link

pm4rcin commented Feb 23, 2023

Hi, try using the last option from the list. The classic allowed me to use Adwaita-Dark just fine so I guess it should work for you too. I guess something is broken on keepassxc side because it doesn't work in non-flatpak too. As an example it works just fine on RPCS3 flatpak which has the same runtime as KPXC. Even though it was implemented keepassxreboot/keepassxc#7422 it doesn't work. I use it in dwl (wlroots based) but I don't know if it makes any difference.

@arielnmz
Copy link
Author

arielnmz commented Feb 23, 2023

Interesting, thanks for linking to that PR. I'm not really looking for a workaround as just manually selecting the Dark mode is enough, but the issue is that it is not honoring my system's settings as it should and I felt like this needed to be reopened.

@superuser-miguel
Copy link

I tried this recently and after a reboot it has worked flatpak override --filesystem=~/.themes;

@arielnmz
Copy link
Author

Just upgraded to Fedora 40 and this issue is back again. Setting the theme manually to dark works fine but Automatic defaults to light.

Setting theme via gsettings does not work:

gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'

Copying the gtk-3.0 settings into ~/.var/app/org.keepassxc.KeePassXC/config/gtk-3.0 does not work either:

$ cat $XDG_CONFIG_HOME/gtk-3.0/settings.ini

[Settings]
gtk-application-prefer-dark-theme = true
gtk-theme-name = Adwaita-dark
gtk-font-name = sans 10

@droidmonkey
Copy link
Collaborator

Recommend filing a bug with flatpak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants