fix color and alpha of timestretch rect
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 7 Feb 2015 03:46:43 +0000 (22:46 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 9 Feb 2015 19:46:20 +0000 (14:46 -0500)
gtk2_ardour/dark.colors
gtk2_ardour/route_time_axis.cc

index 39d713c17fadd1ee0f5c81a2ec9f6cc224018e32..080824b03c0086e73821c94a31475bf559360dea 100644 (file)
     <ColorAlias name="tempo marker" alias="color 19"/>
     <ColorAlias name="time axis frame" alias="color 4"/>
     <ColorAlias name="time axis view item base" alias="color 94"/>
-    <ColorAlias name="time stretch fill" alias="color 26"/>
+    <ColorAlias name="time stretch fill" alias="color 100"/>
     <ColorAlias name="time stretch outline" alias="color 94"/>
     <ColorAlias name="tracknumber label: fill" alias="color 34"/>
     <ColorAlias name="tracknumber label: fill active" alias="color 46"/>
     <Modifier name="stereo panner inverted" modifier="= alpha:0.7882"/>
     <Modifier name="stereo panner inverted bg" modifier="= alpha:0.7529"/>
     <Modifier name="time axis view item base" modifier="= alpha:0.7"/>
-    <Modifier name="transparent region base" modifier="= alpha:0.5"/>
+    <Modifier name="transparent region base" modifier="= alpha:0.5"/> 
+   <Modifier name="time stretch fill" modifier="= alpha:0.5"/>
     <Modifier name="verbose canvas cursor" modifier="= alpha:0.4666"/>
   </Modifiers>
 </Ardour>
index 92bee3a4fe3f762a435e3f622753315f1b66de63..b8d71a1e4c74da317c2be994f937697c6ebedaaf 100644 (file)
@@ -916,7 +916,7 @@ RouteTimeAxisView::show_timestretch (framepos_t start, framepos_t end, int layer
 
        if (timestretch_rect == 0) {
                timestretch_rect = new ArdourCanvas::Rectangle (canvas_display ());
-               timestretch_rect->set_fill_color (ARDOUR_UI::config()->color ("time stretch fill"));
+               timestretch_rect->set_fill_color (ArdourCanvas::HSV (ARDOUR_UI::config()->color ("time stretch fill")).mod (ARDOUR_UI::config()->modifier ("time stretch fill")).color());
                timestretch_rect->set_outline_color (ARDOUR_UI::config()->color ("time stretch outline"));
        }