https://bugs.documentfoundation.org/show_bug.cgi?id=163008
--- Comment #12 from Patrick (volunteer) <[email protected]> --- (In reply to Heiko Tietze from comment #10) > All other OS/DE respect this but macOS just adds white space around the > TabItem or PushButton. Found a way to increase the height of a native push button by setting its bezel type to NSBezelStyleFlexiblePush. Not sure how to wire up setting that bezel style though: diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index dd89133353bb..fcdaa10856bc 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -561,7 +561,8 @@ bool AquaGraphicsBackendBase::performDrawNativeControl(ControlType nType, case ControlType::Pushbutton: { NSControlSize eSizeKind = NSControlSizeRegular; - NSBezelStyle eBezelStyle = NSBezelStyleRounded; + // NSBezelStyle eBezelStyle = NSBezelStyleRounded; + NSBezelStyle eBezelStyle = NSBezelStyleFlexiblePush; PushButtonValue const *pPBVal = aValue.getType() == ControlType::Pushbutton ? static_cast<PushButtonValue const *>(&aValue) : nullptr; @@ -574,7 +575,7 @@ bool AquaGraphicsBackendBase::performDrawNativeControl(ControlType nType, } else if ((pPBVal && pPBVal->mbSingleLine) || rc.size.height < PUSH_BUTTON_NORMAL_HEIGHT * 3 / 2) { - GetThemeMetric(kThemeMetricPushButtonHeight, &nPaintHeight); + // GetThemeMetric(kThemeMetricPushButtonHeight, &nPaintHeight); } else { -- You are receiving this mail because: You are the assignee for the bug.
