app, themes: move GimpDisplayShell styling to CSS

Looks half-decent again now.
This commit is contained in:
Michael Natterer 2018-05-02 12:57:13 +02:00
parent 03feaf39c3
commit 65d4450b3e
2 changed files with 7 additions and 9 deletions

View File

@ -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

View File

@ -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;
}