Dark Mode for non native toolbar

see #18146
This commit is contained in:
Stefan Csomor
2018-06-19 21:50:34 +02:00
parent dcd012184a
commit c58d7755a1

View File

@@ -1673,7 +1673,10 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
wxRect rect(0,0,w,h);
dc.GradientFillLinear( rect , wxColour( 0xCC,0xCC,0xCC ), wxColour( 0xA8,0xA8,0xA8 ) , wxSOUTH );
// TODO determine whether to use flat appearance in earlier system
if ( !wxPlatformInfo::Get().CheckOSVersion(10, 14 ) )
dc.GradientFillLinear( rect , wxColour( 0xCC,0xCC,0xCC ), wxColour( 0xA8,0xA8,0xA8 ) , wxSOUTH );
dc.SetPen( wxPen( wxColour( 0x51,0x51,0x51 ) ) );
if ( HasFlag(wxTB_LEFT) )
dc.DrawLine(w-1, 0, w-1, h);