X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/442b35b53bf95f5c6c003ea9ddbefd17adbc2a00..5baa06bb62f30f5a1cf9a8393f998696a8e41db3:/src/univ/renderer.cpp?ds=sidebyside diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 19c027723c..16c2c2de04 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -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() ) {