You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah the dark mode support in Qt is a mess. It used to work with runtime theme changes, but now I can reproduce it only using the system theme on start (as long as you use the correct platformtheme plugin), but not changing it during runtime anymore.
This diff seems to fix the problem, but I prefer to fix it upstream in Qt instead:
This kind of shit almost makes GTK look sane in comparison. All of the above four should be unified in one single interface, that's reused everywhere. So this probably needs some refactoring first.
Activity
vimpostor commentedon Apr 17, 2025
Yeah the dark mode support in Qt is a mess. It used to work with runtime theme changes, but now I can reproduce it only using the system theme on start (as long as you use the correct platformtheme plugin), but not changing it during runtime anymore.
This diff seems to fix the problem, but I prefer to fix it upstream in Qt instead:
It doesn't help, that Qt has implemented system theme detection in 4 different places, with all basically the same duplicated code:
This kind of shit almost makes GTK look sane in comparison. All of the above four should be unified in one single interface, that's reused everywhere. So this probably needs some refactoring first.
Edit: Upstream issue is here: https://bugreports.qt.io/browse/QTBUG-116197 and also similarly here https://bugreports.qt.io/browse/QTBUG-133044
Aneeqasif commentedon Sep 20, 2026
any updates on this?
vimpostor commentedon Sep 20, 2026
For now you can use
export QT_QPA_PLATFORMTHEME=xdgdesktopportalto force the platform theme, where I implemented support over 4 years ago.