diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index abcba5d402..7b7b071769 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -7431,7 +7431,7 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale() return; } - float scale = wxGetApp().toolbar_icon_scale(); + float scale = wxGetApp().toolbar_icon_scale() * get_scale(); Size cnv_size = get_canvas_size(); //BBS: GUI refactor: GLToolbar @@ -7442,26 +7442,12 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale() float size = size_i; // Set current size for all top toolbars. It will be used for next calculations -#if ENABLE_RETINA_GL - const float sc = m_retina_helper->get_scale_factor() * scale; - //BBS: GUI refactor: GLToolbar - m_main_toolbar.set_scale(sc); - m_assemble_view_toolbar.set_scale(sc); - m_separator_toolbar.set_scale(sc); - collapse_toolbar.set_scale(sc / 2.0); - size *= m_retina_helper->get_scale_factor(); - - auto* m_notification = wxGetApp().plater()->get_notification_manager(); - m_notification->set_scale(sc); - m_gizmos.set_overlay_scale(sc); -#else //BBS: GUI refactor: GLToolbar m_main_toolbar.set_icons_size(size); m_assemble_view_toolbar.set_icons_size(size); m_separator_toolbar.set_icons_size(size); collapse_toolbar.set_icons_size(size / 2.0); m_gizmos.set_overlay_icon_size(size); -#endif // ENABLE_RETINA_GL //BBS: GUI refactor: GLToolbar #if BBS_TOOLBAR_ON_TOP @@ -7498,9 +7484,7 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale() // set minimum scale as a auto scale for the toolbars float new_scale = std::min(new_h_scale, new_v_scale); -#if ENABLE_RETINA_GL - new_scale /= m_retina_helper->get_scale_factor(); -#endif + new_scale /= get_scale(); if (fabs(new_scale - scale) > 0.05) // scale is changed by 5% and more wxGetApp().set_auto_toolbar_icon_scale(new_scale); }