[gthumb] histogram: changed channels colors
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] histogram: changed channels colors
- Date: Sat, 28 Dec 2013 20:37:30 +0000 (UTC)
commit 5413c63e5bdc4a9e05134bbdc99ac424a4661234
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Dec 28 21:36:02 2013 +0100
histogram: changed channels colors
gthumb/gth-histogram-view.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/gth-histogram-view.c b/gthumb/gth-histogram-view.c
index fd6ef95..96d5539 100644
--- a/gthumb/gth-histogram-view.c
+++ b/gthumb/gth-histogram-view.c
@@ -324,16 +324,16 @@ _cairo_set_source_color_from_channel (cairo_t *cr,
switch (channel) {
case GTH_HISTOGRAM_CHANNEL_VALUE:
default:
- cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 1.0);
+ cairo_set_source_rgba (cr, 0.8, 0.8, 0.8, 1.0);
break;
case GTH_HISTOGRAM_CHANNEL_RED:
- cairo_set_source_rgba (cr, 1.0, 0.0, 0.0, 1.0);
+ cairo_set_source_rgba (cr, 0.68, 0.18, 0.19, 1.0); /* #af2e31 */
break;
case GTH_HISTOGRAM_CHANNEL_GREEN:
- cairo_set_source_rgba (cr, 0.0, 1.0, 0.0, 1.0);
+ cairo_set_source_rgba (cr, 0.33, 0.78, 0.30, 1.0); /* #55c74d */
break;
case GTH_HISTOGRAM_CHANNEL_BLUE:
- cairo_set_source_rgba (cr, 0.0, 0.0, 1.0, 1.0);
+ cairo_set_source_rgba (cr, 0.13, 0.54, 0.8, 1.0); /* #238acc */
break;
case GTH_HISTOGRAM_CHANNEL_ALPHA:
cairo_set_source_rgba (cr, 0.5, 0.5, 0.5, 1.0);
@@ -483,10 +483,10 @@ gth_histogram_paint_rgb (GthHistogramView *self,
if (((self->priv->selection_start > 0) || (self->priv->selection_end < 255))
&& (i >= self->priv->selection_start) && (i <= self->priv->selection_end))
{
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ cairo_set_source_rgb (cr, 0.3, 0.3, 0.3);
}
else
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
value = gth_histogram_get_value (self->priv->histogram, min_c, i);
y = CLAMP ((int) (allocation->height * convert_to_scale (self->priv->scale_type, value)) /
max, 0, allocation->height);
cairo_rectangle (cr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]