[gnome-builder/wip/slaf/colorpicker] gstyle: show HEX6 color in palette widget swatchs



commit 3d24ee5b32f2a0a9b70122654da2374ae64bb1da
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Thu Jul 14 17:00:25 2016 +0200

    gstyle: show HEX6 color in palette widget swatchs
    
    Like in list mode, we show color code
    (here HEX6 due to the reduce place)
    in swatch mode.

 contrib/gstyle/gstyle-palette-widget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/contrib/gstyle/gstyle-palette-widget.c b/contrib/gstyle/gstyle-palette-widget.c
index 5451c65..eb50bd0 100644
--- a/contrib/gstyle/gstyle-palette-widget.c
+++ b/contrib/gstyle/gstyle-palette-widget.c
@@ -576,7 +576,8 @@ create_palette_flow_item (gpointer item,
                          "color", color,
                          "visible", TRUE,
                          "name-visible", FALSE,
-                         "fallback-name-visible", FALSE,
+                         "fallback-name-kind", GSTYLE_COLOR_KIND_RGB_HEX6,
+                         "fallback-name-visible", TRUE,
                          "tooltip-text", tooltip,
                          "width-request", 64,
                          "height-request", 64,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]