diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index cb591ba70..654b4685f 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -1563,6 +1563,9 @@ ASlider::ASlider( wxWindow * parent, int orientation /*= wxHORIZONTAL*/) : wxPanel( parent, id, pos, size, wxWANTS_CHARS ) { + //wxColour Col(parent->GetBackgroundColour()); + //SetBackgroundColour( Col ); + SetBackgroundColour( theTheme.Colour( clrMedium ) ); mLWSlider = std::make_unique( this, name, wxPoint(0,0), @@ -1623,11 +1626,6 @@ void ASlider::OnPaint(wxPaintEvent & WXUNUSED(event)) { wxPaintDC dc(this); -#ifdef EXPERIMENTAL_THEMING - wxColour Col(GetParent()->GetBackgroundColour()); - this->SetBackgroundColour( Col ); -#endif - mLWSlider->OnPaint(dc); if ( mSliderIsFocused )