UI Themes?
-
wrote on 1 Nov 2022, 17:20 last edited by
My application currently uses the "Fusion" style, but I've been asked if I can add "Themes" like the Windows Dark and Light Themes.
Is there such support in Qt?
-
Hi
Nope. There is no buildin Dark theme for QWidgets.
There are solutions like
https://github.com/ColinDuquesnoy/QDarkStyleSheetQML has
https://doc.qt.io/qt-6/qtquickcontrols2-material.html -
Light/dark appearance including runtime changes will be supported from Qt 6.5 onwards.
-
wrote on 1 Nov 2022, 20:10 last edited by
👍Thank you
David
-
Light/dark appearance including runtime changes will be supported from Qt 6.5 onwards.
wrote on 18 Feb 2023, 07:12 last edited by@Axel-Spoerl Now that 6.5 is out where can I find the details about this support please?
Many thanks
David -
@Axel-Spoerl Now that 6.5 is out where can I find the details about this support please?
Many thanks
David@Perdrix
Basically the platform theme knows about the appearance.
We have changed the appearance property to the more meaningful name colorScheme last week.
See here: https://codereview.qt-project.org/c/qt/qtbase/+/460162 -
@Perdrix
Basically the platform theme knows about the appearance.
We have changed the appearance property to the more meaningful name colorScheme last week.
See here: https://codereview.qt-project.org/c/qt/qtbase/+/460162wrote on 19 Feb 2023, 12:01 last edited by@Axel-Spoerl Will this apply to Widgets as well as Qt Quick?
Thanks
David -
Yes, it will apply to both!
-
Yes, it will apply to both!
wrote on 19 Feb 2023, 16:34 last edited by@Axel-Spoerl 👏Thanks a lot