From abff77cf04c112fdeaf10a454097b2d8f2b95b82 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 5 Dec 2015 19:01:17 +0100 Subject: [PATCH] Add color icons to menu items about axes. #3121 --- lib/Slic3r/GUI/Plater.pm | 18 +++++++++--------- var/bullet_blue.png | Bin 382 -> 289 bytes var/bullet_green.png | Bin 0 -> 295 bytes var/bullet_red.png | Bin 0 -> 287 bytes 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100755 var/bullet_green.png create mode 100755 var/bullet_red.png diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index e5fadb652..8afc185fa 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1718,26 +1718,26 @@ sub object_menu { $frame->_set_menu_item_icon($rotateMenuItem, 'textfield.png'); $frame->_append_menu_item($rotateMenu, "Around X axis…", 'Rotate the selected object by an arbitrary angle around X axis', sub { $self->rotate(undef, X); - }); + }, undef, 'bullet_red.png'); $frame->_append_menu_item($rotateMenu, "Around Y axis…", 'Rotate the selected object by an arbitrary angle around Y axis', sub { $self->rotate(undef, Y); - }); + }, undef, 'bullet_green.png'); $frame->_append_menu_item($rotateMenu, "Around Z axis…", 'Rotate the selected object by an arbitrary angle around Z axis', sub { $self->rotate(undef, Z); - }); + }, undef, 'bullet_blue.png'); my $mirrorMenu = Wx::Menu->new; my $mirrorMenuItem = $menu->AppendSubMenu($mirrorMenu, "Mirror", 'Mirror the selected object'); $frame->_set_menu_item_icon($mirrorMenuItem, 'shape_flip_horizontal.png'); $frame->_append_menu_item($mirrorMenu, "Along X axis…", 'Mirror the selected object along the X axis', sub { $self->mirror(X); - }); + }, undef, 'bullet_red.png'); $frame->_append_menu_item($mirrorMenu, "Along Y axis…", 'Mirror the selected object along the Y axis', sub { $self->mirror(Y); - }); + }, undef, 'bullet_green.png'); $frame->_append_menu_item($mirrorMenu, "Along Z axis…", 'Mirror the selected object along the Z axis', sub { $self->mirror(Z); - }); + }, undef, 'bullet_blue.png'); my $scaleMenu = Wx::Menu->new; my $scaleMenuItem = $menu->AppendSubMenu($scaleMenu, "Scale", 'Scale the selected object along a single axis'); @@ -1747,13 +1747,13 @@ sub object_menu { }); $frame->_append_menu_item($scaleMenu, "Along X axis…", 'Scale the selected object along the X axis', sub { $self->changescale(X); - }); + }, undef, 'bullet_red.png'); $frame->_append_menu_item($scaleMenu, "Along Y axis…", 'Scale the selected object along the Y axis', sub { $self->changescale(Y); - }); + }, undef, 'bullet_green.png'); $frame->_append_menu_item($scaleMenu, "Along Z axis…", 'Scale the selected object along the Z axis', sub { $self->changescale(Z); - }); + }, undef, 'bullet_blue.png'); $frame->_append_menu_item($menu, "Split", 'Split the selected object into individual parts', sub { $self->split_object; diff --git a/var/bullet_blue.png b/var/bullet_blue.png index c2ef17e4af35e2f7c52b080856df793bb5613c4d..a7651ec8a0f395be021bac262783ec604abf8c47 100755 GIT binary patch delta 224 zcmV<603ZMU0-*ws83+ad001BJ|6!3K6O&K@C4aL?L_t(I%k9!V3qf%l#qskx?i*y1 zQZk@l2_?g2u}B^=7%idI;(iX7~f|0aR(A zNq#5^mZqn3Wny9zv9=2!ca-qpOmn6gAKMId4@9u!;zD+1AUzc%dkWG}2;>FcxbZLX aN5BibU+sVdqC$lL0000VkZyBaPW|(lDVbM>9u2T&2J}@-z zVVM4up==?;q?-&q=NQ@#Gc;^tD4xTR(b{n7@6JcRH{SbId-B7MhrjEN|ESM9^mXFJ zuPbl=C^+;r{lJ&Dv!82Dyqj?0YwPLH6$hUHEqnU>fHlx=k&+<4UQj*dVQ=Nqpgak!})7^z0Oqeib z(lZyK2a_gFo&4NQTIfMwKuFLtSD^=w#RWu!md#zvXfvIu@ef43{&%10 z`rmr0`TyJtv;LcOX%laN^>UMjsi!CYUwmcZ|JfI2{-1ED=f8fLD)C;hoM$LyFDY#DW^u;K&o-|vHe`x?xbw1zYx$2><(A#;6QU!sSfhO( ioL~suuJh6Vfb_?jd)=>7iZy|bXYh3Ob6Mw<&;$Tq>~Ep~ literal 0 HcmV?d00001