You are not logged in.

#1 2022-12-31 15:50:03

Brain
Member
Registered: 2020-07-29
Posts: 61

QT Apps do not respect Adwaita-dark colorscheme

OnlyOffice file chooser and Calibre do not respect my Adwaita-dark colorscheme.
What did I do wrong?

frRdDzF

I installed `adwaita-qt{5,6}`, set them up with `qt{5,6}ct` and also installed `xdg-desktop-portal` and its GTK implementation `xdg-desktop-portal-gtk`.

I also exported `QT_QPA_PLATFORMTHEME=qt5ct` globally.
Is there something similiar for QT6?

Last edited by Brain (2022-12-31 15:55:51)

Offline

#2 2022-12-31 16:00:18

Brain
Member
Registered: 2020-07-29
Posts: 61

Re: QT Apps do not respect Adwaita-dark colorscheme

Seems like just setting `QT_QPA_PLATFORMTHEME=qt6ct` resolves the issue with Calibre.
The issue with OnlyOffice remains however.

Offline

#3 2022-12-31 16:23:27

yochananmarqos
Member
Registered: 2020-02-05
Posts: 222

Re: QT Apps do not respect Adwaita-dark colorscheme

install qgnomeplatform-qt5 & qgnomeplatform-qt6 (adwaita-qt5 & adwaita-qt6 are dependencies of them), that's all you need to do. Do not use qt5ct / qt6ct or kvantum, they're not related. Make sure neither QT_QPA_PLATFORMTHEME nor QT_STYLE_OVERRIDE are set. You may need to reboot afterward.

Offline

#4 2022-12-31 16:31:00

Brain
Member
Registered: 2020-07-29
Posts: 61

Re: QT Apps do not respect Adwaita-dark colorscheme

I did all the things you described.
How do I set the theme now?

I should have maybe said in the beginning, that I am not using GNOME or any DE, but rather a WM.

Offline

#5 2022-12-31 16:37:58

Brain
Member
Registered: 2020-07-29
Posts: 61

Re: QT Apps do not respect Adwaita-dark colorscheme

Setting `QT_QPA_PLATFORMTHEME='gnome'` seems to work. Is that what I am supposed to do now?

Offline

#6 2022-12-31 16:41:21

yochananmarqos
Member
Registered: 2020-02-05
Posts: 222

Re: QT Apps do not respect Adwaita-dark colorscheme

Yes, I was just typing that before I saw your new reply.

There's no theme to set, Qt applications will automatically use the Adwaita / Adwaita-dark theme.

OnlyOffice does not respect the desktop theme if I remember right. Check the settings, I believe it has it's own theme setting.

Offline

#7 2022-12-31 16:42:05

Brain
Member
Registered: 2020-07-29
Posts: 61

Re: QT Apps do not respect Adwaita-dark colorscheme

Although it breaks my fontconfig on Calibre and also does not work for OnlyOffice.

Offline

#8 2023-01-01 11:38:29

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: QT Apps do not respect Adwaita-dark colorscheme

Brain wrote:

Is there something similiar for QT6?

https://github.com/trialuser02/qt6gtk2


Arch Linux Xfce - 64Bit Linux User #621110

Offline

Board footer

Powered by FluxBB