themes: Prevent system theme leak on stacks and viewports
If a system theme sets the background-image property for stacks, it recolors the main canvas when empty. It also adds a border to the toolbox Wilber area. Additionally, the Credits page of the GtkAboutDialog has odd colors due to general viewport grid styles overriding the GTK default. This patch fixes these problems, and adds a custom CSS class to the GimpAboutDialog for current and future work.
This commit is contained in:
parent
9eb7928b91
commit
2aa0a9d42b
2 changed files with 22 additions and 2 deletions
|
|
@ -192,6 +192,9 @@ about_dialog_create (Gimp *gimp,
|
|||
g_list_free (children);
|
||||
}
|
||||
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (dialog.dialog),
|
||||
"gimp-about-dialog");
|
||||
|
||||
return dialog.dialog;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,12 @@ GimpDisplayShell, GimpDock, .dialog-action-box, .dialog-vbox {
|
|||
color: @dimmed-fg-color;
|
||||
}
|
||||
|
||||
/* Prevent system theme leak that adds a border around
|
||||
* the toolbox Wilber */
|
||||
GimpDock frame border {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* Foreground color for the big Wilber in the empty image window.
|
||||
* Again, background-color and background here are ignored.
|
||||
*/
|
||||
|
|
@ -82,6 +88,12 @@ GimpDisplayShell, GimpDock, .dialog-action-box, .dialog-vbox {
|
|||
color: @dimmed-fg-color;
|
||||
}
|
||||
|
||||
/* Prevent system theme leak that affects the color of the
|
||||
* main canvas and some widget containers */
|
||||
stack {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* GtkTextView */
|
||||
textview text, textview {
|
||||
background-color: @extreme-bg-color;
|
||||
|
|
@ -280,8 +292,13 @@ scrolledwindow
|
|||
|
||||
/* Removes black border around scrolled windows */
|
||||
scrolledwindow viewport grid, scrolledwindow viewport box {
|
||||
border-radius: 1px;
|
||||
border: 0px solid @bg-color;
|
||||
border-radius: 1px;
|
||||
border: 0px solid @bg-color;
|
||||
}
|
||||
|
||||
/* Defining background color for About Dialog credits box */
|
||||
.gimp-about-dialog box box stack scrolledwindow viewport grid {
|
||||
background-color: @extreme-bg-color;
|
||||
}
|
||||
|
||||
GimpRuler {
|
||||
|
|
|
|||
Loading…
Reference in a new issue