diff options
author | B. Stack <bgstack15@gmail.com> | 2023-11-27 10:33:00 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-11-27 10:33:00 -0500 |
commit | 2e61b9b6258f29c03cb3b0da48282f3a87590702 (patch) | |
tree | 2be66dfaf965d246ea2df6248c7890208887e6bb /wx+/std_button_layout.h | |
parent | add upstream 13.1 (diff) | |
download | FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.gz FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.bz2 FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.zip |
add upstream 13.213.2
Diffstat (limited to 'wx+/std_button_layout.h')
-rw-r--r-- | wx+/std_button_layout.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wx+/std_button_layout.h b/wx+/std_button_layout.h index 8abc9e3a..86558026 100644 --- a/wx+/std_button_layout.h +++ b/wx+/std_button_layout.h @@ -33,9 +33,9 @@ void setStandardButtonLayout(wxBoxSizer& sizer, const StdButtons& buttons = StdB inline -int getDefaultMenuIconSize() +constexpr int getMenuIconDipSize() { - return fastFromDIP(20); + return 20; } @@ -43,7 +43,7 @@ inline int getDefaultButtonHeight() { const int defaultHeight = wxButton::GetDefaultSize().GetHeight(); //buffered by wxWidgets - return std::max(defaultHeight, fastFromDIP(31)); //default button height is much too small => increase! + return std::max(defaultHeight, dipToWxsize(31)); //default button height is much too small => increase! } @@ -62,9 +62,9 @@ void setStandardButtonLayout(wxBoxSizer& sizer, const StdButtons& buttons) assert(sizer.GetOrientation() == wxHORIZONTAL); //GNOME Human Interface Guidelines: https://developer.gnome.org/hig-book/3.2/hig-book.html#alert-spacing - const int spaceH = fastFromDIP( 6); //OK - const int spaceRimH = fastFromDIP(12); //OK - const int spaceRimV = fastFromDIP(12); //OK + const int spaceH = dipToWxsize( 6); //OK + const int spaceRimH = dipToWxsize(12); //OK + const int spaceRimV = dipToWxsize(12); //OK StdButtons buttonsTmp = buttons; |