ENH:optimize tipsdialog ui

jira: STUDIO-11937
Change-Id: Ibd9598c915bb94bb8f2ff05e63eef09cc358779e
This commit is contained in:
Mack 2025-05-20 16:39:47 +08:00 committed by lane.wei
parent 63ba575f0e
commit 3b3042884e
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ TipsDialog::TipsDialog(wxWindow *parent, const wxString &title, const wxString &
wxBoxSizer *m_sizer_left = new wxBoxSizer(wxHORIZONTAL);
auto dont_show_again = create_item_checkbox(_L("Don't show again"), this, _L("Don't show again"), "do_not_show_tips");
m_sizer_left->Add(dont_show_again, 1, wxALL, FromDIP(5));
m_sizer_left->Add(dont_show_again, 1, wxALL, FromDIP(0));
m_sizer_bottom->Add(m_sizer_left, 1, wxEXPAND, FromDIP(5));
@ -105,7 +105,7 @@ wxBoxSizer *TipsDialog::create_item_checkbox(wxString title, wxWindow *parent, w
{
wxBoxSizer *m_sizer_checkbox = new wxBoxSizer(wxHORIZONTAL);
m_sizer_checkbox->Add(0, 0, 0, wxEXPAND | wxLEFT, 5);
//m_sizer_checkbox->Add(0, 0, 0, wxEXPAND | wxLEFT, 5);
auto checkbox = new ::CheckBox(parent);
m_sizer_checkbox->Add(checkbox, 0, wxALIGN_CENTER, 0);

View File

@ -11251,9 +11251,9 @@ bool Plater::try_sync_preset_with_connected_printer(int& nozzle_diameter)
if (printer_preset.get_current_printer_type(preset_bundle) != printer_type || !is_approx((float)(preset_nozzle_diameter), machine_nozzle_diameter)) {
wxString tips;
if (printer_preset.get_current_printer_type(preset_bundle) != printer_type)
tips = from_u8((boost::format(_u8L("The currently connected printer, %s, is a %s model.\nTo use this printer for printing, please switch the printer model of project file to %s.")) % obj->dev_name % printer_model % printer_model).str());
tips = from_u8((boost::format(_u8L("The currently connected printer '%s', is a %s model.\nTo use this printer for printing, please switch the printer model of project file to %s.")) % obj->dev_name % printer_model % printer_model).str());
else if (!is_approx((float) (preset_nozzle_diameter), machine_nozzle_diameter))
tips = from_u8((boost::format(_u8L("The currently connected printer, %s, is a %s model but not consistent with preset in project file.\n"
tips = from_u8((boost::format(_u8L("The currently connected printer '%s', is a %s model but not consistent with preset in project file.\n"
"To use this printer for printing, please switch the preset first.")) % obj->dev_name % printer_model).str());
std::map<wxStandardID, wxString>option_map = {