diff options
author | hwspeedy <ns@bigbear.dk> | 2024-05-13 09:04:40 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-05-13 09:04:40 +0200 |
commit | 9eaaf787b3c3291f1ddc127efdaf0f9e8777b488 (patch) | |
tree | d6624af3c2f7f4e7333bc248b185741180ba6fdc /hardinfo2 | |
parent | 82866404bb8abf6e10663215e0eb8181de76e52a (diff) |
FIX Improve epileptic by more flash removal - improve darkmode detection
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/hardinfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hardinfo2/hardinfo.c b/hardinfo2/hardinfo.c index 218b4298..f0729d44 100644 --- a/hardinfo2/hardinfo.c +++ b/hardinfo2/hardinfo.c @@ -93,9 +93,12 @@ int main(int argc, char **argv) } } - /* load all modules */ - DEBUG("loading all modules"); - modules = modules_load_all(); + //Get DarkMode state from system + g_object_get(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", ¶ms.darkmode, NULL); + + /* load all modules */ + DEBUG("loading all modules"); + modules = modules_load_all(); /* initialize vendor database */ vendor_init(); |