-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 doesn't respect system theme (Ubuntu 18.04 - GNOME) #1931
Comments
For Snap and AppImage, this is to be expected. For the "native" version, it's not. I suppose you have some misconfiguration of Qt styles on your system. We don't do anything special here and it works on all platforms I've used KeePassXC on so far. |
Yeah, I figured for Snap and AppImage. But this is the native app on a clean Ubuntu install. So unless I messed something in the first few days of using Ubuntu, which is possible, the misconfig is came that way. Any ideas where/how to check and/or remedy? |
You probably have to fix or reset the QT_QPA_PLATFORMTHEME env var. Various qt5 packages on Ubuntu also support theming |
Apologies, I am not sure how to do that:
|
See #1914 (comment) |
Confirming that it does not inherit the theme on out of the box Xubuntu 18.04, while installing from the ppa. It worked fine on 16.04. It ignores all the themes, so not particular to any specific theme. The themes still work fine on other applications, except for keepassxc. On 18.04
Meanwhile, on 16.04 the Qt version is 5.5.1 |
I am seeing this as well. Other Qt programs, including KeepassX, load the system theme correctly. |
same problem here. Ubuntu 18.04 (xorg), KeepassXC 2.3.1 from ppa.
tried various values with no luck :
|
Came upon this because of okular (since gnome seems to have killed evince..). Try installing the package qt5-style-plugins and check if it solves the problem. For me it worked straight away, no need for the export.
Also came upon this on a askubuntu question: https://askubuntu.com/questions/910012/how-can-i-get-qt5-applications-to-use-the-gtk-theme-in-ubuntu-17-04
|
QT_QPA_PLATFORMTHEME=gtk2 trick works in 2.3.4 from phoerious ppa Ubuntu 18.10 (xorg) |
This works for me from terminal:
But how do I get it to work from a launcher? Editing the Also, editing |
You need to add it to your .profile file or .bashrc in $HOME |
Thanks @droidmonkey. I added it to
Then select |
Yes, |
.profile is not always read by your X session. You may need to add it to .xsession instead. |
This worked for me on UbuntuMate18.04.2. I upgraded from 16. |
KeePassXC (1) supports GTK3 out-of-the-box, but unfortunately doesn't adapt to the current system theme and icon them making the UI looking really unpleasant and outdated. To use a modern style the app is now started with the `QT_QPA_PLATFORMTHEME` environment variable (2) set to `gtk2` to ensure the app respects the Qt5 style overrides (3). References: (1) https://keepassxc.org (2) https://wiki.archlinux.org/index.php/qt#All_Qt5-based_applications_fail_to_run_after_Qt5_update (3) keepassxreboot/keepassxc#1931 Resolves GH-204
Why did you close this? The app still only follows KDE themes on KDE and it requires setting an environment variable by the user for other desktops. On xubuntu with the arc dark menu keepassxc is very ugly too. |
Its not our "bug", take it up with Qt and your distro. We are deploying a custom theme in 2.6 that will eliminate this entire concern. |
Same for me, except I needed to log out after Qt5 preferences installation:
Restart Then set preferences under Menu > Preferences > Qt5 Preferences > Appearance:
|
KeepassXC doesn't respect system theme (Ubuntu 18.04 - GNOME - not Snap install)
Expected Behavior
KPXC respect the system theme in Ubuntu 18.04 GNOME, which in my case is Adwaita-dark (set via GNOME-Tweaks>Appearance>Themes>Applications)
Current Behavior
Despite system theme Adwaita-dark, KPXC has a light theme.
Possible Solution
Tried
exec
line to:keepassxc --style Adwaita-dark
. (from here)~/.bashrc
to includeexport QT_STYLE_OVERRIDE=adwaita-dark
as last line (from here).~/.initrx
to includeexport QT_STYLE_OVERRIDE=gtk2
as last line (from here).Steps to Reproduce (for bugs)
Install Ubuntu 18.04 (clean install)
Install KPXC from the Ubuntu Software center (NOT Snap version!).
Context
All opens of application
Debug Info
keepassxc 2.3.1
If use
keepassxc -style Adwaita-dark
, get error:QApplication: invalid style override passed, ignoring it.
Operating system: Ubuntu 18.04
CPU architecture: x64
Kernel: 4.15.0-20-generic
Enabled extensions:
The text was updated successfully, but these errors were encountered: