[gthumb] histogram view: use a darker background color
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] histogram view: use a darker background color
- Date: Sat, 28 Dec 2013 19:09:05 +0000 (UTC)
commit 295dd5f79d296a8f1c4b48889447d7a473d5ae6a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Dec 28 20:06:08 2013 +0100
histogram view: use a darker background color
gthumb/gth-histogram-view.c | 1 +
gthumb/resources/gthumb.css | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-histogram-view.c b/gthumb/gth-histogram-view.c
index be32021..fd6ef95 100644
--- a/gthumb/gth-histogram-view.c
+++ b/gthumb/gth-histogram-view.c
@@ -565,6 +565,7 @@ histogram_view_draw_cb (GtkWidget *widget,
style_context = gtk_widget_get_style_context (widget);
gtk_style_context_save (style_context);
gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_VIEW);
+ gtk_style_context_add_class (style_context, "histogram");
gtk_widget_get_allocation (widget, &allocation);
gtk_render_background (style_context, cr, 0, 0, allocation.width, allocation.height);
diff --git a/gthumb/resources/gthumb.css b/gthumb/resources/gthumb.css
index ecb4e4e..c416b78 100644
--- a/gthumb/resources/gthumb.css
+++ b/gthumb/resources/gthumb.css
@@ -21,6 +21,23 @@ GthEmptyList.frame:backdrop {
border-color: @unfocused_borders;
}
+/* -- histogram -- */
+
+.histogram {
+ background-color: #333333;
+}
+
+.histogram:selected,
+.histogram:selected:focus {
+ background-color: @theme_selected_bg_color;
+ color: @theme_selected_fg_color;
+}
+
+.histogram:backdrop:selected {
+ background-color: @theme_unfocused_selected_bg_color;
+ color: @theme_unfocused_selected_fg_color;
+}
+
/* -- comment -- */
@define-color comment_bg #f5fabf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]