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/shell.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'shell/shell.c') diff --git a/shell/shell.c b/shell/shell.c index 1bd99393..667a0ce4 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -71,7 +71,6 @@ static GSList *update_sfusrc = NULL; gchar *lginterval = NULL; -gboolean darkmode; /* * Code :) ******************************************************************** */ @@ -513,7 +512,7 @@ static void create_window(void) shell->notebook = gtk_notebook_new(); gtk_paned_add2(GTK_PANED(shell->vpaned), shell->notebook); - g_object_get(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", &darkmode, NULL); + g_object_get(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", ¶ms.darkmode, NULL); GKeyFile *key_file = g_key_file_new(); gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo2","settings.ini", NULL); @@ -535,7 +534,7 @@ static void create_window(void) if(params.theme==6) shell_action_set_active("Theme6Action", TRUE); if(params.theme>0){ - 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); @@ -1652,7 +1651,7 @@ static void module_selected_show_info_detail(GKeyFile *key_file, gboolean has_ven = key_value_has_vendor_string(flags); const Vendor *v = has_ven ? vendor_match(value, NULL) : NULL; - if(darkmode){ + if(params.darkmode){ key_markup = g_strdup_printf("%s", label); } else { key_markup = g_strdup_printf("%s", label); -- cgit v1.2.3