Tidy up alignment of play controls on macOS.
authorCarl Hetherington <cth@carlh.net>
Tue, 8 Dec 2020 19:14:37 +0000 (20:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 8 Dec 2020 19:14:37 +0000 (20:14 +0100)
src/wx/controls.cc
src/wx/standard_controls.cc

index 86329efb39425f8f4ff40b88cf52751df7f5d4f5..1a03ba568bd320a31eb2f0ac9cbe224750cb4c85 100644 (file)
@@ -97,10 +97,10 @@ Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor
        time_sizer->Add (_frame_number, 0, wxEXPAND);
        time_sizer->Add (_timecode, 0, wxEXPAND);
 
-       h_sizer->Add (_rewind_button, 0, wxALL, 2);
+       h_sizer->Add (_rewind_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
        h_sizer->Add (time_sizer, 0, wxEXPAND);
-       h_sizer->Add (_back_button, 0, wxALL, 2);
-       h_sizer->Add (_forward_button, 0, wxALL, 2);
+       h_sizer->Add (_back_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
+       h_sizer->Add (_forward_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
 
        _button_sizer = new wxBoxSizer (wxHORIZONTAL);
        h_sizer->Add (_button_sizer, 0, wxEXPAND);
index 5df89f8fecd05093738c089239c4ab03dc971c52..e73e2f6f6aa314dd20740fdda5056717b854d6b2 100644 (file)
@@ -29,7 +29,7 @@ StandardControls::StandardControls (wxWindow* parent, shared_ptr<FilmViewer> vie
        : Controls (parent, viewer, editor_controls)
        , _play_button (new wxToggleButton(this, wxID_ANY, _("Play")))
 {
-       _button_sizer->Add (_play_button, 0, wxEXPAND);
+       _button_sizer->Add (_play_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
        _play_button->Bind (wxEVT_TOGGLEBUTTON, boost::bind(&StandardControls::play_clicked, this));
 }