diff options
author | hwspeedy <ns@bigbear.dk> | 2024-05-13 08:36:51 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-05-13 08:36:51 +0200 |
commit | 82866404bb8abf6e10663215e0eb8181de76e52a (patch) | |
tree | 70e3fb4f5d0acbc605f02912ffa471e1fa153dfe /shell/callbacks.c | |
parent | 611f4827ad5704f0668a703405d13d5fd58b0dfe (diff) |
FIX remove flashing intensity from gui benchmark - FIX #31
Diffstat (limited to 'shell/callbacks.c')
-rw-r--r-- | shell/callbacks.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/callbacks.c b/shell/callbacks.c index 1948c6f1..c67b5c9a 100644 --- a/shell/callbacks.c +++ b/shell/callbacks.c @@ -183,10 +183,8 @@ void cb_disable_theme() g_key_file_free(key_file); #if GTK_CHECK_VERSION(3, 0, 0) - gboolean darkmode; - g_object_get(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", &darkmode, NULL); if(params.theme>0){//enable - if(darkmode){ + if(params.darkmode){ sprintf(theme_st,"window.background {background-image: url(\"/usr/share/hardinfo2/pixmaps/bg%d_dark.jpg\"); background-repeat: no-repeat; background-size:100%% 100%%; }",params.theme); }else{ sprintf(theme_st,"window.background {background-image: url(\"/usr/share/hardinfo2/pixmaps/bg%d_light.jpg\"); background-repeat: no-repeat; background-size:100%% 100%%; }",params.theme); |