(hacky) fix for bg colour handling in wxUniv's win32 theme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1261,7 +1261,7 @@ wxColour wxWin32ColourScheme::GetBackground(wxWindow *win) const
|
||||
|
||||
// the colour set by the user should be used for the normal state
|
||||
// and for the states for which we don't have any specific colours
|
||||
if ( !col.Ok() || (flags != 0) )
|
||||
if ( !col.Ok() || (flags & wxCONTROL_PRESSED) != 0 )
|
||||
{
|
||||
if ( wxDynamicCast(win, wxScrollBar) )
|
||||
col = Get(flags & wxCONTROL_PRESSED ? SCROLLBAR_PRESSED
|
||||
|
Reference in New Issue
Block a user