From eaf2037a17545dcac3d6d385f67bd0a0817239b2 Mon Sep 17 00:00:00 2001 From: James Crook Date: Wed, 17 Aug 2016 16:04:45 +0100 Subject: [PATCH] Dark background for sliders. --- src/widgets/ASlider.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 )