FIX:modify ToolTip for MaterialSyncItem

jira: none
Change-Id: Ia9e3066f6b0b8300641ce1773a74053a675b7e83
(cherry picked from commit 8d9b589b35fa7175e2edef183ce2ce2c83289fcf)
This commit is contained in:
zhou.xu
2025-02-14 15:50:30 +08:00
committed by Noisyfox
parent 7924f92fe1
commit d27c59c705
2 changed files with 7 additions and 2 deletions

View File

@@ -354,8 +354,14 @@ void MaterialSyncItem::render(wxDC &dc)
if (mapping_txt == "-") {
m_match = false;
mapping_txt = _L("Unmapped");
SetToolTip(_L("Upper half area: Original\nLower half area: The filament from original project will be used when unmapped.\nAnd you can click it to modify"));
} else {
m_match = true;
if (m_dropdown_allow_painted) {
SetToolTip(_L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you can click it to modify"));
} else {
SetToolTip(_L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you cannot click it to modify"));
}
}
dc.SetFont(::Label::Body_12);
if (dc.GetTextExtent(m_material_name).x > GetSize().x - 10) {