diff options
author | Doug McLain <doug@nostar.net> | 2007-06-15 22:08:27 +0000 |
---|---|---|
committer | Doug McLain <doug@nostar.net> | 2007-06-15 22:08:27 +0000 |
commit | 789cbb21810802adc478de3134fa42950c5e8569 (patch) | |
tree | 565760bb936fea79f18697f72126111169bebae1 /gtk2_ardour/ghostregion.cc | |
parent | cd9fdb935f08966cc8c7170a39870e8adcae69d8 (diff) |
Major Theme Manager changes, see ardour-dev
git-svn-id: svn://localhost/ardour2/trunk@1987 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ghostregion.cc')
-rw-r--r-- | gtk2_ardour/ghostregion.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index 844338cd45..c9b4217b24 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -25,6 +25,7 @@ using namespace Editing; using namespace ArdourCanvas; +using namespace ARDOUR; GhostRegion::GhostRegion (AutomationTimeAxisView& atv, double initial_pos) : trackview (atv) @@ -43,8 +44,8 @@ GhostRegion::GhostRegion (AutomationTimeAxisView& atv, double initial_pos) base_rect->property_y1() = (double) 0.0; base_rect->property_y2() = (double) trackview.height; base_rect->property_outline_what() = (guint32) 0; - base_rect->property_outline_color_rgba() = color_map[cGhostTrackBaseOutline]; - base_rect->property_fill_color_rgba() = color_map[cGhostTrackBaseFill]; + base_rect->property_outline_color_rgba() = Config->canvasvar_GhostTrackBase.get(); + base_rect->property_fill_color_rgba() = Config->canvasvar_GhostTrackBase.get(); group->lower_to_bottom (); atv.add_ghost (this); @@ -91,10 +92,13 @@ GhostRegion::set_height () void GhostRegion::set_colors () { + base_rect->property_outline_color_rgba() = Config->canvasvar_GhostTrackBase.get(); + base_rect->property_fill_color_rgba() = Config->canvasvar_GhostTrackBase.get(); + for (uint32_t n=0; n < waves.size(); ++n) { - waves[n]->property_wave_color() = color_map[cGhostTrackWave]; + waves[n]->property_wave_color() = Config->canvasvar_GhostTrackWave.get(); - waves[n]->property_clip_color() = color_map[cGhostTrackWaveClip]; - waves[n]->property_zero_color() = color_map[cGhostTrackZeroLine]; + waves[n]->property_clip_color() = Config->canvasvar_GhostTrackWaveClip.get(); + waves[n]->property_zero_color() = Config->canvasvar_GhostTrackZeroLine.get(); } } |