Fix bezel used for bitmap buttons in wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Nov 2012 23:56:38 +0000 (23:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Nov 2012 23:56:38 +0000 (23:56 +0000)
commit0c2e6e8b36b612fd734b15421ce34a0fadcd071c
tree942993fed4f4eca234c644c388c95b142a6cefa5
parent6ceeeafd563ff120631f3bb26ee2a2978a46d583
Fix bezel used for bitmap buttons in wxOSX/Cocoa.

Don't use NSRoundedBezelStyle for bitmap buttons as this bezel has fixed
height. Instead, use NSRegularSquareBezelStyle which can used with buttons of
any size and is the correct bezel to use for the buttons mostly identified by
their icon according to Apple docs.

Notice that we still use the standard bezel for the "small" (where "small" is
arbitrarily defined by the hard coded 20 pixels height) icons as those are
usually used in addition to the text and not replacing it and so it makes more
sense to use the same bezel as for the normal buttons for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/cocoa/button.mm
src/osx/cocoa/tglbtn.mm