diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/quicknativestyle/qstyle/mac/qquickmacstyle_mac.mm | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/quicknativestyle/qstyle/mac/qquickmacstyle_mac.mm b/src/quicknativestyle/qstyle/mac/qquickmacstyle_mac.mm index 02758ef594..bbf631d1ce 100644 --- a/src/quicknativestyle/qstyle/mac/qquickmacstyle_mac.mm +++ b/src/quicknativestyle/qstyle/mac/qquickmacstyle_mac.mm @@ -4236,10 +4236,17 @@ QRect QMacStyle::subElementRect(SubElement sr, const QStyleOption *opt) const if ((buttonOpt->features & QStyleOptionButton::Flat)) break; } - rect = LargeSmallMini(opt, - opt->rect.adjusted(7, 5, -7, -7), - opt->rect.adjusted(6, 6, -6, -6), - opt->rect.adjusted(6, 5, -6, -6)); + if (qt_apple_runningWithLiquidGlass()) { + rect = LargeSmallMini(opt, + opt->rect.adjusted(2, 5, -2, -7), + opt->rect.adjusted(6, 6, -6, -6), + opt->rect.adjusted(6, 5, -6, -6)); + } else { + rect = LargeSmallMini(opt, + opt->rect.adjusted(7, 5, -7, -7), + opt->rect.adjusted(6, 6, -6, -6), + opt->rect.adjusted(6, 5, -6, -6)); + } break; case SE_SpinBoxLayoutItem: rect = LargeSmallMini(opt, |
