]> Pileus Git - ~andy/gtk/commitdiff
Choose a different initial color when adding custom colors
authorMatthias Clasen <mclasen@redhat.com>
Tue, 31 Jan 2012 04:40:13 +0000 (23:40 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:50 +0000 (16:36 -0500)
Going for pure red 'hides' the hairline at the edge of the
plane. This color makes it nicely visible.

gtk/gtkcolorchooserwidget.c

index 8abf5e6893b262514c6794df24dbc604ddd875f1..a4ad5e75edde7c59e4994240d9b08b7ea6375830 100644 (file)
@@ -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);