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:
@@ -472,7 +472,19 @@ void wxRibbonAUIArtProvider::DrawTab(wxDC& dc,
|
|||||||
wxString label = tab.page->GetLabel();
|
wxString label = tab.page->GetLabel();
|
||||||
if(!label.IsEmpty())
|
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);
|
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
|
||||||
|
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
Reference in New Issue
Block a user