From 9a32d602c4c833ede96c8cc09526e09b736ea8ce Mon Sep 17 00:00:00 2001 From: Carlos Azevedo Date: Sun, 17 Oct 2021 23:01:02 +0100 Subject: [PATCH] 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 --- src/aui/auibar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index ded219f908..5b1358c429 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -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); }