diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-06-07 00:15:00 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-06-07 00:48:12 +0200 |
| commit | 2a616640a07662410d6e5f986a692281fdc3c744 (patch) | |
| tree | fa426167c1da99ee10be963e48033627afd34623 | |
| parent | 6014c99b59acad4586ef033c2ba3500f866f64f2 (diff) | |
Fix alignment of labels on macOS (#2043).
| -rw-r--r-- | src/wx/full_config_dialog.cc | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc index dc21b249d..7be82578e 100644 --- a/src/wx/full_config_dialog.cc +++ b/src/wx/full_config_dialog.cc @@ -1318,7 +1318,14 @@ private: } { - add_top_aligned_label_to_sizer (table, _panel, _("DCP metadata filename format")); + auto format = create_label (_panel, _("DCP metadata filename format"), true); +#ifdef DCPOMATIC_OSX + auto align = new wxBoxSizer (wxHORIZONTAL); + align->Add (format, 0, wxTOP, 2); + table->Add (align, 0, wxALIGN_RIGHT | wxRIGHT, DCPOMATIC_SIZER_GAP - 2); +#else + table->Add (format, 0, wxTOP | wxRIGHT | wxALIGN_TOP, DCPOMATIC_SIZER_GAP); +#endif dcp::NameFormat::Map titles; titles['t'] = wx_to_std (_("type (cpl/pkl)")); dcp::NameFormat::Map examples; @@ -1330,7 +1337,14 @@ private: } { - add_top_aligned_label_to_sizer (table, _panel, _("DCP asset filename format")); + auto format = create_label (_panel, _("DCP asset filename format"), true); +#ifdef DCPOMATIC_OSX + auto align = new wxBoxSizer (wxHORIZONTAL); + align->Add (format, 0, wxTOP, 2); + table->Add (align, 0, wxALIGN_RIGHT | wxRIGHT, DCPOMATIC_SIZER_GAP - 2); +#else + table->Add (format, 0, wxTOP | wxRIGHT | wxALIGN_TOP, DCPOMATIC_SIZER_GAP); +#endif dcp::NameFormat::Map titles; titles['t'] = wx_to_std (_("type (j2c/pcm/sub)")); titles['r'] = wx_to_std (_("reel number")); |
