New icon
This commit is contained in:
parent
aeed77bef9
commit
19dc69dd74
3 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use utf8;
|
use utf8;
|
||||||
|
|
||||||
|
use FindBin;
|
||||||
use Slic3r::GUI::OptionsGroup;
|
use Slic3r::GUI::OptionsGroup;
|
||||||
use Slic3r::GUI::SkeinPanel;
|
use Slic3r::GUI::SkeinPanel;
|
||||||
|
|
||||||
|
@ -14,10 +15,10 @@ sub OnInit {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
$self->SetAppName('Slic3r');
|
$self->SetAppName('Slic3r');
|
||||||
#$self->SetIcon(Wx::Icon->new("path/to/my/icon.gif", wxBITMAP_TYPE_GIF) );
|
|
||||||
|
|
||||||
my $frame = Wx::Frame->new( undef, -1, 'Slic3r', [-1, -1], Wx::wxDefaultSize,
|
my $frame = Wx::Frame->new( undef, -1, 'Slic3r', [-1, -1], Wx::wxDefaultSize,
|
||||||
wxDEFAULT_FRAME_STYLE ^ (wxRESIZE_BORDER | wxMAXIMIZE_BOX) );
|
wxDEFAULT_FRAME_STYLE ^ (wxRESIZE_BORDER | wxMAXIMIZE_BOX) );
|
||||||
|
#$frame->SetIcon(Wx::Icon->new("$FindBin::Bin/var/icon.png", &Wx::wxBITMAP_TYPE_ANY) );
|
||||||
|
|
||||||
my $panel = Slic3r::GUI::SkeinPanel->new($frame);
|
my $panel = Slic3r::GUI::SkeinPanel->new($frame);
|
||||||
my $box = Wx::BoxSizer->new(wxVERTICAL);
|
my $box = Wx::BoxSizer->new(wxVERTICAL);
|
||||||
|
|
|
@ -84,7 +84,7 @@ sub new {
|
||||||
if (eval "use Growl::GNTP; 1") {
|
if (eval "use Growl::GNTP; 1") {
|
||||||
# register growl notifications
|
# register growl notifications
|
||||||
eval {
|
eval {
|
||||||
$self->{growler} = Growl::GNTP->new(AppName => 'Slic3r'); #, AppIcon => "path/to/my/icon.gif");
|
$self->{growler} = Growl::GNTP->new(AppName => 'Slic3r', AppIcon => "$FindBin::Bin/var/icon.png");
|
||||||
$self->{growler}->register([{Name => 'SKEIN_DONE', DisplayName => 'Slicing Done'}]);
|
$self->{growler}->register([{Name => 'SKEIN_DONE', DisplayName => 'Slicing Done'}]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
BIN
var/icon.png
Normal file
BIN
var/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in a new issue