[gtk+/wip/colorchooser-v2: 9/77] Choose a different initial color when adding custom colors
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 9/77] Choose a different initial color when adding custom colors
- Date: Thu, 9 Feb 2012 21:27:04 +0000 (UTC)
commit 672a64c940fddf35bd1fed656b34bb756cb30238
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 30 23:40:13 2012 -0500
Choose a different initial color when adding custom colors
Going for pure red 'hides' the hairline at the edge of the
plane. This color makes it nicely visible.
gtk/gtkcolorchooserwidget.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 8abf5e6..a4ad5e7 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -84,9 +84,9 @@ button_activate (GtkColorSwatch *swatch,
{
GdkRGBA color;
- color.red = 1.0;
- color.green = 0;
- color.blue = 0;
+ color.red = 0.75;
+ color.green = 0.25;
+ color.blue = 0.25;
color.alpha = 1.0;
gtk_color_chooser_set_color (GTK_COLOR_CHOOSER (cc->priv->editor), &color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]