-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default config's color scheme should respect dark/light mode OS settings #604
Comments
I actually wonder. How can we find out if KDE is currently in dark color mode or in light color mode? Also, we currently only support specifying one color scheme, regardless of the OS dark/light mode settings. -> We could then adjust the color theme live as soon as the OS decided to go dark/light mode. |
https://doc.qt.io/qt-5.15/qtquickcontrols2-universal.html
|
I also googled around a bit and found this: dbus-send \
--session --print-reply=literal --reply-timeout=1000 \
--dest=org.freedesktop.portal.Desktop \
/org/freedesktop/portal/desktop \
org.freedesktop.portal.Settings.Read \
string:'org.freedesktop.appearance' \
string:'color-scheme' We could initially read and then watch on change events on that setting and act accordingly (Not sure how to do that in C++, but most likely QtDbus would probably do the most work for us on that one already. EDIT: result value 1 = dark mode, 2 = light mode |
I really like that one, the accent color could be used for selection. So we could extend color schemes to make use of accent colors by specifying the string "accent" rather than a hex code. That could be used for things like selection colors etc. We'd need a way to say something like |
Windows and OSX have it. And at least KDE version 5.24 has it too .
The default color scheme from there default config should respect that setting and pick some appropriate colors.
The text was updated successfully, but these errors were encountered: