reset xfade colors after theme change
This commit is contained in:
parent
19b6b45a2a
commit
55d7e8da19
@ -1020,7 +1020,9 @@ AudioRegionView::set_colors ()
|
||||
RegionView::set_colors();
|
||||
|
||||
if (gain_line) {
|
||||
gain_line->set_line_color (audio_region()->envelope_active() ? ARDOUR_UI::config()->get_canvasvar_GainLine() : ARDOUR_UI::config()->get_canvasvar_GainLineInactive());
|
||||
gain_line->set_line_color (audio_region()->envelope_active() ?
|
||||
ARDOUR_UI::config()->get_canvasvar_GainLine() :
|
||||
ARDOUR_UI::config()->get_canvasvar_GainLineInactive());
|
||||
}
|
||||
|
||||
for (uint32_t n=0; n < waves.size(); ++n) {
|
||||
@ -1033,6 +1035,25 @@ AudioRegionView::set_colors ()
|
||||
waves[n]->set_clip_color (ARDOUR_UI::config()->get_canvasvar_WaveFormClip());
|
||||
waves[n]->set_zero_color (ARDOUR_UI::config()->get_canvasvar_ZeroLine());
|
||||
}
|
||||
|
||||
if (start_xfade_in) {
|
||||
start_xfade_in->set_outline_color (ARDOUR_UI::config()->get_canvasvar_GainLine());
|
||||
}
|
||||
if (start_xfade_out) {
|
||||
start_xfade_out->set_outline_color (ARDOUR_UI::config()->get_canvasvar_GainLine());
|
||||
}
|
||||
if (end_xfade_in) {
|
||||
end_xfade_in->set_outline_color (ARDOUR_UI::config()->get_canvasvar_GainLine());
|
||||
}
|
||||
if (end_xfade_out) {
|
||||
end_xfade_out->set_outline_color (ARDOUR_UI::config()->get_canvasvar_GainLine());
|
||||
}
|
||||
if (start_xfade_rect) {
|
||||
start_xfade_rect->set_fill_color (ARDOUR_UI::config()->get_canvasvar_ActiveCrossfade());
|
||||
}
|
||||
if (end_xfade_rect) {
|
||||
end_xfade_rect->set_fill_color (ARDOUR_UI::config()->get_canvasvar_ActiveCrossfade());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -93,6 +93,7 @@ AutomationLine::AutomationLine (const string& name, TimeAxisView& tv, ArdourCanv
|
||||
|
||||
line = new ArdourCanvas::Curve (group);
|
||||
line->set_data ("line", this);
|
||||
line->set_outline_width (2.0);
|
||||
|
||||
line->Event.connect (sigc::mem_fun (*this, &AutomationLine::event_handler));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user