Blind attempt to fix MSW rendering bug.
This commit is contained in:
parent
2f8cc84551
commit
355bfe1587
|
@ -217,6 +217,8 @@ void SPLIT_BUTTON::OnPaint( wxPaintEvent& WXUNUSED( aEvent ) )
|
||||||
// system colours return the right values, nor does wxRendererNative draw
|
// system colours return the right values, nor does wxRendererNative draw
|
||||||
// the borders correctly. So we add some empirically chosen hacks here.
|
// the borders correctly. So we add some empirically chosen hacks here.
|
||||||
|
|
||||||
|
// NOTE: KEEP THESE HACKS IN SYNC WITH STD_BITMAP_BUTTON
|
||||||
|
|
||||||
wxColor fg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT );
|
wxColor fg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT );
|
||||||
wxColor bg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
|
wxColor bg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
|
||||||
|
|
||||||
|
|
|
@ -147,6 +147,8 @@ void STD_BITMAP_BUTTON::OnPaint( wxPaintEvent& WXUNUSED( aEvent ) )
|
||||||
// system colours return the right values, nor does wxRendererNative draw
|
// system colours return the right values, nor does wxRendererNative draw
|
||||||
// the borders correctly. So we add some empirically chosen hacks here.
|
// the borders correctly. So we add some empirically chosen hacks here.
|
||||||
|
|
||||||
|
// NOTE: KEEP THESE HACKS IN SYNC WITH SPLIT_BUTTON
|
||||||
|
|
||||||
wxColor fg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT );
|
wxColor fg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT );
|
||||||
wxColor bg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
|
wxColor bg = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
|
||||||
|
|
||||||
|
@ -181,7 +183,7 @@ void STD_BITMAP_BUTTON::OnPaint( wxPaintEvent& WXUNUSED( aEvent ) )
|
||||||
// wxRendereNative doesn't handle dark mode on OSX.
|
// wxRendereNative doesn't handle dark mode on OSX.
|
||||||
drawBackground( r1 );
|
drawBackground( r1 );
|
||||||
#else
|
#else
|
||||||
r1.width += 2;
|
r1.width += 1;
|
||||||
wxRendererNative::Get().DrawPushButton( this, dc, r1, m_stateButton );
|
wxRendererNative::Get().DrawPushButton( this, dc, r1, m_stateButton );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue