X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/799ea01170e831c212320b0cb3038a91785e4789..7d1f4c3ff01b09105c07d5e176a14428c834975e:/src/common/ctrlcmn.cpp diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index a61beaa16c..2ebabc1f0d 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -92,8 +92,14 @@ bool wxControlBase::CreateControl(wxWindowBase *parent, // inherit colour and font settings from the parent window void wxControlBase::InheritAttributes() { + // it definitely doesn't make sense to inherit the background colour as the + // controls typically have their own standard one and probably not the + // foreground neither? +#if 0 SetBackgroundColour(GetParent()->GetBackgroundColour()); SetForegroundColour(GetParent()->GetForegroundColour()); +#endif // 0 + SetFont(GetParent()->GetFont()); }