[gtk+/wip/colorchooser-v2: 6/40] Add Tangoish grayscales
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 6/40] Add Tangoish grayscales
- Date: Tue, 7 Feb 2012 17:44:59 +0000 (UTC)
commit 207f5b8fa0a4baba54c15f7cce66e67797056304
Author: Jon McCann <jmccann redhat com>
Date: Mon Jan 30 20:31:13 2012 -0500
Add Tangoish grayscales
gtk/gtkcolorchooserwidget.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 9daf323..f6f3cf7 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -229,6 +229,17 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
{ "#888a85", "#555753", "#2e3436" }, /* Aluminum 1 */
{ "#eeeeec", "#d3d7cf", "#babdb6" } /* Aluminum 2 */
};
+ const gchar *default_grayscale[9] = {
+ "#000000",
+ "#2e3436",
+ "#555753",
+ "#888a85",
+ "#babdb6",
+ "#d3d7cf",
+ "#eeeeec",
+ "#f3f3f3",
+ "#ffffff"
+ };
cc->priv = G_TYPE_INSTANCE_GET_PRIVATE (cc, GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidgetPrivate);
@@ -271,7 +282,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
for (i = 0; i < 9; i++)
{
- color.red = color.green = color.blue = i / 8.0;
+ gdk_rgba_parse (&color, default_grayscale[i]);
color.alpha = 1.0;
p = gtk_color_swatch_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]