Set the toggled default metadata of parameters.
[ardour.git] / gtk2_ardour / time_axis_view_item.cc
index c698263d57c247fb238bbcbe5d5e2f5258e5a02b..0d5f649a99b8f9f011b12c652836426baaafa007 100644 (file)
@@ -719,12 +719,10 @@ uint32_t
 TimeAxisViewItem::fill_opacity () const
 {
        if (!rect_visible) {
-               /* if the frame/rect is marked as invisible, then the
-                * fill should be transparent. simplest: set
-                
-                * alpha/opacity to zero.
-                */
-               return 0;
+               /* if the frame/rect is marked as "invisible", then the
+                  fill should be translucent.parent.
+               */
+               return 64;
        }
 
        if (_dragging) {
@@ -781,19 +779,19 @@ TimeAxisViewItem::set_frame_color()
                return;
        }
 
-        frame->set_fill_color (get_fill_color());
+       frame->set_fill_color (get_fill_color());
        set_frame_gradient ();
 
-        if (!_recregion) {
+       if (!_recregion) {
                uint32_t f = ARDOUR_UI::config()->get_TimeAxisFrame();
 
-                if (!rect_visible) {
+               if (!rect_visible) {
                        /* make the frame outline be visible but rather transparent */
-                        f = UINT_RGBA_CHANGE_A (f, 64);
-                }
+                       f = UINT_RGBA_CHANGE_A (f, 64);
+               }
 
-                frame->set_outline_color (f);
-        }
+               frame->set_outline_color (f);
+       }
 }
 
 void
@@ -820,7 +818,7 @@ TimeAxisViewItem::set_frame_gradient ()
 
        v = min (1.0, v * (1.0 - ARDOUR_UI::config()->get_timeline_item_gradient_depth()));
        
-       ArdourCanvas::Color darker = ArdourCanvas::hsv_to_color (h, s, v, a);
+       ArdourCanvas::Color darker = ArdourCanvas::hsva_to_color (h, s, v, a);
        stops.push_back (std::make_pair (1.0, darker));
        
        frame->set_gradient (stops, true);