added GAUGE standard colour and use it in DrawProgressBar() if the colour
hadn't bee nset explicitly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -771,7 +771,9 @@ void wxControlRenderer::DrawProgressBar(const wxGauge *gauge)
|
||||
wxRect rect = m_rect;
|
||||
rect.Deflate(1); // FIXME this depends on the border width
|
||||
|
||||
m_dc.SetBrush(wxBrush(m_window->GetForegroundColour(), wxSOLID));
|
||||
wxColour col = m_window->UseFgCol() ? m_window->GetForegroundColour()
|
||||
: wxTHEME_COLOUR(GAUGE);
|
||||
m_dc.SetBrush(wxBrush(col, wxSOLID));
|
||||
|
||||
if ( gauge->IsSmooth() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user