fix(ui): 异常提示浮层去圆角+不透明深底(消白角/灰底)

上一版 WA_TranslucentBackground 让半透明背景在 GL 子控件上渲染成灰底。改为方角+不透明深底
(#0E1A2D)+accent 描边:方角无"圆角外三角区"故不露白,不透明深底不被白底冲淡成灰。
This commit is contained in:
gaozheng 2026-06-26 16:23:44 +08:00
parent 1648ccb8c4
commit e8bb2f82e7
1 changed files with 3 additions and 3 deletions

View File

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