From b1b9c02368eef7321235a99c73a10849a9f2b958 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Sat, 11 Jan 2025 09:04:47 +0800 Subject: [PATCH] FIX: something gui Change-Id: Ia5ed59d2acca441030a917ae6867cca70bb2231f Jira: STUDIO-9705, STUDIO-9714 (cherry picked from commit 7bf976babc8d12118200c5ebe8f1df976d269199) --- resources/images/printer_sync.svg | 10 ++++++++++ src/slic3r/GUI/Plater.cpp | 4 ++-- src/slic3r/GUI/PresetComboBoxes.cpp | 5 ----- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 resources/images/printer_sync.svg diff --git a/resources/images/printer_sync.svg b/resources/images/printer_sync.svg new file mode 100644 index 0000000000..1517f8a763 --- /dev/null +++ b/resources/images/printer_sync.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index f7be0c521f..47a861c61d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1503,7 +1503,7 @@ Sidebar::Sidebar(Plater *parent) project_config.set_key_value("curr_bed_type", new ConfigOptionEnum(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{ 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{ p->btn_reslice, p->btn_export_gcode }) // wxGetApp().UpdateDarkUI(btn, true); p->m_printer_icon->msw_rescale(); diff --git a/src/slic3r/GUI/PresetComboBoxes.cpp b/src/slic3r/GUI/PresetComboBoxes.cpp index ed5937df3a..15427bf947 100644 --- a/src/slic3r/GUI/PresetComboBoxes.cpp +++ b/src/slic3r/GUI/PresetComboBoxes.cpp @@ -1244,11 +1244,6 @@ void PlaterPresetComboBox::update() } update_selection(); - if (m_type == Preset::TYPE_PRINTER && !selected_system_preset.empty()) { - auto label = GetLabel(); - label.Replace("Bambu Lab ", ""); - SetLabel(label); - } Thaw(); if (!tooltip.IsEmpty()) {