more GTK-ish toolbar drawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8b3fddc493
commit
2e7b0a1617
@ -1582,11 +1582,15 @@ void wxGTKRenderer::DrawToolBarButton(wxDC& dc,
|
||||
|
||||
if ( flags & wxCONTROL_PRESSED )
|
||||
{
|
||||
DrawBorder(dc, wxBORDER_SUNKEN, rect, flags);
|
||||
DrawBorder(dc, wxBORDER_SUNKEN, rect, flags, &rect);
|
||||
|
||||
DrawBackground(dc, wxSCHEME_COLOUR(m_scheme, CONTROL_PRESSED), rect);
|
||||
}
|
||||
else if ( flags & wxCONTROL_CURRENT )
|
||||
{
|
||||
DrawBorder(dc, wxBORDER_RAISED, rect, flags);
|
||||
DrawBorder(dc, wxBORDER_RAISED, rect, flags, &rect);
|
||||
|
||||
DrawBackground(dc, wxSCHEME_COLOUR(m_scheme, CONTROL_CURRENT), rect);
|
||||
}
|
||||
|
||||
dc.DrawLabel(label, bitmap, rect, wxALIGN_CENTRE);
|
||||
|
Loading…
Reference in New Issue
Block a user