mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
Fix round-corner backround of insensitive ArdourWidgets
ArdourButton draws a custom insensitive background, using the color "gtk_background". This can conflict with gtk's insensitive background color when using round-corners.
This commit is contained in:
parent
acae86781b
commit
d05572e14a
2 changed files with 3 additions and 3 deletions
|
|
@ -297,7 +297,7 @@ CairoWidget::get_parent_bg ()
|
|||
_current_parent = parent;
|
||||
_parent_style_change = parent->signal_style_changed().connect (mem_fun (*this, &CairoWidget::on_style_changed));
|
||||
}
|
||||
return style->get_bg (get_state());
|
||||
return style->get_bg (Gtk::STATE_NORMAL);
|
||||
}
|
||||
|
||||
if (!parent->get_has_window()) {
|
||||
|
|
@ -313,7 +313,7 @@ CairoWidget::get_parent_bg ()
|
|||
_current_parent = parent;
|
||||
_parent_style_change = parent->signal_style_changed().connect (mem_fun (*this, &CairoWidget::on_style_changed));
|
||||
}
|
||||
return parent->get_style ()->get_bg (parent->get_state());
|
||||
return parent->get_style ()->get_bg (Gtk::STATE_NORMAL);
|
||||
}
|
||||
|
||||
return get_style ()->get_bg (get_state());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue