summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-22 19:44:14 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-22 19:44:14 +0100
commit429c5c9491151aa95a9a61abd5956bd6cebd4a1f (patch)
treeb6febe3f0640abe6f47a5d62ecfed949518bb709 /src
parentc596f82dd04c8aff3730bbb5754c35ce095afde1 (diff)
Tweak spacing.
Diffstat (limited to 'src')
-rw-r--r--src/wx/text_panel.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index 3315e5cf9..8c9ac7d64 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -94,8 +94,9 @@ TextPanel::TextPanel (ContentPanel* p, TextType t)
wxBoxSizer* offset = new wxBoxSizer (wxHORIZONTAL);
add_label_to_sizer (offset, this, _("X"), true);
_x_offset = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
- offset->Add (_x_offset);
- add_label_to_sizer (offset, this, _("%"), false);
+ offset->Add (_x_offset, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP);
+ wxStaticText* pc = new wxStaticText (this, wxID_ANY, _("%"));
+ offset->Add (pc, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP * 2);
add_label_to_sizer (offset, this, _("Y"), true);
_y_offset = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
offset->Add (_y_offset, 0);
@@ -107,8 +108,9 @@ TextPanel::TextPanel (ContentPanel* p, TextType t)
wxBoxSizer* scale = new wxBoxSizer (wxHORIZONTAL);
add_label_to_sizer (scale, this, _("X"), true);
_x_scale = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
- scale->Add (_x_scale);
- add_label_to_sizer (scale, this, _("%"), false);
+ scale->Add (_x_scale, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP);
+ pc = new wxStaticText (this, wxID_ANY, _("%"));
+ scale->Add (pc, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP * 2);
add_label_to_sizer (scale, this, _("Y"), true);
_y_scale = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1));
scale->Add (_y_scale, 0);