mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-07 19:49:11 +08:00
Use borderless buttons for save/delete in presets management (better look on wxOSX with 3.0.0)
This commit is contained in:
parent
93687c1491
commit
69da8b0999
@ -6,7 +6,7 @@ use utf8;
|
|||||||
use File::Basename qw(basename);
|
use File::Basename qw(basename);
|
||||||
use List::Util qw(first);
|
use List::Util qw(first);
|
||||||
use Wx qw(:bookctrl :dialog :keycode :icon :id :misc :panel :sizer :treectrl :window
|
use Wx qw(:bookctrl :dialog :keycode :icon :id :misc :panel :sizer :treectrl :window
|
||||||
wxTheApp);
|
:button wxTheApp);
|
||||||
use Wx::Event qw(EVT_BUTTON EVT_CHOICE EVT_KEY_DOWN EVT_TREE_SEL_CHANGED);
|
use Wx::Event qw(EVT_BUTTON EVT_CHOICE EVT_KEY_DOWN EVT_TREE_SEL_CHANGED);
|
||||||
use base qw(Wx::Panel Class::Accessor);
|
use base qw(Wx::Panel Class::Accessor);
|
||||||
|
|
||||||
@ -36,8 +36,10 @@ sub new {
|
|||||||
$self->{presets_choice}->SetFont($Slic3r::GUI::small_font);
|
$self->{presets_choice}->SetFont($Slic3r::GUI::small_font);
|
||||||
|
|
||||||
# buttons
|
# buttons
|
||||||
$self->{btn_save_preset} = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/disk.png", wxBITMAP_TYPE_PNG));
|
$self->{btn_save_preset} = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/disk.png", wxBITMAP_TYPE_PNG),
|
||||||
$self->{btn_delete_preset} = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/delete.png", wxBITMAP_TYPE_PNG));
|
wxDefaultPosition, [16,16], wxBORDER_NONE);
|
||||||
|
$self->{btn_delete_preset} = Wx::BitmapButton->new($self, -1, Wx::Bitmap->new("$Slic3r::var/delete.png", wxBITMAP_TYPE_PNG),
|
||||||
|
wxDefaultPosition, [16,16], wxBORDER_NONE);
|
||||||
$self->{btn_save_preset}->SetToolTipString("Save current " . lc($self->title));
|
$self->{btn_save_preset}->SetToolTipString("Save current " . lc($self->title));
|
||||||
$self->{btn_delete_preset}->SetToolTipString("Delete this preset");
|
$self->{btn_delete_preset}->SetToolTipString("Delete this preset");
|
||||||
$self->{btn_delete_preset}->Disable;
|
$self->{btn_delete_preset}->Disable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user