mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Rename css class negative-color to negative-numbers
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.negative-color {
|
||||
.negative-numbers {
|
||||
color: rgb(75%, 0%, 0%);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user