We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9720a01 commit 218c0b7Copy full SHA for 218c0b7
1 file changed
gui/qt/utils.cpp
@@ -119,7 +119,12 @@ bool isRunningInDarkMode() {
119
}
120
121
bool isSystemInDarkMode() {
122
+#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
123
return qApp->styleHints()->colorScheme() == Qt::ColorScheme::Dark;
124
+#else
125
+ // TODO: handle other OS' way to know if we're running in dark mode
126
+ return isRunningInDarkMode();
127
+#endif
128
129
130
0 commit comments