Rename css class negative-color to negative-numbers

This commit is contained in:
Robert Fewell
2017-08-13 09:18:08 +01:00
parent 94841d9e64
commit 3be453649d
4 changed files with 4 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ gnc_set_label_color(GtkWidget *label, gnc_numeric value)
deficit = gnc_numeric_negative_p (value);
if (deficit)
gnc_widget_set_style_context (GTK_WIDGET(label), "negative-color");
gnc_widget_set_style_context (GTK_WIDGET(label), "negative-numbers");
else
gnc_widget_set_style_context (GTK_WIDGET(label), "default-color");
}

View File

@@ -112,7 +112,7 @@ get_negative_color (void)
GdkRGBA color;
GtkWidget *label = gtk_label_new ("Color");
GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET(label));
gtk_style_context_add_class (context, "negative-color");
gtk_style_context_add_class (context, "negative-numbers");
gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color);
return gdk_rgba_to_string (&color);;

View File

@@ -7,7 +7,7 @@
color: currentColor;
}
.negative-color {
.negative-numbers {
color: rgb(75%, 0%, 0%);
}

View File

@@ -453,7 +453,7 @@ get_negative_color (void)
gchar *color_str;
GtkWidget *label = gtk_label_new ("Color");
GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET(label));
gtk_style_context_add_class (context, "negative-color");
gtk_style_context_add_class (context, "negative-numbers");
gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color);
rgba = gdk_rgba_copy (&color);