From e8bb2f82e7806f84784e2d33e6b41db71d3674c1 Mon Sep 17 00:00:00 2001 From: gaozheng Date: Fri, 26 Jun 2026 16:23:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E5=BC=82=E5=B8=B8=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=B5=AE=E5=B1=82=E5=8E=BB=E5=9C=86=E8=A7=92+=E4=B8=8D?= =?UTF-8?q?=E9=80=8F=E6=98=8E=E6=B7=B1=E5=BA=95(=E6=B6=88=E7=99=BD?= =?UTF-8?q?=E8=A7=92/=E7=81=B0=E5=BA=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一版 WA_TranslucentBackground 让半透明背景在 GL 子控件上渲染成灰底。改为方角+不透明深底 (#0E1A2D)+accent 描边:方角无"圆角外三角区"故不露白,不透明深底不被白底冲淡成灰。 --- src/app/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)。