From 9eaaf787b3c3291f1ddc127efdaf0f9e8777b488 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Mon, 13 May 2024 09:04:40 +0200 Subject: FIX Improve epileptic by more flash removal - improve darkmode detection --- hardinfo2/hardinfo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'hardinfo2/hardinfo.c') 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(); -- cgit v1.2.3