support alpha in color dialog, see #14127

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-03-10 21:14:17 +00:00
parent 7aa09d4311
commit 97e015d1fa

View File

@@ -106,6 +106,7 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
NSAutoreleasePool *thePool;
thePool = [[NSAutoreleasePool alloc] init];
[[NSColorPanel sharedColorPanel] setShowsAlpha:YES];
if(m_colourData.GetColour().IsOk())
[[NSColorPanel sharedColorPanel] setColor:
[NSColor colorWithCalibratedRed:(CGFloat) (m_colourData.GetColour().Red() / 255.0)