Using the system theme
-
I did some research on the topic of system themes and found that setting things like
Universal.style: Universal.System
(or Material, depending on what style you're using) can make a QML app follow the system theme between light and dark. This works perfectly on my Linux desktop (KDE Plasma), but refuses to work on my Android phone. What could be the problem?Edit: Also, I'm noticing that the system style does not dynamically change with the system theme. Instead, the app must be restarted.
-
I did some research on the topic of system themes and found that setting things like
Universal.style: Universal.System
(or Material, depending on what style you're using) can make a QML app follow the system theme between light and dark. This works perfectly on my Linux desktop (KDE Plasma), but refuses to work on my Android phone. What could be the problem?Edit: Also, I'm noticing that the system style does not dynamically change with the system theme. Instead, the app must be restarted.
Universal.style: Universal.System
@LorenDB Where does the aforementioned go in the QML file?
-
Universal.style: Universal.System
@LorenDB Where does the aforementioned go in the QML file?
-
@LorenDB, thanks. That worked. I'll be testing my code eventually on Android too, so if I ascertain a solution I'll notify you of it.