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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user