switching colors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,12 +39,14 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
||||
|
||||
switch ( index )
|
||||
{
|
||||
case wxSYS_COLOUR_WINDOW:
|
||||
resultColor = *wxWHITE ;
|
||||
break ;
|
||||
case wxSYS_COLOUR_SCROLLBAR :
|
||||
case wxSYS_COLOUR_BACKGROUND:
|
||||
case wxSYS_COLOUR_ACTIVECAPTION:
|
||||
case wxSYS_COLOUR_INACTIVECAPTION:
|
||||
case wxSYS_COLOUR_MENU:
|
||||
case wxSYS_COLOUR_WINDOW:
|
||||
case wxSYS_COLOUR_WINDOWFRAME:
|
||||
case wxSYS_COLOUR_ACTIVEBORDER:
|
||||
case wxSYS_COLOUR_INACTIVEBORDER:
|
||||
@@ -116,9 +118,11 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
||||
break ;
|
||||
|
||||
case wxSYS_COLOUR_INFOBK :
|
||||
case wxSYS_COLOUR_APPWORKSPACE:
|
||||
resultColor = *wxWHITE ;
|
||||
break ;
|
||||
case wxSYS_COLOUR_APPWORKSPACE:
|
||||
resultColor = wxColor( 0x80, 0x80, 0x80 ); ;
|
||||
break ;
|
||||
|
||||
case wxSYS_COLOUR_HOTLIGHT:
|
||||
case wxSYS_COLOUR_GRADIENTACTIVECAPTION:
|
||||
|
@@ -1199,7 +1199,7 @@ bool wxWindowMac::SetBackgroundColour(const wxColour& col )
|
||||
wxBrush brush ;
|
||||
wxColour newCol(GetBackgroundColour());
|
||||
|
||||
if ( newCol == wxSystemSettings::GetColour( wxSYS_COLOUR_APPWORKSPACE ) )
|
||||
if ( newCol == wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) )
|
||||
brush.MacSetTheme( kThemeBrushDocumentWindowBackground ) ;
|
||||
else if ( newCol == wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE ) )
|
||||
brush.MacSetTheme( kThemeBrushDialogBackgroundActive ) ;
|
||||
|
Reference in New Issue
Block a user