aboutsummaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-13 08:36:51 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-13 08:36:51 +0200
commit82866404bb8abf6e10663215e0eb8181de76e52a (patch)
tree70e3fb4f5d0acbc605f02912ffa471e1fa153dfe /shell/shell.c
parent611f4827ad5704f0668a703405d13d5fd58b0dfe (diff)
FIX remove flashing intensity from gui benchmark - FIX #31
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c7
1 files changed, 3 insertions, 4 deletions
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", &params.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("<span color=\"#46f\">%s</span>", label);
} else {
key_markup = g_strdup_printf("<span color=\"#46f\">%s</span>", label);