From 82866404bb8abf6e10663215e0eb8181de76e52a Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Mon, 13 May 2024 08:36:51 +0200 Subject: FIX remove flashing intensity from gui benchmark - FIX #31 --- shell/callbacks.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'shell/callbacks.c') 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); -- cgit v1.2.3