diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-14 18:56:41 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-14 18:56:41 +0000 |
commit | d5c1e67c567244790f708caec706865da1760ae1 (patch) | |
tree | 43755a52c66d8bb1131b3a633c1b8c38d93fbfd8 /gtk2_ardour/time_axis_view_item.cc | |
parent | da8eec7a8311295ee91308eca9fae2146385c512 (diff) |
put a gray line above the region view name highlight; make region view name highlight the correct height - there was a 1 pixel gap at the bottom
git-svn-id: svn://localhost/ardour2/branches/3.0@7775 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view_item.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc index 8856fdd4ac..9e52275733 100644 --- a/gtk2_ardour/time_axis_view_item.cc +++ b/gtk2_ardour/time_axis_view_item.cc @@ -187,12 +187,15 @@ TimeAxisViewItem::init ( if (visibility & ShowNameHighlight) { if (visibility & FullWidthNameHighlight) { - name_highlight = new ArdourCanvas::SimpleRect (*group, 0.0, trackview.editor().frame_to_pixel(item_duration), trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE, trackview.current_height() - 1); + name_highlight = new ArdourCanvas::SimpleRect (*group, 0.0, trackview.editor().frame_to_pixel(item_duration), trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE, trackview.current_height()); } else { - name_highlight = new ArdourCanvas::SimpleRect (*group, 1.0, trackview.editor().frame_to_pixel(item_duration) - 1, trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE, trackview.current_height() - 1); + name_highlight = new ArdourCanvas::SimpleRect (*group, 1.0, trackview.editor().frame_to_pixel(item_duration) - 1, trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE, trackview.current_height()); } name_highlight->set_data ("timeaxisviewitem", this); + name_highlight->property_outline_what() = 0x4; + /* we should really use a canvas color property here */ + name_highlight->property_outline_color_rgba() = RGBA_TO_UINT (0,0,0,255); } else { name_highlight = 0; @@ -519,7 +522,7 @@ TimeAxisViewItem::set_height (double height) if (height > NAME_HIGHLIGHT_SIZE) { name_highlight->property_y1() = (double) height - 1 - NAME_HIGHLIGHT_SIZE; - name_highlight->property_y2() = (double) height - 2; + name_highlight->property_y2() = (double) height - 1; } else { /* it gets hidden now anyway */ @@ -680,7 +683,6 @@ TimeAxisViewItem::set_colors() if (name_highlight) { name_highlight->property_fill_color_rgba() = fill_color; - name_highlight->property_outline_color_rgba() = fill_color; } set_trim_handle_colors(); } |