Set Wx app icon

This commit is contained in:
Alessandro Ranellucci 2012-05-01 12:58:47 +02:00
parent e4e970f7e3
commit 770b94cb30
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ sub OnInit {
my $frame = Wx::Frame->new( undef, -1, 'Slic3r', [-1, -1], Wx::wxDefaultSize,
wxDEFAULT_FRAME_STYLE ^ (wxRESIZE_BORDER | wxMAXIMIZE_BOX) );
#$frame->SetIcon(Wx::Icon->new("$FindBin::Bin/var/Slic3r.png", &Wx::wxBITMAP_TYPE_ANY) );
Wx::Image::AddHandler(Wx::PNGHandler->new);
$frame->SetIcon(Wx::Icon->new("$FindBin::Bin/var/Slic3r_128px.png", &Wx::wxBITMAP_TYPE_PNG) );
my $panel = Slic3r::GUI::SkeinPanel->new($frame);
my $box = Wx::BoxSizer->new(wxVERTICAL);

BIN
var/Slic3r_128px.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB