diff --git a/libs/widgets/ardour_fader.cc b/libs/widgets/ardour_fader.cc index b87d595cad..9c7ef7220f 100644 --- a/libs/widgets/ardour_fader.cc +++ b/libs/widgets/ardour_fader.cc @@ -764,3 +764,17 @@ ArdourFader::get_parent_bg () return get_style ()->get_bg (get_state()); } + +void +ArdourFader::set_bg (Gtkmm2ext::Color c) +{ + explicit_bg = c; + have_explicit_bg = true; +} + +void +ArdourFader::set_fg (Gtkmm2ext::Color c) +{ + explicit_fg = c; + have_explicit_fg = true; +} diff --git a/libs/widgets/widgets/ardour_fader.h b/libs/widgets/widgets/ardour_fader.h index 6d1fff33d6..c051d63b6c 100644 --- a/libs/widgets/widgets/ardour_fader.h +++ b/libs/widgets/widgets/ardour_fader.h @@ -55,6 +55,9 @@ public: Tweaks tweaks() const { return _tweaks; } void set_tweaks (Tweaks); + void set_bg (Gtkmm2ext::Color); + void set_fg (Gtkmm2ext::Color); + protected: void on_size_request (GtkRequisition*); void on_size_allocate (Gtk::Allocation& alloc); @@ -100,9 +103,9 @@ private: sigc::connection _parent_style_change; Widget * _current_parent; Gdk::Color get_parent_bg (); - Gtkmm2ext::Color _explicit_bg; + Gtkmm2ext::Color explicit_bg; bool have_explicit_bg; - Gtkmm2ext::Color _explicit_fg; + Gtkmm2ext::Color explicit_fg; bool have_explicit_fg; void create_patterns();