mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
quick fix for bug reported by ricardus: faders in Play are no longer dark gray which made them invisible. and they update color when their auto state changes.
git-svn-id: svn://localhost/ardour2/branches/3.0@13773 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b938923bad
commit
2c95bfcd46
3 changed files with 4 additions and 2 deletions
|
|
@ -785,7 +785,7 @@ style "plugin_slider"
|
||||||
|
|
||||||
fg[NORMAL] = @@COLPREFIX@_bright_color
|
fg[NORMAL] = @@COLPREFIX@_bright_color
|
||||||
fg[ACTIVE] = @@COLPREFIX@_bright_color
|
fg[ACTIVE] = @@COLPREFIX@_bright_color
|
||||||
fg[INSENSITIVE] = @@COLPREFIX@_base # matches default
|
fg[INSENSITIVE] = @@COLPREFIX@_lightest # matches default
|
||||||
fg[SELECTED] = @@COLPREFIX@_bright_color
|
fg[SELECTED] = @@COLPREFIX@_bright_color
|
||||||
fg[PRELIGHT] = @@COLPREFIX@_bright_color
|
fg[PRELIGHT] = @@COLPREFIX@_bright_color
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -538,6 +538,7 @@ GainMeterBase::update_gain_sensitive ()
|
||||||
{
|
{
|
||||||
bool x = !(_amp->gain_control()->alist()->automation_state() & Play);
|
bool x = !(_amp->gain_control()->alist()->automation_state() & Play);
|
||||||
static_cast<Gtkmm2ext::SliderController*>(gain_slider)->set_sensitive (x);
|
static_cast<Gtkmm2ext::SliderController*>(gain_slider)->set_sensitive (x);
|
||||||
|
gain_slider->create_patterns();
|
||||||
}
|
}
|
||||||
|
|
||||||
static MeterPoint
|
static MeterPoint
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ class PixFader : public Gtk::DrawingArea
|
||||||
void set_fader_length (int);
|
void set_fader_length (int);
|
||||||
void set_border_colors (uint32_t rgba_left, uint32_t rgba_right);
|
void set_border_colors (uint32_t rgba_left, uint32_t rgba_right);
|
||||||
|
|
||||||
|
void create_patterns();
|
||||||
|
|
||||||
void set_default_value (float);
|
void set_default_value (float);
|
||||||
|
|
||||||
void set_text (const std::string&);
|
void set_text (const std::string&);
|
||||||
|
|
@ -94,7 +96,6 @@ class PixFader : public Gtk::DrawingArea
|
||||||
|
|
||||||
GdkRectangle view;
|
GdkRectangle view;
|
||||||
|
|
||||||
void create_patterns();
|
|
||||||
cairo_pattern_t* pattern;
|
cairo_pattern_t* pattern;
|
||||||
cairo_pattern_t* shine_pattern;
|
cairo_pattern_t* shine_pattern;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue