mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Fix ruler/canvas separator
The track-header (gtk) is packed with 1px box spacing. This is added at the top of each box (best seen by looking at the group-tab vs track-header alignment in the editor). However the actual track separator line on the canvas is at the bottom of each track, aligning with the top of the next track or automation-lane. The first track however lacks a separator at the top, which needs to be provided by the ruler. Once the canvas is scrolled this ruler/canvas separator overlaps with the bottom separator of each TAV. Using ruler Rectangle::set_outline had various issues. The outline extends outside the rectangle. It bled into the video-timeline instead of the canvas' top y-axis pixel. Also the separator was above the video-timeline, not above the canvas. Hence a dedicated separator Line is preferable. It also provides a consistent separator if no rulers are visible.
This commit is contained in:
parent
87d17f6624
commit
8ead1439d8
4 changed files with 17 additions and 19 deletions
|
|
@ -1045,6 +1045,7 @@ private:
|
|||
ArdourCanvas::Rectangle* transport_marker_bar;
|
||||
ArdourCanvas::Rectangle* cd_marker_bar;
|
||||
ArdourCanvas::Rectangle* cue_marker_bar;
|
||||
ArdourCanvas::Line* ruler_separator;
|
||||
|
||||
void toggle_cue_behavior ();
|
||||
|
||||
|
|
@ -1061,8 +1062,8 @@ private:
|
|||
Gtk::Label cue_mark_label;
|
||||
|
||||
/* videtimline related actions */
|
||||
Gtk::Label videotl_label;
|
||||
ArdourCanvas::Container* videotl_group;
|
||||
Gtk::Label videotl_label;
|
||||
ArdourCanvas::Container* videotl_group;
|
||||
Glib::RefPtr<Gtk::ToggleAction> ruler_video_action;
|
||||
Glib::RefPtr<Gtk::ToggleAction> xjadeo_proc_action;
|
||||
Glib::RefPtr<Gtk::ToggleAction> xjadeo_ontop_action;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue