Browse Source

Fix bg/fg fed to GetInfoBarColours

pcb_db
Marek Roszko 11 months ago
parent
commit
06a61e773f
  1. 2
      common/widgets/wx_infobar.cpp
  2. 2
      libs/kiplatform/port/wxgtk/ui.cpp

2
common/widgets/wx_infobar.cpp

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

2
libs/kiplatform/port/wxgtk/ui.cpp

@ -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
// Earlier GTKs should be able to use the system settings

Loading…
Cancel
Save