From be668a965a382fc1de2f9711282b5ec897d55ca5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 4 Apr 2014 14:52:38 -0400 Subject: Fixed Mac OS X Button appearance; turns out it was using the wrong font. Also updated the TODO file to mark this fix and remove other stale/already fixed details. --- sysdata_darwin.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdata_darwin.go') diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 3cb0ada..09b7730 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -118,7 +118,7 @@ var classTypes = [nctypes]*classData{ C.BOOL(C.YES)) // defer creation of device until we show the window objc_setDelegate(win, appDelegate) // this is needed for Areas in the window to receive mouse move events - C.objc_msgSend_bool(win, _setAcceptsMouseMovedEvents, C.BOOL(C.YES)) +// C.objc_msgSend_bool(win, _setAcceptsMouseMovedEvents, C.BOOL(C.YES)) return win }, show: func(what C.id) { @@ -139,6 +139,9 @@ var classTypes = [nctypes]*classData{ objc_msgSend_uint(button, _setBezelStyle, 1) // NSRoundedBezelStyle C.objc_msgSend_id(button, _setTarget, appDelegate) C.objc_msgSend_sel(button, _setAction, _buttonClicked) + // by default the button uses the wrong text size + // TODO do this for all controls + C.objc_setFont(button, 0) // NSRegularControlSize addControl(parentWindow, button) return button }, -- cgit v1.2.3