13
0

add API to GainMeterBase to allow use of explicit fader colors

This commit is contained in:
Paul Davis 2022-08-10 22:34:33 -06:00
parent bfa40895b3
commit f8a77c7dcb
2 changed files with 28 additions and 0 deletions

View File

@ -645,6 +645,30 @@ GainMeterBase::set_fader_name (const char * name)
gain_slider->set_name (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 void
GainMeterBase::update_gain_sensitive () GainMeterBase::update_gain_sensitive ()
{ {

View File

@ -94,6 +94,10 @@ public:
void set_width (Width, int len=0); void set_width (Width, int len=0);
void set_meter_strip_name (const char * name); void set_meter_strip_name (const char * name);
void set_fader_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); virtual void setup_meters (int len=0);