diff --git a/src/aui/tabart.cpp b/src/aui/tabart.cpp index 5c2cf2710a..497ea8ba86 100644 --- a/src/aui/tabart.cpp +++ b/src/aui/tabart.cpp @@ -447,9 +447,8 @@ void wxAuiGenericTabArt::DrawTab(wxDC& dc, int drawn_tab_yoff = border_points[1].y; int drawn_tab_height = border_points[0].y - border_points[1].y; - bool isdark = (m_baseColour.Red() < 75) - && (m_baseColour.Green() < 75) - && (m_baseColour.Blue() < 75); + bool isdark = wxSystemSettings::GetAppearance().IsUsingDarkBackground(); + wxColor back_color = m_baseColour; if (page.active) {