From: Stefan Csomor Date: Fri, 2 Nov 2012 10:46:33 +0000 (+0000) Subject: using smaller size for font on non native toolbar X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cb9811beb86d1925cfe04f041bde3df8678e6240?ds=sidebyside using smaller size for font on non native toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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];