[gimp] app: reduce toolbox color-area size



commit f2c7f49b1295987bf0b22d58a67b86bce9263721
Author: Ell <ell_se yahoo com>
Date:   Wed Jan 29 22:10:06 2020 +0200

    app: reduce toolbox color-area size
    
    Reduce the size of the toolbox color-area, and make it square.
    This allows for a narrower toolbox layout.

 app/widgets/gimpfgbgeditor.c | 4 ++--
 app/widgets/gimptoolbox.c    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpfgbgeditor.c b/app/widgets/gimpfgbgeditor.c
index 278d9e6add..4c340e8a70 100644
--- a/app/widgets/gimpfgbgeditor.c
+++ b/app/widgets/gimpfgbgeditor.c
@@ -270,8 +270,8 @@ gimp_fg_bg_editor_get_preferred_width_for_height (GtkWidget *widget,
                                                   gint      *minimum_width,
                                                   gint      *natural_width)
 {
-  *minimum_width = height * 4/3;
-  *natural_width = height * 4/3;
+  *minimum_width = height;
+  *natural_width = height;
 }
 
 static void
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index a5d4d50f10..fb5f9fc476 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -578,7 +578,7 @@ toolbox_create_color_area (GimpToolbox *toolbox,
 {
   GtkWidget *col_area;
 
-  col_area = gimp_toolbox_color_area_create (toolbox, 54, 42);
+  col_area = gimp_toolbox_color_area_create (toolbox, 40, 38);
   g_object_set (col_area,
                 "halign",        GTK_ALIGN_CENTER,
                 "valign",        GTK_ALIGN_CENTER,


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