Extruder selection for multiple selected objects/parts.

A Menu with colored icons is used now instead of wxGetSingleChoice.
All menus for extruder selection use colored icon
This commit is contained in:
YuSanka 2020-02-17 11:26:40 +01:00
parent 860571d51d
commit 3631e938b2
3 changed files with 33 additions and 25 deletions

View file

@ -543,7 +543,7 @@ std::vector<wxBitmap*> get_extruder_color_icons(bool thin_icon/* = false*/)
* and scale them in respect to em_unit value
*/
const double em = Slic3r::GUI::wxGetApp().em_unit();
const int icon_width = lround((thin_icon ? 1 : 3.2) * em);
const int icon_width = lround((thin_icon ? 1.6 : 3.2) * em);
const int icon_height = lround(1.6 * em);
for (const std::string& color : colors)