FIX: something gui

Change-Id: Ia5ed59d2acca441030a917ae6867cca70bb2231f
Jira: STUDIO-9705, STUDIO-9714
(cherry picked from commit 7bf976babc8d12118200c5ebe8f1df976d269199)
This commit is contained in:
chunmao.guo
2025-01-11 09:04:47 +08:00
committed by Noisyfox
parent a7578be62f
commit b1b9c02368
3 changed files with 12 additions and 7 deletions

View File

@@ -1503,7 +1503,7 @@ Sidebar::Sidebar(Plater *parent)
project_config.set_key_value("curr_bed_type", new ConfigOptionEnum<BedType>(bed_type));
// Sync printer information
auto btn_sync = new Button(p->m_panel_printer_content, _L("Sync printer information"), "ams_nozzle_sync");
auto btn_sync = new Button(p->m_panel_printer_content, _L("Sync printer information"), "printer_sync", 0, 32);
//btn_sync->SetFont(Label::Body_8);
btn_sync->SetToolTip(_L("Synchronize nozzle information and the number of AMS"));
btn_sync->SetCornerRadius(8);
@@ -2230,7 +2230,7 @@ void Sidebar::sys_color_changed()
for (wxWindow* win : std::vector<wxWindow*>{ p->scrolled, p->presets_panel })
wxGetApp().UpdateAllStaticTextDarkUI(win);
#endif
p->btn_sync_printer->SetIcon("ams_nozzle_sync");
p->btn_sync_printer->SetIcon("printer_sync");
// for (wxWindow* btn : std::vector<wxWindow*>{ p->btn_reslice, p->btn_export_gcode })
// wxGetApp().UpdateDarkUI(btn, true);
p->m_printer_icon->msw_rescale();