aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/hardinfo.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-13 09:04:40 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-13 09:04:40 +0200
commit9eaaf787b3c3291f1ddc127efdaf0f9e8777b488 (patch)
treed6624af3c2f7f4e7333bc248b185741180ba6fdc /hardinfo2/hardinfo.c
parent82866404bb8abf6e10663215e0eb8181de76e52a (diff)
FIX Improve epileptic by more flash removal - improve darkmode detection
Diffstat (limited to 'hardinfo2/hardinfo.c')
-rw-r--r--hardinfo2/hardinfo.c9
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", &params.darkmode, NULL);
+
+ /* load all modules */
+ DEBUG("loading all modules");
+ modules = modules_load_all();
/* initialize vendor database */
vendor_init();