fix(vtk): 选中切片边框改亮青(0,0.95,1)+加粗, 未选暗灰, 拉开对比

This commit is contained in:
gaozheng 2026-06-16 11:38:53 +08:00
parent 5809b88a44
commit 07f2f25b58
1 changed files with 3 additions and 3 deletions

View File

@ -152,10 +152,10 @@ void SliceTool::setSelected(bool sel) {
// 切片边框 = widget 的 PlaneProperty选中→亮黄粗线未选中→暗灰细线。
if (auto* prop = widget_->GetPlaneProperty()) {
if (sel) {
prop->SetColor(1.0, 0.9, 0.1);
prop->SetLineWidth(3.0);
prop->SetColor(0.0, 0.95, 1.0); // 亮青:与未选的暗灰强对比
prop->SetLineWidth(3.5);
} else {
prop->SetColor(0.5, 0.5, 0.5);
prop->SetColor(0.35, 0.35, 0.4); // 暗灰
prop->SetLineWidth(1.0);
}
}