diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-14 12:27:07 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-14 12:27:07 -0500 |
commit | 48a7a11974fb378483da9c4cce6e2af4d7060c5d (patch) | |
tree | 4c14576cdee385465bfbc798a5da4d94fe079219 /gtk2_ardour/ghostregion.cc | |
parent | 0fa5643d20fd57ce7f878e3c5e51b768ec6b98a3 (diff) |
initial pass to replace all UIConfiguration::get_XXXXXX() calls with UIConfiguration::color(name).
IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
Diffstat (limited to 'gtk2_ardour/ghostregion.cc')
-rw-r--r-- | gtk2_ardour/ghostregion.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index 4c0924caf8..62af5b8364 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -87,7 +87,7 @@ void GhostRegion::set_colors () { if (is_automation_ghost()) { - base_rect->set_fill_color (ARDOUR_UI::config()->get_GhostTrackBase()); + base_rect->set_fill_color (ARDOUR_UI::config()->color ("GhostTrackBase")); } } @@ -141,17 +141,17 @@ AudioGhostRegion::set_colors () guint fill_color; if (is_automation_ghost()) { - fill_color = ARDOUR_UI::config()->get_GhostTrackWaveFill(); + fill_color = ARDOUR_UI::config()->color ("GhostTrackWaveFill"); } else { fill_color = source_track_color(200); } for (uint32_t n=0; n < waves.size(); ++n) { - waves[n]->set_outline_color (ARDOUR_UI::config()->get_GhostTrackWave()); + waves[n]->set_outline_color (ARDOUR_UI::config()->color ("GhostTrackWave")); waves[n]->set_fill_color (fill_color); - waves[n]->set_clip_color (ARDOUR_UI::config()->get_GhostTrackWaveClip()); - waves[n]->set_zero_color (ARDOUR_UI::config()->get_GhostTrackZeroLine()); + waves[n]->set_clip_color (ARDOUR_UI::config()->color ("GhostTrackWaveClip")); + waves[n]->set_zero_color (ARDOUR_UI::config()->color ("GhostTrackZeroLine")); } } @@ -236,7 +236,7 @@ MidiGhostRegion::set_colors() for (EventList::iterator it = events.begin(); it != events.end(); ++it) { (*it)->rect->set_fill_color (fill); - (*it)->rect->set_outline_color (ARDOUR_UI::config()->get_GhostTrackMidiOutline()); + (*it)->rect->set_outline_color (ARDOUR_UI::config()->color ("GhostTrackMidiOutline")); } } @@ -273,7 +273,7 @@ MidiGhostRegion::add_note (NoteBase* n) events.push_back (event); event->rect->set_fill_color (source_track_color(200)); - event->rect->set_outline_color (ARDOUR_UI::config()->get_GhostTrackMidiOutline()); + event->rect->set_outline_color (ARDOUR_UI::config()->color ("GhostTrackMidiOutline")); MidiStreamView* mv = midi_view(); |