summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-16 23:57:16 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-16 23:57:16 +0100
commit0062a0ad4e8bde2866cd42404ea103ed29fa59db (patch)
tree1664120a86cb9b56e005443bef15804a5cff80c4 /src/wx
parent93664a46e226aad6cfb71749e3a83904102ea896 (diff)
Add DCPOMATIC_SUBHEADING_TOP_PAD.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/dkdm_dialog.cc2
-rw-r--r--src/wx/kdm_dialog.cc2
-rw-r--r--src/wx/self_dkdm_dialog.cc2
-rw-r--r--src/wx/wx_util.h2
4 files changed, 5 insertions, 3 deletions
diff --git a/src/wx/dkdm_dialog.cc b/src/wx/dkdm_dialog.cc
index c7503048c..75e4e1aa1 100644
--- a/src/wx/dkdm_dialog.cc
+++ b/src/wx/dkdm_dialog.cc
@@ -106,7 +106,7 @@ DKDMDialog::DKDMDialog (wxWindow* parent, shared_ptr<const Film> film)
/* Sub-heading: Output */
h = new StaticText (this, _("Output"));
h->SetFont (subheading_font);
- right->Add (h, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP * 2);
+ right->Add(h, 0, wxTOP, DCPOMATIC_SUBHEADING_TOP_PAD);
_output = new DKDMOutputPanel (this);
right->Add (_output, 0, wxEXPAND | wxTOP, DCPOMATIC_SIZER_GAP);
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index 268573e6c..79f78b232 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -108,7 +108,7 @@ KDMDialog::KDMDialog (wxWindow* parent, shared_ptr<const Film> film)
/* Sub-heading: Output */
h = new StaticText (this, _("Output"));
h->SetFont (subheading_font);
- right->Add (h, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP * 2);
+ right->Add(h, 0, wxTOP, DCPOMATIC_SUBHEADING_TOP_PAD);
_output = new KDMOutputPanel (this);
right->Add (_output, 0, wxEXPAND | wxTOP, DCPOMATIC_SIZER_GAP);
diff --git a/src/wx/self_dkdm_dialog.cc b/src/wx/self_dkdm_dialog.cc
index 89a35803f..c8587e7ee 100644
--- a/src/wx/self_dkdm_dialog.cc
+++ b/src/wx/self_dkdm_dialog.cc
@@ -75,7 +75,7 @@ SelfDKDMDialog::SelfDKDMDialog (wxWindow* parent, std::shared_ptr<const Film> fi
/* Sub-heading: output */
h = new StaticText (this, _("Output"));
h->SetFont (subheading_font);
- vertical->Add (h, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP * 2);
+ vertical->Add(h, 0, wxTOP, DCPOMATIC_SUBHEADING_TOP_PAD);
_internal = new wxRadioButton (this, wxID_ANY, _("Save to KDM Creator tool's list"));
vertical->Add (_internal, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP);
diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h
index be3be0d1a..1143c5b53 100644
--- a/src/wx/wx_util.h
+++ b/src/wx/wx_util.h
@@ -70,6 +70,8 @@ class PasswordEntry;
#define DCPOMATIC_CHECKBOX_BOTTOM_PAD 0
#endif
+#define DCPOMATIC_SUBHEADING_TOP_PAD 16
+
/** Amount by which you need to top-pad a choice to make it line up, in some cases */
#ifdef DCPOMATIC_OSX
#define DCPOMATIC_CHOICE_TOP_PAD 1