@solazah/solazah-cli 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.15](https://cnb.cool/seayona/solazah/solazah-cli/compare/v0.2.14...v0.2.15) (2026-05-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **template:** 适配主进程注入的窗口材质属性 ([7b8ea2e](https://cnb.cool/seayona/solazah/solazah-cli/commit/7b8ea2e6f61386416e90d46160b0ef6b6e5fc41b))
|
|
11
|
+
|
|
5
12
|
### [0.2.14](https://cnb.cool/seayona/solazah/solazah-cli/compare/v0.2.12...v0.2.14) (2026-04-24)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
@custom-variant dark (&:is(.dark *));
|
|
5
5
|
|
|
6
|
+
/* ---------- 适配 solazah 主进程注入的窗口材质 ----------
|
|
7
|
+
* 主进程在 BrowserWindow 创建后会向 <html> 注入 data-background-material 属性,
|
|
8
|
+
* 取值为 "mica" / "acrylic" / "none",对应 Windows 11 DWM 的窗口材质设置。
|
|
9
|
+
* 这里按材质给 body 提供合适的兜底色:
|
|
10
|
+
* - mica:完全透明,让 DWM 的桌面采样效果直接显现;
|
|
11
|
+
* - acrylic:叠 88% 不透明白,避免暗色桌面把界面染灰;
|
|
12
|
+
* - none:纯白,没有材质时充当默认背景。
|
|
13
|
+
* 选择器特异度 (0,2,1) 高于 Tailwind base 中的 `body { @apply bg-background }`,
|
|
14
|
+
* 所以保留 `--background` 为不透明白即可,弹框/卡片继续走 bg-background 不会受影响。
|
|
15
|
+
*/
|
|
16
|
+
:root[data-background-material="mica"] body {
|
|
17
|
+
background: transparent;
|
|
18
|
+
}
|
|
19
|
+
:root[data-background-material="acrylic"] body {
|
|
20
|
+
background: rgba(255, 255, 255, 0.88);
|
|
21
|
+
}
|
|
22
|
+
:root[data-background-material="none"] body {
|
|
23
|
+
background: #ffffff;
|
|
24
|
+
}
|
|
6
25
|
|
|
7
26
|
div[role="menuitem"],
|
|
8
27
|
div[role="menu"],
|
|
@@ -92,7 +111,8 @@ button {
|
|
|
92
111
|
--secondary-foreground: oklch(0.205 0 0);
|
|
93
112
|
--muted: oklch(0.97 0 0);
|
|
94
113
|
--muted-foreground: oklch(0.556 0 0);
|
|
95
|
-
|
|
114
|
+
/* hover/选中态在材质背景上需要半透明,否则会糊成实灰块 */
|
|
115
|
+
--accent: oklch(0.97 0 0 / 50%);
|
|
96
116
|
--accent-foreground: oklch(0.205 0 0);
|
|
97
117
|
--destructive: oklch(0.577 0.245 27.325);
|
|
98
118
|
--border: oklch(0.922 0 0);
|
|
@@ -103,7 +123,8 @@ button {
|
|
|
103
123
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
104
124
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
105
125
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
106
|
-
|
|
126
|
+
/* sidebar 透明,让 body 的材质背景透出来 */
|
|
127
|
+
--sidebar: oklch(0.985 0 0 / 0%);
|
|
107
128
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
108
129
|
--sidebar-primary: oklch(0.205 0 0);
|
|
109
130
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
@@ -126,7 +147,7 @@ button {
|
|
|
126
147
|
--secondary-foreground: oklch(0.985 0 0);
|
|
127
148
|
--muted: oklch(0.269 0 0);
|
|
128
149
|
--muted-foreground: oklch(0.708 0 0);
|
|
129
|
-
--accent: oklch(0.269 0 0);
|
|
150
|
+
--accent: oklch(0.269 0 0 / 50%);
|
|
130
151
|
--accent-foreground: oklch(0.985 0 0);
|
|
131
152
|
--destructive: oklch(0.704 0.191 22.216);
|
|
132
153
|
--border: oklch(1 0 0 / 10%);
|
|
@@ -137,7 +158,7 @@ button {
|
|
|
137
158
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
138
159
|
--chart-4: oklch(0.627 0.265 303.9);
|
|
139
160
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
140
|
-
--sidebar: oklch(0.205 0 0);
|
|
161
|
+
--sidebar: oklch(0.205 0 0 / 0%);
|
|
141
162
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
142
163
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
143
164
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|