Fix bg/fg fed to GetInfoBarColours

(cherry picked from commit 06a61e773f061d63fc1cbec1f64fb5ea710560c1)
This commit is contained in:
Marek Roszko 2025-01-11 16:25:14 -05:00 committed by Alex Shvartzkop
parent 1ce834f529
commit 48e405c769
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ WX_INFOBAR::WX_INFOBAR( wxWindow* aParent, wxAuiManager* aMgr, wxWindowID aWinid
m_showTimer = new wxTimer( this, ID_CLOSE_INFOBAR ); m_showTimer = new wxTimer( this, ID_CLOSE_INFOBAR );
wxColour fg, bg; wxColour fg, bg;
KIPLATFORM::UI::GetInfoBarColours( bg, fg ); KIPLATFORM::UI::GetInfoBarColours( fg, bg );
SetBackgroundColour( bg ); SetBackgroundColour( bg );
SetForegroundColour( fg ); SetForegroundColour( fg );
#ifdef __WXMAC__ #ifdef __WXMAC__

View File

@ -64,7 +64,7 @@ wxColour KIPLATFORM::UI::GetDialogBGColour()
} }
void KIPLATFORM::UI::GetInfoBarColours( wxColour& aBgColour, wxColour& aFgColour ) void KIPLATFORM::UI::GetInfoBarColours( wxColour& aFgColour, wxColour& aBgColour )
{ {
// The GTK3.24 way of getting the colours is to use the style context // The GTK3.24 way of getting the colours is to use the style context
// Earlier GTKs should be able to use the system settings // Earlier GTKs should be able to use the system settings