Fix spacing of screens panel buttons.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Jul 2024 17:38:32 +0000 (19:38 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 13 Jul 2024 09:51:49 +0000 (11:51 +0200)
Now they match the ones in the content panel.

src/wx/screens_panel.cc

index d3b1db77d4e36da0a04323244ac368922ec8789b..1caa9af6b2fd6a5798877ce9731c127bb76cdd21 100644 (file)
@@ -80,17 +80,17 @@ ScreensPanel::ScreensPanel (wxWindow* parent)
        auto target_buttons = new wxBoxSizer (wxVERTICAL);
 
        _add_cinema = new Button (this, _("Add Cinema..."));
-       target_buttons->Add (_add_cinema, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP);
+       target_buttons->Add (_add_cinema, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
        _edit_cinema = new Button (this, _("Edit Cinema..."));
-       target_buttons->Add (_edit_cinema, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP);
+       target_buttons->Add (_edit_cinema, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
        _remove_cinema = new Button (this, _("Remove Cinema"));
-       target_buttons->Add (_remove_cinema, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP);
+       target_buttons->Add (_remove_cinema, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
        _add_screen = new Button (this, _("Add Screen..."));
-       target_buttons->Add (_add_screen, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP);
+       target_buttons->Add (_add_screen, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
        _edit_screen = new Button (this, _("Edit Screen..."));
-       target_buttons->Add (_edit_screen, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP);
+       target_buttons->Add (_edit_screen, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
        _remove_screen = new Button (this, _("Remove Screen"));
-       target_buttons->Add (_remove_screen, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP);
+       target_buttons->Add (_remove_screen, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
 
        side_buttons->Add (target_buttons, 0, 0);