mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Allow to un-set custom Ardour-button colors
This commit is contained in:
parent
46bbe83400
commit
7b3ca486a4
2 changed files with 12 additions and 0 deletions
|
|
@ -827,6 +827,16 @@ void ArdourButton::set_inactive_color (const uint32_t color)
|
||||||
CairoWidget::set_dirty ();
|
CairoWidget::set_dirty ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ArdourButton::reset_fixed_colors ()
|
||||||
|
{
|
||||||
|
if (_fixed_colors_set == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_fixed_colors_set = 0;
|
||||||
|
_update_colors = true;
|
||||||
|
CairoWidget::set_dirty ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ArdourButton::build_patterns ()
|
ArdourButton::build_patterns ()
|
||||||
{
|
{
|
||||||
|
|
@ -1096,6 +1106,7 @@ ArdourButton::set_active_state (Gtkmm2ext::ActiveState s)
|
||||||
bool changed = (_active_state != s);
|
bool changed = (_active_state != s);
|
||||||
CairoWidget::set_active_state (s);
|
CairoWidget::set_active_state (s);
|
||||||
if (changed) {
|
if (changed) {
|
||||||
|
_update_colors = true;
|
||||||
CairoWidget::set_dirty ();
|
CairoWidget::set_dirty ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
|
||||||
void set_fixed_colors (const uint32_t active_color, const uint32_t inactive_color);
|
void set_fixed_colors (const uint32_t active_color, const uint32_t inactive_color);
|
||||||
void set_active_color (const uint32_t active_color);
|
void set_active_color (const uint32_t active_color);
|
||||||
void set_inactive_color (const uint32_t inactive_color);
|
void set_inactive_color (const uint32_t inactive_color);
|
||||||
|
void reset_fixed_colors ();
|
||||||
|
|
||||||
void set_fallthrough_to_parent(bool fall) { _fallthrough_to_parent = fall; }
|
void set_fallthrough_to_parent(bool fall) { _fallthrough_to_parent = fall; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue