From bc07e6a0a49a7196523687705250ae89652c4a2e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 29 May 2017 19:34:38 +0200 Subject: [PATCH] Use system color instead of hard-coding white background (support dark themes). #3977 --- lib/Slic3r/GUI/Controller/PrinterPanel.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Controller/PrinterPanel.pm b/lib/Slic3r/GUI/Controller/PrinterPanel.pm index 7d9e8a296..065d3eaeb 100644 --- a/lib/Slic3r/GUI/Controller/PrinterPanel.pm +++ b/lib/Slic3r/GUI/Controller/PrinterPanel.pm @@ -550,10 +550,10 @@ sub new { my $self = $class->SUPER::new($parent, -1, wxDefaultPosition, wxDefaultSize); $self->job($job); - $self->SetBackgroundColour(wxWHITE); + $self->SetBackgroundColour(Wx::SystemSettings::GetColour(Wx::wxSYS_COLOUR_LISTBOX)); { - my $white_brush = Wx::Brush->new(wxWHITE, wxSOLID); + my $white_brush = Wx::Brush->new($self->GetBackgroundColour, wxSOLID); my $pen = Wx::Pen->new(Wx::Colour->new(200,200,200), 1, wxSOLID); EVT_ERASE_BACKGROUND($self, sub { my ($self, $event) = @_;