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
This commit is contained in:
@@ -1428,7 +1428,9 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
|
|||||||
|
|
||||||
wxNSToolBarButton* v = [[wxNSToolBarButton alloc] initWithFrame:toolrect];
|
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 setBordered:NO];
|
||||||
[v setButtonType: ( tool->CanBeToggled() ? NSToggleButton : NSMomentaryPushInButton )];
|
[v setButtonType: ( tool->CanBeToggled() ? NSToggleButton : NSMomentaryPushInButton )];
|
||||||
[v setImplementation:tool];
|
[v setImplementation:tool];
|
||||||
|
Reference in New Issue
Block a user