From 34248c2fbf89d973bdcd51dfb7685f49dfce96f2 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 24 Oct 2016 18:05:26 +0200 Subject: [PATCH] On Windows use the Slic3r.ico instead of the PNG file for the application icon. --- lib/Slic3r/GUI/MainFrame.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/MainFrame.pm b/lib/Slic3r/GUI/MainFrame.pm index 1969d8bea..05271696d 100644 --- a/lib/Slic3r/GUI/MainFrame.pm +++ b/lib/Slic3r/GUI/MainFrame.pm @@ -21,7 +21,11 @@ sub new { my ($class, %params) = @_; my $self = $class->SUPER::new(undef, -1, $Slic3r::FORK_NAME . ' - ' . $Slic3r::VERSION, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE); - $self->SetIcon(Wx::Icon->new($Slic3r::var->("Slic3r_128px.png"), wxBITMAP_TYPE_PNG) ); + if ($^O eq 'MSWin32') { + $self->SetIcon(Wx::Icon->new($Slic3r::var->("Slic3r.ico"), wxBITMAP_TYPE_ICO)); + } else { + $self->SetIcon(Wx::Icon->new($Slic3r::var->("Slic3r_128px.png"), wxBITMAP_TYPE_PNG)); + } # store input params $self->{mode} = $params{mode};