dsh-ui-alt 0.2.10 → 0.2.12
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/README.md +1 -1
- package/client.js +9 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
| 开关 | 默认 | 效果 |
|
|
12
12
|
| --- | --- | --- |
|
|
13
13
|
| 隐藏左上角 Logo | 关 | 隐藏侧栏顶部的 Logo |
|
|
14
|
-
| Windows 默认微软雅黑字体 |
|
|
14
|
+
| Windows 默认微软雅黑字体 | 关 | Windows 端默认字体改为微软雅黑,低分辨率屏幕 200% 以下缩放带 hinting,更锐利;手动设置字体或 macOS 不受影响 |
|
|
15
15
|
|
|
16
16
|
**布局**
|
|
17
17
|
|
package/client.js
CHANGED
|
@@ -6,7 +6,7 @@ window.__ModuleLoader__.load({
|
|
|
6
6
|
|
|
7
7
|
const STORAGE_KEY = 'dsh-ui-alt:prefs:v1';
|
|
8
8
|
/* 发版时与 package.json 的 version 一起改:设置页底部会显示这两个值 */
|
|
9
|
-
const VERSION = '0.2.
|
|
9
|
+
const VERSION = '0.2.12';
|
|
10
10
|
const UPDATED = '2026-11-09';
|
|
11
11
|
const DEFAULTS = {
|
|
12
12
|
radiusDensity: true,
|
|
@@ -14,7 +14,7 @@ window.__ModuleLoader__.load({
|
|
|
14
14
|
collapseNav: true,
|
|
15
15
|
dimSessions: true,
|
|
16
16
|
hideLogo: false,
|
|
17
|
-
winFont:
|
|
17
|
+
winFont: false,
|
|
18
18
|
sessionDot: true,
|
|
19
19
|
settingsFullscreen: true,
|
|
20
20
|
hideHoverCard: true,
|
|
@@ -184,15 +184,11 @@ html[data-dcc-new="off"] button[data-dcc-newrow] {
|
|
|
184
184
|
display: none !important;
|
|
185
185
|
}
|
|
186
186
|
/* 克隆行直接使用 panelRow 的类,宽度/内边距/行高/焦点环全部来自宿主;
|
|
187
|
-
|
|
187
|
+
默认和其它导航行一样是透明底,悬停时统一由下面的导航行规则上色 */
|
|
188
188
|
html[data-dcc-new="on"] button[data-dcc-newrow] {
|
|
189
|
-
background-color:
|
|
189
|
+
background-color: transparent !important;
|
|
190
190
|
color: var(--dsw-alias-label-primary) !important;
|
|
191
191
|
}
|
|
192
|
-
html[data-dcc-new="on"] button[data-dcc-newrow]:hover {
|
|
193
|
-
background-color: var(--dsw-alias-interactive-bg-hover) !important;
|
|
194
|
-
box-shadow: inset 0 0 0 999px rgba(127, 127, 127, .1) !important;
|
|
195
|
-
}
|
|
196
192
|
.dcc-newrow-content {
|
|
197
193
|
display: flex;
|
|
198
194
|
align-items: center;
|
|
@@ -433,22 +429,19 @@ html[data-dcc-dot="on"] body[data-ds-dark-theme] [class*="_sessionRow"]::before
|
|
|
433
429
|
body:not([data-ds-dark-theme]) nav[class*="_panelList"] [class*="_panelRow"]:hover {
|
|
434
430
|
box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .035) !important;
|
|
435
431
|
}
|
|
436
|
-
html[data-dcc-new="on"] body:not([data-ds-dark-theme]) button[data-dcc-newrow] {
|
|
437
|
-
background-color: color-mix(in srgb, var(--dsw-alias-interactive-bg-hover) 82%, rgba(0, 0, 0, .05)) !important;
|
|
438
|
-
}
|
|
439
432
|
/* 浅色主题下选中会话的背景再强一点 */
|
|
440
433
|
body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
441
434
|
box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .04) !important;
|
|
442
435
|
}
|
|
443
436
|
|
|
444
|
-
/* 导航行的悬停 /
|
|
445
|
-
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"]:hover
|
|
446
|
-
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"]
|
|
437
|
+
/* 导航行的悬停 / 选中:新会话行已经是普通导航行的一员,不再单独排除 */
|
|
438
|
+
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"]:hover,
|
|
439
|
+
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"] {
|
|
447
440
|
background-color: var(--dsw-alias-interactive-bg-hover) !important;
|
|
448
441
|
box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .07) !important;
|
|
449
442
|
}
|
|
450
|
-
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"]:hover
|
|
451
|
-
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"]
|
|
443
|
+
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"]:hover,
|
|
444
|
+
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"] {
|
|
452
445
|
background-color: var(--dsw-alias-interactive-bg-hover) !important;
|
|
453
446
|
box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .1) !important;
|
|
454
447
|
}
|