From f8a77c7dcbd12906bf060a369a5125c6eb5cbef7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 10 Aug 2022 22:34:33 -0600 Subject: [PATCH] add API to GainMeterBase to allow use of explicit fader colors --- gtk2_ardour/gain_meter.cc | 24 ++++++++++++++++++++++++ gtk2_ardour/gain_meter.h | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 5e101dac77..c65e3a357c 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -645,6 +645,30 @@ GainMeterBase::set_fader_name (const char * name) gain_slider->set_name (name); } +void +GainMeterBase::set_fader_fg (uint32_t c) +{ + gain_slider->set_fg (c); +} + +void +GainMeterBase::set_fader_bg (uint32_t c) +{ + gain_slider->set_bg (c); +} + +void +GainMeterBase::unset_fader_fg () +{ + gain_slider->unset_fg (); +} + +void +GainMeterBase::unset_fader_bg () +{ + gain_slider->unset_bg (); +} + void GainMeterBase::update_gain_sensitive () { diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h index 4cc1780ecb..9e42be827e 100644 --- a/gtk2_ardour/gain_meter.h +++ b/gtk2_ardour/gain_meter.h @@ -94,6 +94,10 @@ public: void set_width (Width, int len=0); void set_meter_strip_name (const char * name); void set_fader_name (const char * name); + void set_fader_fg (uint32_t); + void set_fader_bg (uint32_t); + void unset_fader_fg (); + void unset_fader_bg (); virtual void setup_meters (int len=0);