From: Carl Hetherington Date: Tue, 8 Dec 2020 19:14:37 +0000 (+0100) Subject: Tidy up alignment of play controls on macOS. X-Git-Tag: 11.0-build-runs~50 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=942f2c6ae6be33fb17ec46931bbe071a9d2e6f17;p=dcpomatic.git Tidy up alignment of play controls on macOS. --- diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 86329efb3..1a03ba568 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -97,10 +97,10 @@ Controls::Controls (wxWindow* parent, shared_ptr 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); diff --git a/src/wx/standard_controls.cc b/src/wx/standard_controls.cc index 5df89f8fe..e73e2f6f6 100644 --- a/src/wx/standard_controls.cc +++ b/src/wx/standard_controls.cc @@ -29,7 +29,7 @@ StandardControls::StandardControls (wxWindow* parent, shared_ptr 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)); }