Mercurial > minori
comparison src/sys/win32/dark_theme.cpp @ 15:cde8f67a7c7d
*: update, megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 19 Sep 2023 22:36:08 -0400 |
parents | 5c0397762b53 |
children | 6481c5aed3e1 |
comparison
equal
deleted
inserted
replaced
14:a29c9402faf0 | 15:cde8f67a7c7d |
---|---|
15 return false; | 15 return false; |
16 } | 16 } |
17 } | 17 } |
18 | 18 |
19 bool IsInDarkTheme() { | 19 bool IsInDarkTheme() { |
20 QSettings settings("HKEY_CURRENT_" | 20 QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", |
21 "USER\\Software\\Microsoft\\Windows\\CurrentVersion\\The" | 21 QSettings::NativeFormat); |
22 "mes\\Personalize", | |
23 QSettings::NativeFormat); | |
24 return settings.value("AppsUseLightTheme", 1).toInt() == 0; | 22 return settings.value("AppsUseLightTheme", 1).toInt() == 0; |
25 } | 23 } |
26 | 24 |
27 } // namespace win32 | 25 } // namespace win32 |