mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
On Windows use the Slic3r.ico instead of the PNG file
for the application icon.
This commit is contained in:
parent
51c8d73b11
commit
34248c2fbf
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ sub new {
|
||||||
my ($class, %params) = @_;
|
my ($class, %params) = @_;
|
||||||
|
|
||||||
my $self = $class->SUPER::new(undef, -1, $Slic3r::FORK_NAME . ' - ' . $Slic3r::VERSION, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE);
|
my $self = $class->SUPER::new(undef, -1, $Slic3r::FORK_NAME . ' - ' . $Slic3r::VERSION, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE);
|
||||||
|
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));
|
$self->SetIcon(Wx::Icon->new($Slic3r::var->("Slic3r_128px.png"), wxBITMAP_TYPE_PNG));
|
||||||
|
}
|
||||||
|
|
||||||
# store input params
|
# store input params
|
||||||
$self->{mode} = $params{mode};
|
$self->{mode} = $params{mode};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue