Improve wxAuiToolbar separators colour when using dark themes

Presently the colour is darker than the background, making it
essentially invisible.

Closes https://github.com/wxWidgets/wxWidgets/pull/2553
This commit is contained in:
Carlos Azevedo 2021-10-17 23:01:02 +01:00 committed by Vadim Zeitlin
parent 6349d0b4ca
commit 9a32d602c4

View File

@ -637,8 +637,8 @@ void wxAuiGenericToolBarArt::DrawSeparator(
rect.width = new_width;
}
wxColour startColour = m_baseColour.ChangeLightness(80);
wxColour endColour = m_baseColour.ChangeLightness(80);
wxColour startColour = m_baseColour.ChangeLightness(IsThemeDark() ? 120 : 80);
wxColour endColour = m_baseColour.ChangeLightness(IsThemeDark() ? 120 : 80);
dc.GradientFillLinear(rect, startColour, endColour, horizontal ? wxSOUTH : wxEAST);
}