do not inherit background colour in InheritAttributes() as it totally breaks themed backgrounds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7e2bb04d4e
commit
eb96212b6c
@ -983,8 +983,15 @@ void wxWindowBase::InheritAttributes()
|
||||
if ( parent->m_inheritFgCol && !m_hasFgCol )
|
||||
SetForegroundColour(parent->GetForegroundColour());
|
||||
|
||||
// inheriting (solid) background colour is wrong as it totally breaks
|
||||
// any kind of themed backgrounds
|
||||
//
|
||||
// instead, the controls should use the same background as their parent
|
||||
// (ideally by not drawing it at all)
|
||||
#if 0
|
||||
if ( parent->m_inheritBgCol && !m_hasBgCol )
|
||||
SetBackgroundColour(parent->GetBackgroundColour());
|
||||
#endif // 0
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user