Skip to content

Commit

Permalink
Use Qt 6 Color Scheme feature to detect Dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eplatonoff committed Sep 15, 2024
1 parent ae53d69 commit 4c4e351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ApplicationWindow {
id: systemPalette

property color lightColor: '#ffffff'
property bool sysemDarkMode: base !== lightColor
property bool sysemDarkMode: Application.styleHints.colorScheme === Qt.ColorScheme.Dark
property alias follow: appSettings.followSystemTheme

onSysemDarkModeChanged: setSystemColors()
Expand Down

0 comments on commit 4c4e351

Please sign in to comment.