Allow non-squared textures for toolbars and gizmo icons

This commit is contained in:
Enrico Turri 2019-02-26 10:40:00 +01:00
parent 0f683a6a1e
commit f47fe861ac
7 changed files with 86 additions and 67 deletions

View file

@ -2651,7 +2651,7 @@ void Plater::priv::init_view_toolbar()
item.name = "3D";
#if ENABLE_SVG_ICONS
item.svg_file = "add.svg";
item.icon_filename = "add.svg";
#endif // ENABLE_SVG_ICONS
item.tooltip = GUI::L_str("3D editor view") + " [" + GUI::shortkey_ctrl_prefix() + "5]";
item.sprite_id = 0;
@ -2662,7 +2662,7 @@ void Plater::priv::init_view_toolbar()
item.name = "Preview";
#if ENABLE_SVG_ICONS
item.svg_file = "remove.svg";
item.icon_filename = "remove.svg";
#endif // ENABLE_SVG_ICONS
item.tooltip = GUI::L_str("Preview") + " [" + GUI::shortkey_ctrl_prefix() + "6]";
item.sprite_id = 1;