diff --git a/src/app/main.cpp b/src/app/main.cpp index 26e63dd..bf23def 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -403,11 +403,11 @@ void buildWorkbench(QMainWindow& window, geopro::data::LocalSampleRepository& re auto* anomalyHint = new QLabel(vtkWidget); anomalyHint->setObjectName(QStringLiteral("anomalyHint")); anomalyHint->setAttribute(Qt::WA_TransparentForMouseEvents); - anomalyHint->setAttribute(Qt::WA_TranslucentBackground); // 圆角外透明(否则四角露白底) + // 方角 + 不透明深底:避免「圆角外三角区露白底」与「半透明在 GL 子控件上渲染成灰」两个坑。 geopro::app::applyTokenizedStyleSheet( anomalyHint, - QStringLiteral("QLabel#anomalyHint{background:rgba(10,18,30,0.85);color:#E6ECF5;" - "border:1px solid {{accent/primary}};border-radius:8px;padding:8px 12px;}")); + QStringLiteral("QLabel#anomalyHint{background:#0E1A2D;color:#E6ECF5;" + "border:1px solid {{accent/primary}};padding:8px 12px;}")); anomalyHint->hide(); // 坐标轴设置抽屉面板:叠加 vtkWidget、工具条右侧滑出,默认隐藏(点设置 toggle)。