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:
parent
6349d0b4ca
commit
9a32d602c4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user