1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-16 17:41:15 +01:00

Dark background for sliders.

This commit is contained in:
James Crook
2016-08-17 16:04:45 +01:00
parent 0db05760a8
commit eaf2037a17

View File

@@ -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<LWSlider>( 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 )