diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 51b7602b2a..deb7b9175f 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -193,6 +193,15 @@ wxAuiDefaultTabArt::wxAuiDefaultTabArt() wxColor base_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); #endif + // the base_colour is too pale to use as our base colour, + // so darken it a bit -- + if ((255-base_colour.Red()) + + (255-base_colour.Green()) + + (255-base_colour.Blue()) < 60) + { + base_colour = wxAuiStepColour(base_colour, 92); + } + m_base_colour = base_colour; wxColor border_colour = wxAuiStepColour(base_colour, 75); diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index 44c84e3b49..9fbcddae2e 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -207,6 +207,15 @@ wxAuiDefaultDockArt::wxAuiDefaultDockArt() wxColor base_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); #endif + // the base_colour is too pale to use as our base colour, + // so darken it a bit -- + if ((255-base_colour.Red()) + + (255-base_colour.Green()) + + (255-base_colour.Blue()) < 60) + { + base_colour = wxAuiStepColour(base_colour, 92); + } + m_base_colour = base_colour; wxColor darker1_colour = wxAuiStepColour(base_colour, 85); wxColor darker2_colour = wxAuiStepColour(base_colour, 75);