13
0

Pixel-pushing: vertically align special busses

The mixer's track area has a border with shadow (again).
This breaks vertical alignment with monitor-section,
master, foldback busses.
This commit is contained in:
Robin Gareus 2021-04-03 22:19:33 +02:00
parent 4c228c2eab
commit 2ed8fd2723
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 4 additions and 5 deletions

View File

@ -491,6 +491,7 @@ FoldbackStrip::init ()
scrollbar.ensure_style ();
Gtk::Requisition requisition (scrollbar.size_request ());
scrollbar_height = requisition.height;
scrollbar_height += 3; // track_display_frame border/shadow
}
_spacer.set_size_request (-1, scrollbar_height);
_global_vpacker.pack_end (_spacer, false, false);

View File

@ -347,6 +347,7 @@ MixerStrip::init ()
scrollbar.ensure_style();
Gtk::Requisition requisition(scrollbar.size_request ());
scrollbar_height = requisition.height;
scrollbar_height += 3; // track_display_frame border/shadow
}
spacer.set_size_request (-1, scrollbar_height);
global_vpacker.pack_end (spacer, false, false);

View File

@ -2844,13 +2844,9 @@ Mixer_UI::setup_track_display ()
track_display_scroller.add (track_display);
track_display_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
VBox* v = manage (new VBox);
v->show ();
v->pack_start (track_display_scroller, true, true);
track_display_frame.set_name("BaseFrame");
track_display_frame.set_shadow_type (Gtk::SHADOW_IN);
track_display_frame.add (*v);
track_display_frame.add (track_display_scroller);
track_display_scroller.show();
track_display_frame.show();

View File

@ -426,6 +426,7 @@ MonitorSection::MonitorSection ()
scrollbar.ensure_style();
Gtk::Requisition requisition(scrollbar.size_request ());
scrollbar_height = requisition.height;
scrollbar_height += 3; // track_display_frame border/shadow
}
// output port select