[gimp/gtk3-port: 284/457] app, themes: move GimpDisplayShell styling to CSS



commit 48d6c273a2788ff2b38b2e9affeefbc41764290f
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 2 12:57:13 2018 +0200

    app, themes: move GimpDisplayShell styling to CSS
    
    Looks half-decent again now.

 app/display/gimpdisplayshell.c |   10 +---------
 themes/System/gimp.css         |    6 ++++++
 2 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 2543af0..64f7cd6 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -182,14 +182,6 @@ G_DEFINE_TYPE_WITH_CODE (GimpDisplayShell, gimp_display_shell,
 static guint display_shell_signals[LAST_SIGNAL] = { 0 };
 
 
-static const gchar display_rc_style[] =
-  "style \"check-button-style\"\n"
-  "{\n"
-  "  GtkToggleButton::child-displacement-x = 0\n"
-  "  GtkToggleButton::child-displacement-y = 0\n"
-  "}\n"
-  "widget \"*\" style \"check-button-style\"";
-
 static void
 gimp_display_shell_class_init (GimpDisplayShellClass *klass)
 {
@@ -289,7 +281,7 @@ gimp_display_shell_class_init (GimpDisplayShellClass *klass)
                                                         GDK_TYPE_PIXBUF,
                                                         GIMP_PARAM_READWRITE));
 
-  gtk_rc_parse_string (display_rc_style);
+  gtk_widget_class_set_css_name (widget_class, "GimpDisplayShell");
 }
 
 static void
diff --git a/themes/System/gimp.css b/themes/System/gimp.css
index f7b7b87..05c2003 100644
--- a/themes/System/gimp.css
+++ b/themes/System/gimp.css
@@ -56,6 +56,12 @@ GimpColorScales spinbutton entry {
     min-height: 0;
 }
 
+GimpDisplayShell button {
+    min-height: 0;
+    min-width: 0;
+    padding: 0 0 0 0;
+}
+
 GimpDock {
     font-size: smaller;
 }


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