summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2007-07-05 05:33:40 +0000
committerDoug McLain <doug@nostar.net>2007-07-05 05:33:40 +0000
commit291a186cba343ed705c60d15fa7db0b21eb8a1fd (patch)
tree683a299b237164b5a67d2d79e9b05dc2251b8f46 /gtk2_ardour/ghostregion.cc
parent0518b045c62ef764eced6fff0b64d4f71832a7b0 (diff)
New theme manager from trunk, backported to 2.0-ongoing
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2110 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ghostregion.cc')
-rw-r--r--gtk2_ardour/ghostregion.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc
index 844338cd45..bf5dbe0199 100644
--- a/gtk2_ardour/ghostregion.cc
+++ b/gtk2_ardour/ghostregion.cc
@@ -22,6 +22,7 @@
#include "ghostregion.h"
#include "automation_time_axis.h"
#include "rgb_macros.h"
+#include "ardour_ui.h"
using namespace Editing;
using namespace ArdourCanvas;
@@ -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() = ARDOUR_UI::config()->canvasvar_GhostTrackBase.get();
+ base_rect->property_fill_color_rgba() = ARDOUR_UI::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() = ARDOUR_UI::config()->canvasvar_GhostTrackBase.get();
+ base_rect->property_fill_color_rgba() = ARDOUR_UI::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() = ARDOUR_UI::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() = ARDOUR_UI::config()->canvasvar_GhostTrackWaveClip.get();
+ waves[n]->property_zero_color() = ARDOUR_UI::config()->canvasvar_GhostTrackZeroLine.get();
}
}