summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-06-06 12:23:18 +0200
committerCarl Hetherington <cth@carlh.net>2021-06-06 12:23:18 +0200
commitcc2ca33dbf5aeab23d3e80d7b9cb8005daa1e1b2 (patch)
treec1d90e7e794dff369a72245e8ba11a837c70f27d
parent1905ef29b005f501c91c0537b6a6e723bf87d1ac (diff)
Add DCPOMATIC_CHECKBOX_BOTTOM_PAD.
-rw-r--r--src/wx/wx_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h
index 0c2eabce0..d5e332549 100644
--- a/src/wx/wx_util.h
+++ b/src/wx/wx_util.h
@@ -57,6 +57,15 @@ class PasswordEntry;
#define DCPOMATIC_SPIN_CTRL_WIDTH 56
#endif
+/** Amount by which you need to bottom-pad text next to a checkbox in order
+ * for the text baselines to be aligned.
+ */
+#ifdef DCPOMATIC_OSX
+#define DCPOMATIC_CHECKBOX_BOTTOM_PAD 2
+#else
+#define DCPOMATIC_CHECKBOX_BOTTOM_PAD 0
+#endif
+
/** Spacing to use between buttons in a vertical/horizontal line */
#if defined(DCPOMATIC_OSX) || defined(__WXGTK3__)
#define DCPOMATIC_BUTTON_STACK_GAP 2