summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-08 20:14:37 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-08 20:14:37 +0100
commit942f2c6ae6be33fb17ec46931bbe071a9d2e6f17 (patch)
tree607bc17b3a6dd6ac7b9bc57871ffe961e8491a56 /src
parent83a78961d8fbd336361f573c6d9efde720f9c0c0 (diff)
Tidy up alignment of play controls on macOS.
Diffstat (limited to 'src')
-rw-r--r--src/wx/controls.cc6
-rw-r--r--src/wx/standard_controls.cc2
2 files changed, 4 insertions, 4 deletions
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<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);
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<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));
}