X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14919c70208688d2ab03fbc1f2a19d2ae0fb7f9c..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/src/osx/cocoa/toolbar.mm?ds=inline diff --git a/src/osx/cocoa/toolbar.mm b/src/osx/cocoa/toolbar.mm index 20ad47d304..5fa4bb5c5a 100644 --- a/src/osx/cocoa/toolbar.mm +++ b/src/osx/cocoa/toolbar.mm @@ -1428,7 +1428,9 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase) wxNSToolBarButton* v = [[wxNSToolBarButton alloc] initWithFrame:toolrect]; - [v setBezelStyle:NSRegularSquareBezelStyle]; + [v setBezelStyle:NSSmallSquareBezelStyle]; + [[v cell] setControlSize:NSSmallControlSize]; + [v setFont:[NSFont fontWithName:[[v font] fontName] size:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]]; [v setBordered:NO]; [v setButtonType: ( tool->CanBeToggled() ? NSToggleButton : NSMomentaryPushInButton )]; [v setImplementation:tool];