mirror of https://github.com/GNOME/gimp.git
app, themes: move GimpDisplayShell styling to CSS
Looks half-decent again now.
This commit is contained in:
parent
03feaf39c3
commit
65d4450b3e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue