Port color decompose recipe data and interpolation from BambuStudio

This commit is contained in:
SoftFever
2026-08-23 22:11:49 +08:00
parent fcdfcae427
commit 94a1cd6c93
4 changed files with 7625 additions and 7437 deletions
+3 -5
View File
@@ -652,7 +652,6 @@ void ColorDecomposeDialog::update_filament_limit_warning()
m_limit_warning_panel->Hide();
Layout();
Fit();
CenterOnParent();
}
return;
}
@@ -678,12 +677,11 @@ void ColorDecomposeDialog::update_filament_limit_warning()
m_limit_warning_text->Wrap(avail);
Layout();
// Only resize/recenter when the warning panel actually toggled from hidden
// to shown. While already visible, switching modes must not re-Fit/recenter
// the dialog, which would make it jump on every card switch.
// Only resize when the warning panel actually toggled from hidden to shown.
// While already visible, switching modes must not re-Fit the dialog, which
// would make it jump on every card switch. Fit keeps the user-moved position.
if (!was_shown) {
Fit();
CenterOnParent();
}
}