Qubes Manager not honoring colour scheme selection

51 views
Skip to first unread message

Qubes

unread,
Jul 21, 2022, 6:17:03 PM7/21/22
to qubes...@googlegroups.com
I have gone back and checked my 4.0 installation and on there Qubes
Manager definitely changes its colour scheme according to the "Style"
selected in

Qubes Menu -> System Tools -> Appearance

I like to use "Adwaita-dark". This changes everything to the dark theme
except Qubes Manager.

This is definitely a 4.1 and 4.11 specific problem. Is it a
configuration file that i can edit manually that will fix this annoyance?

The bright Qubes Manager kills my eyes at knight.

Sven Semmler

unread,
Jul 21, 2022, 6:59:06 PM7/21/22
to qubes...@googlegroups.com
This is quite easy to fix by installing qt5-qtsyleplugins in dom0 and exporting QT_QPA_PLATFORMTHEME=gtk2 in /etc/environment

--> https://github.com/QubesOS/qubes-issues/issues/7389

TheGardner

unread,
Jul 22, 2022, 4:03:36 AM7/22/22
to qubes-users
Ahh, thanks for that info!
Wondered the last couple of month, if QubesOS team would fix that one any day in the future. No I can help myself...

Cheers :)

Qubes

unread,
Jul 22, 2022, 4:20:46 AM7/22/22
to qubes...@googlegroups.com
Did the Qubes Manager implementation change from 4.0 to 4.1? I am just
asking because i have checked my 4.0 installation and it neither has
qt5-qtsyleplugins installed nor does it have an environment variable
configured for it.

It is just really odd that this would be needed now when it wasn't
needed in the past. It sounds not right having to install software in
dom0, something we guard against, just to get Qubes Manager to honor
dark theme settings.

Isn't Qubes Manager a GTK application? The qt5-qtsyleplugins and the
corresponding environment variable should only be necessary for Qt (KDE)
style applications.


TheGardner

unread,
Jul 22, 2022, 12:39:31 PM7/22/22
to qubes-users
seems so, my dark Qubes Manager went white from 4.0 to 4.1 and I didn't understand why and how to change, since today
Message has been deleted

Demi Marie Obenour

unread,
Jul 22, 2022, 10:07:18 PM7/22/22
to TheGardner, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Fri, Jul 22, 2022 at 05:45:13PM -0700, TheGardner wrote:
> Great! It's working now with the following steps in dom0 terminal:
>
> Download qt5-qtstyleplugins RPM file from:
>
> https://kojipkgs.fedoraproject.org//packages/qt5-qtstyleplugins/5.0.0/39.fc32/x86_64/qt5-qtstyleplugins-5.0.0-39.fc32.x86_64.rpm
>
> Move it from your AppVM to dom0 with:
>
> qvm-run --pass-io <from_AppVM> 'cat
> /home/user/Download/qt5-qtstyleplugins-5.0.0-39.fc32.x86_64.rpm' >
> /home/<your_dom0_user>/Downloads/qt5-qtstyleplugins-5.0.0-39.fc32.x86_64.rpm
>
> Install the package with:
>
> sudo dnf install -y qt5-qtstyleplugins-5.0.0-39.fc32.x86_64.rpm

This is not safe. You can do:

sudo qubes-dom0-update qt5-qtstyleplugins

and it will work as with any other package.

That reminds me: Marek, should we set repo_gpgcheck=1 and/or
%_pkgverify_level all in dom0, to protect against mistakes like this?
- --
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmLbV8wACgkQsoi1X/+c
IsEEPA//XejMBSNBzh4aZJuxfWmvK1ie50x8oK7/NH8QpIEeFIWMRaZNZSs9RxVi
cMC17g62ZSyoxb9bwwFHsF3SLxmuSvl1ucBeHSQqfS5SdkwYOeiml38bNXauryaI
fGjVzq6CJFNSfBbhDMcskkP8wcKmBrQFXlK5yfSAZ7OL/Cv5i5yGeuXka1Ij9qLY
8OY/qe331pAa++n4KyJp3Qvx3/tS/ZuaKna8Tt6GincXE6RdnsvWm2iP6HfFsIRb
lk3KSyM6fodA5uyCJGtcFAY6sJi9/5Fy8TlavMZxtv3xVQqVjZRVsKnMsld2TXnS
qPNSwGrKa6P9Z8gMUIufcLpNlNWccP5wvAOGtcJP6xVV9ALfXUGnnBP9scd3mGqo
7RighrDtMdVhbxHu268iuduILHe/TWcWxpRigrOt2+oUNBD/PNAeUZkKx9slFisY
sof5/HDNDBNnfqwCPxjtn54PEfa+biK+cWwcjC0gov06otIRskp/Cwr193kwJi/D
K4KppbHsk1swCuQf06Cy/X2yvq67Xbe7g/HgqXrRgFPkPuWpSSpRWIeIdDaklCej
eXvQNQRbhAk6euYHJLjV8XMW1eC06Kaeo+ZvtEwBeZlBdnfkA1VlFc+XLfb2L3L/
9dff6pkqjr82mS64hGB9ocDRZgx3iikD5F79OL/X/ZcTF+uC+Wo=
=p8Nh
-----END PGP SIGNATURE-----

