fix(小组件): 空态图标按场景分家 + 桌面面板拖拽态翻白
build / build (push) Successful in 42s

- 管理台空态改用新线性图标 widget-empty-line.svg(虚线框+加号,currentColor 可着色)
- 桌面小工具面板空态还原原版 widget-empty.svg(内嵌灰度仪表盘 PNG,4279f99 版)
- _widget.scss 拖拽态翻白:背景/边框/阴影与前景令牌一并反转,避免重演「白底压白字」
This commit is contained in:
chenxing
2026-10-12 08:47:45 +08:00
parent 5a19a4ed79
commit a3ddb90a8a
4 changed files with 35 additions and 8 deletions
+16 -3
View File
@@ -85,12 +85,25 @@
}
}
// 拖拽态加深 + 加强模糊(旧版翻白 → 浅灰图标压浅白,是这轮修掉的反向翻车)
// 拖拽态翻白(沿用旧版白色语义:面板与 header 一并提亮,模糊略加强)。
// ⚠️ 该元素同时挂着 .widget-wrap,--wg-fg* 是给深色玻璃配的白字,
// 翻白后必须同步反转为深色,否则重演「白底压白字 / 浅灰图标不可见」。
&__drag {
background: rgba(15, 23, 42, 0.56);
--wg-glass-bg: rgba(255, 255, 255, 0.6);
--wg-glass-border: rgba(15, 23, 42, 0.08);
--wg-glass-shadow: 0 14px 44px rgba(15, 23, 42, 0.2);
--wg-fg: #1f2d3d;
--wg-fg-dim: rgba(31, 45, 61, 0.62);
--wg-fg-shadow: none;
background: var(--wg-glass-bg);
backdrop-filter: blur(22px) saturate(150%);
-webkit-backdrop-filter: blur(22px) saturate(150%);
box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
box-shadow: var(--wg-glass-shadow);
.widget-header {
background: rgba(255, 255, 255, 0.5);
}
}
}