Use tab active/hover colours under non-MSW platforms too

This should have been part of 1bb4404527
but was forgotten there.

See #18406.

Closes https://github.com/wxWidgets/wxWidgets/pull/1344
This commit is contained in:
Tomay
2019-06-08 02:42:42 +01:00
committed by Vadim Zeitlin
parent d255ac1fd3
commit 3ff6647886

View File

@@ -472,7 +472,19 @@ void wxRibbonAUIArtProvider::DrawTab(wxDC& dc,
wxString label = tab.page->GetLabel();
if(!label.IsEmpty())
{
dc.SetTextForeground(m_tab_label_colour);
if (tab.active)
{
dc.SetTextForeground(m_tab_active_label_colour);
}
else if (tab.hovered)
{
dc.SetTextForeground(m_tab_hover_label_colour);
}
else
{
dc.SetTextForeground(m_tab_label_colour);
}
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
int offset = 0;