TheGardner

unread,
Jul 23, 2022, 3:29:19 AM7/23/22
to qubes-users
Thanks very much Demi Marie.
Then this should be the correct way:

Source & Info: https://github.com/QubesOS/qubes-issues/issues/7389


Install the package qt5-qtstyleplugins with:

sudo qubes-dom0-update qt5-qtstyleplugins

then insert in /etc/environment:

-------------[Start]---------------------
QT_QPA_PLATFORMTHEME=gtk2
-------------[End]-----------------------

in dom0 terminal do:

export QT_QPA_PLATFORMTHEME=gtk2

---

finally you can check, if all changes were set & working:

[TheGardner@dom0]$ cat /etc/environment
QT_QPA_PLATFORMTHEME=gtk2

[TheGardner@dom0]$ echo $QT_QPA_PLATFORMTHEME
gtk2

[TheGardner@dom0]$ sudo dnf info qt5-qtstyleplugins
Qubes OS Repository for Dom0                                                     1.9 MB/s | 3.0 kB     00:00
Installed Packages
Name         : qt5-qtstyleplugins
Version      : 5.0.0
Release      : 39.fc32
Architecture : x86_64
Size         : 1.2 M
Source       : qt5-qtstyleplugins-5.0.0-39.fc32.src.rpm
Repository   : @System
 From repo    : qubes-dom0-cached
Summary      : Classic Qt widget styles
URL          : https://github.com/qtproject/qtstyleplugins
License      : LGPLv2 or GPLv2
Description  : Classic Qt widget styles, including cleanlooks, motif, plastique, qgtk.

Andrew David Wong

unread,
Jul 23, 2022, 11:58:29 PM7/23/22
to qubes-users
On 7/22/22 7:07 PM, Demi Marie Obenour wrote:
> [...]
>
> That reminds me: Marek, should we set repo_gpgcheck=1 and/or
> %_pkgverify_level all in dom0, to protect against mistakes like this?

FWIW: https://github.com/QubesOS/qubes-issues/issues/7628

taran1s

unread,
Jul 25, 2022, 7:53:41 PM7/25/22
to TheGardner, qubes-users
I tried this but didn't succeed.

sudo qubes-dom0-update qt5-qtstyleplugins
sudo qubes-dom0-update
export QT_QPA_PLATFORMTHEME=gtk2

cat /etc/environment QT_QPA_PLATFORMTHEME=gtk2
cat: 'QT_QPA_PLATFORMTHEME=gtk2': No such file or directory

Qube Manager is still white ^^. Any ideas?


TheGardner:
Kind regards
taran1s

gpg: 12DDA1FE5FB39C110F3D1FD5A664B90BD3BE59B3

Andrew David Wong

unread,
Jul 26, 2022, 4:15:58 AM7/26/22
to taran1s, qubes-users
On 7/25/22 4:53 PM, 'taran1s' via qubes-users wrote:
> I tried this but didn't succeed.
>
> sudo qubes-dom0-update qt5-qtstyleplugins
> sudo qubes-dom0-update
> export QT_QPA_PLATFORMTHEME=gtk2
>
> cat /etc/environment QT_QPA_PLATFORMTHEME=gtk2
> cat: 'QT_QPA_PLATFORMTHEME=gtk2': No such file or directory
>
> Qube Manager is still white ^^. Any ideas?
>

You have to actually edit the file `/etc/environment` in order to insert the string `QT_QPA_PLATFORMTHEME=gtk2` into that file, then reboot afterward.

P.S. -- Please avoid top-posting.

TheGardner

unread,
Jul 26, 2022, 7:00:54 AM7/26/22
to qubes-users
that should be the solution. Did it wrong also on my first try. After editing the /etc/environment , it works...
Reply all
Reply to author
Forward
0 new messages