X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fwx_util.h;h=30e2b739acacd038e8431ca6fcde871ca56aeca3;hp=97ddd51516420012ebfde3c82852ab8a25c0c0a9;hb=2d2af972a53a2c11b95469058803b4eaed2d3c01;hpb=39fb8198febde1937019db1c300ec363aab5aa56 diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index 97ddd5151..30e2b739a 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -34,7 +34,6 @@ DCPOMATIC_DISABLE_WARNINGS #include DCPOMATIC_ENABLE_WARNINGS #include -#include #include #include @@ -52,6 +51,27 @@ class PasswordEntry; #define DCPOMATIC_SIZER_Y_GAP 8 #define DCPOMATIC_SIZER_GAP 8 #define DCPOMATIC_DIALOG_BORDER 12 +#ifdef __WXGTK3__ +#define DCPOMATIC_SPIN_CTRL_WIDTH 118 +#else +#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 + +/** 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 +#else +#define DCPOMATIC_CHOICE_TOP_PAD 0 +#endif /** Spacing to use between buttons in a vertical/horizontal line */ #if defined(DCPOMATIC_OSX) || defined(__WXGTK3__) @@ -99,6 +119,8 @@ extern bool display_progress (wxString title, wxString task); extern bool report_errors_from_last_job (wxWindow* parent); extern wxString bitmap_path (std::string name); extern wxSize small_button_size (wxWindow* parent, wxString text); +extern bool gui_is_dark (); +extern double dpi_scale_factor (wxWindow* window); struct Offset