fixed wxFrame background colour in wxUniv on ports without native wxSYS_COLOUR_APPWORKSPACE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ccea21ccf8
commit
9c6d8b7cdb
@ -53,21 +53,24 @@ public:
|
||||
SHADOW_HIGHLIGHT,
|
||||
SHADOW_IN,
|
||||
SHADOW_OUT,
|
||||
|
||||
|
||||
// the titlebar background colours for the normal and focused states
|
||||
TITLEBAR,
|
||||
TITLEBAR_ACTIVE,
|
||||
|
||||
|
||||
// the titlebar text colours
|
||||
TITLEBAR_TEXT,
|
||||
TITLEBAR_ACTIVE_TEXT,
|
||||
|
||||
|
||||
// the default gauge fill colour
|
||||
GAUGE,
|
||||
|
||||
// desktop background colour (only used by framebuffer ports)
|
||||
DESKTOP,
|
||||
|
||||
// wxFrame's background colour
|
||||
FRAME,
|
||||
|
||||
MAX
|
||||
};
|
||||
|
||||
|
@ -65,7 +65,7 @@ wxColour wxSystemSettings::GetColour(wxSystemColour index)
|
||||
wxColourScheme::CONTROL_TEXT /* wxSYS_COLOUR_CAPTIONTEXT */,
|
||||
wxColourScheme::MAX /* wxSYS_COLOUR_ACTIVEBORDER */,
|
||||
wxColourScheme::MAX /* wxSYS_COLOUR_INACTIVEBORDER */,
|
||||
wxColourScheme::MAX /* wxSYS_COLOUR_APPWORKSPACE */,
|
||||
wxColourScheme::FRAME /* wxSYS_COLOUR_APPWORKSPACE */,
|
||||
wxColourScheme::HIGHLIGHT /* wxSYS_COLOUR_HIGHLIGHT */,
|
||||
wxColourScheme::HIGHLIGHT_TEXT /* wxSYS_COLOUR_HIGHLIGHTTEXT */,
|
||||
wxColourScheme::CONTROL /* wxSYS_COLOUR_BTNFACE */,
|
||||
|
@ -679,6 +679,7 @@ wxColour wxGTKColourScheme::Get(wxGTKColourScheme::StdColour col) const
|
||||
{
|
||||
switch ( col )
|
||||
{
|
||||
case FRAME:
|
||||
case WINDOW: return *wxWHITE;
|
||||
|
||||
case SHADOW_DARK: return *wxBLACK;
|
||||
|
@ -600,6 +600,7 @@ wxColour wxMonoColourScheme::Get(wxMonoColourScheme::StdColour col) const
|
||||
case TITLEBAR_ACTIVE:
|
||||
case HIGHLIGHT_TEXT:
|
||||
case DESKTOP:
|
||||
case FRAME:
|
||||
return GetBg();
|
||||
|
||||
case MAX:
|
||||
|
@ -1283,6 +1283,7 @@ wxColour wxWin32ColourScheme::Get(wxWin32ColourScheme::StdColour col) const
|
||||
case TITLEBAR_ACTIVE_TEXT: return wxColour(GetSysColor(COLOR_CAPTIONTEXT));
|
||||
|
||||
case DESKTOP: return wxColour(0x808000);
|
||||
case FRAME: return wxColour(GetSysColor(COLOR_APPWORKSPACE));
|
||||
#else // !__WXMSW__
|
||||
// use the standard Windows colours elsewhere
|
||||
case WINDOW: return *wxWHITE;
|
||||
@ -1315,6 +1316,7 @@ wxColour wxWin32ColourScheme::Get(wxWin32ColourScheme::StdColour col) const
|
||||
case TITLEBAR_ACTIVE_TEXT:return *wxWHITE;
|
||||
|
||||
case DESKTOP: return wxColour(0x808000);
|
||||
case FRAME: return wxColour(0x808080);
|
||||
#endif // __WXMSW__
|
||||
|
||||
case GAUGE: return Get(HIGHLIGHT);
|
||||
|
Loading…
Reference in New Issue
Block a user