Mode button fixes / improvements (#13795)

* init

* update thumb color
This commit is contained in:
yw4z
2026-05-22 14:04:03 +03:00
committed by GitHub
parent 19ada707da
commit def47f8959
5 changed files with 101 additions and 53 deletions

View File

@@ -664,6 +664,14 @@ void ParamsPanel::update_mode()
sync_mode_view(m_mode_view);
sync_mode_view(m_current_tab ? dynamic_cast<Tab*>(m_current_tab)->m_mode_view : nullptr);
auto sync_mode_icon = [&](ScalableButton* mode_icon) {
if (mode_icon == nullptr)
return;
mode_icon->Show(app_mode != comDevelop);
};
sync_mode_icon(m_mode_icon);
sync_mode_icon(m_current_tab ? dynamic_cast<Tab*>(m_current_tab)->m_mode_icon : nullptr);
}
void ParamsPanel::msw_rescale()