diff options
Diffstat (limited to 'hardinfo2/hardinfo.c')
-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(); |