@michengai/dsh-codex-ui 2.0.3 → 2.0.5
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 +17 -0
- package/CHANGELOG.zh-CN.md +17 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +614 -62
- package/lib/composer-plugin.mjs +1 -1
- package/lib/{profile-resolver-BlLPRcE8.mjs → profile-resolver-9ws-Evm5.mjs} +9 -2
- package/lib/settings-skin-plugin.mjs +1 -1
- package/lib/sidebar-plugin.mjs +1 -1
- package/lib/theme-plugin.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.5 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
- **Fix Chat History Bleeding Through Composer (#69)**: Restore an opaque ground-aligned occlusion base and smooth top fade for the composer seat in glass and mica modes, eliminating text overlap and visual clutter where scrolled messages bled through the input card and status dock, while ensuring the last message remains fully legible when scrolled to the bottom.
|
|
6
|
+
- **Eliminate Scrolled Content Bleeding Under Floating Mica Header**: Prevent conversation messages and pills from bleeding through the floating header, top margin, and rounded corners during scroll, gracefully fading out overlapped content while keeping the header's native border, drop shadow, and frosted glass texture intact.
|
|
7
|
+
|
|
8
|
+
## 2.0.4 (2026-10-29)
|
|
9
|
+
|
|
10
|
+
- **Support Latest Host Versions**: Expand the host support matrix to officially support DeepSeek Harness latest RC (`0.2.1-rc.4`) and alpha (`0.2.2-alpha.2`).
|
|
11
|
+
- **Fix Settings Layout Fragmentation (#68)**: Adapt to the latest host settings structure, eliminating horizontal multi-column tearing, content width overflow, and title overlap to restore clean two-column layout and header bar.
|
|
12
|
+
- **Protect Theme Preferences & Dark Mode**: Prevent the UI from inadvertently reverting to a white/light theme when disabling theme enhancements or switching to default under "Follow System (Dark)" or custom dark palettes.
|
|
13
|
+
- **Eliminate Settings Modal Resize Flicker**: Ensure settings skin does not cause modal expand/shrink resize flickers when the skin is disabled.
|
|
14
|
+
- **Refine Visual Details & Layout Polishing**:
|
|
15
|
+
- Fix float mode right header alignment with content cards;
|
|
16
|
+
- Remove dirty gray smudges behind composer bottom stats pills;
|
|
17
|
+
- Restore trajectory view to full-bleed width in mica mode;
|
|
18
|
+
- Eliminate the sticky header color seam in the plugin manager.
|
|
19
|
+
|
|
3
20
|
## 2.0.3 (2026-10-28)
|
|
4
21
|
|
|
5
22
|
- **Support iOS Safe Area Insets and Mobile Layout**: Introduce W3C standard `env(safe-area-inset-*)` safe-area padding into mobile settings skin overrides (`@media (max-width: 640px)`) and enforce single-column layout priorities. This eliminates the collision where the "← Back to app" button was covered by iPhone notches and the Dynamic Island (#61).
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 2.0.5 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
- **修复输入框向上滚动历史文字穿透与遮挡缺失 (#69)**:在玻璃与云母浮动模式下,为底部输入框座舱还原与全局底盘无缝对齐的遮光底板,并保留上沿平滑渐隐,彻底解决向上浏览历史消息时正文透过输入框卡片和状态栏重叠穿透的问题;同时保证滚至底部时最后一条消息完整可见不被遮蔽。
|
|
6
|
+
- **消除云母浮动顶栏正文穿透**:修复悬浮标题栏在滚动时底层正文透过标题卡片、顶部外边距和圆角切角露出的问题,通过平滑渐隐优雅阻断穿透内容,并完整保留标题栏边框、阴影与磨砂微质感。
|
|
7
|
+
|
|
8
|
+
## 2.0.4 (2026-10-29)
|
|
9
|
+
|
|
10
|
+
- **支持最新宿主版本**:拓展宿主兼容矩阵,正式支持 DeepSeek Harness 最新 RC(`0.2.1-rc.4`)与 alpha 版本(`0.2.2-alpha.2`)。
|
|
11
|
+
- **修复设置页排版错位与多列撕裂 (#68)**:适配最新宿主设置页布局,解决设置弹窗横向撕裂为多列、内容宽度异常以及标题折行重叠的问题,恢复标准左右双栏与顶栏展示。
|
|
12
|
+
- **保护用户主题偏好与深色显示**:解决在跟随系统深色或自选深色主题时,停用主题插件或切回默认导致界面意外变白的问题,准确保留用户的暗色偏好。
|
|
13
|
+
- **消除设置弹窗开窗闪烁**:修复设置皮肤在停用状态下打开设置弹窗时出现的窗口缩放闪屏现象。
|
|
14
|
+
- **优化界面细节与排版瑕疵**:
|
|
15
|
+
- 修复云母浮动模式下设置顶栏与内容卡片的右侧对齐;
|
|
16
|
+
- 消除输入框底部统计栏背后的灰色斑块;
|
|
17
|
+
- 恢复会话轨迹视图的满宽铺展,避免在云母模式下被异常缩窄;
|
|
18
|
+
- 消除插件管理页滚动吸顶时的灰蓝色色差条带。
|
|
19
|
+
|
|
3
20
|
## 2.0.3 (2026-10-28)
|
|
4
21
|
|
|
5
22
|
- **适配移动端 iOS 安全区与单列排版**:在设置工作台移动端样式(`@media (max-width: 640px)`)中增加标准 `env(safe-area-inset-*)` 安全区边距,并强化移动端单列覆盖优先级,彻底解决 iPhone 灵动岛/刘海遮挡「← 返回应用」按钮导致无法点击的问题(#61)。
|
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Quick actions directly on session rows: Pin, Rename, Unread marker, Archive, For
|
|
|
122
122
|
## Host Compatibility
|
|
123
123
|
|
|
124
124
|
* **Supported Generations**: Full DeepSeek Harness `0.2.x` line (`>=0.2.0-rc.1 <0.3.0-0`);
|
|
125
|
-
* **Verified Builds**: Tested and verified on `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, `0.2.1-rc.2`,
|
|
125
|
+
* **Verified Builds**: Tested and verified on `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, and `0.2.2-alpha.2`, with automatic forwards compatibility for subsequent RCs;
|
|
126
126
|
* **Runtime Requirements**: Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
|
|
127
127
|
|
|
128
128
|
> ⚠️ **Notice**: Do not enable Codex UI and `ds-bot` concurrently. Both redesign sidebar and session slots with overlapping layout mechanics. Disable or uninstall one before enabling the other.
|
package/README.zh-CN.md
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
## 宿主兼容性
|
|
123
123
|
|
|
124
124
|
* **支持范围**:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`);
|
|
125
|
-
* **实测验证**:已在 `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`、`0.2.1-rc.3` 深度验证通过,并向后自动兼容后续 RC 与日常构建;
|
|
125
|
+
* **实测验证**:已在 `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4`、`0.2.2-alpha.2` 深度验证通过,并向后自动兼容后续 RC 与日常构建;
|
|
126
126
|
* **环境要求**:Node.js `^22.19.0 || >=24.0.0`,pnpm `^11.0.0`。
|
|
127
127
|
|
|
128
128
|
> ⚠️ **互斥提示**:请勿同时启用 Codex UI 与 `ds-bot`。两者均重塑侧栏与主会话插槽,功能重叠。启用前请先停用或卸载另一个。
|
package/lib/client.js
CHANGED
|
@@ -159,7 +159,7 @@ window.__ModuleLoader__.load({
|
|
|
159
159
|
* (item II — lazy CSS), so editing the stylesheet means editing
|
|
160
160
|
* glass.module.css and rebuilding.
|
|
161
161
|
*/
|
|
162
|
-
const GLASS_CSS_TEXT = "[data-dsh-glass] body{--dsh-glass-card:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-raised:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(64% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-hover:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(76% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 18%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff6b;--dsh-glass-drop:0 10px 32px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 38%, transparent);--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-ground:color-mix(in srgb, color-mix(in srgb, var(--dsw-alias-bg-base), #fff calc(var(--dsh-glass-brightness-white,0) * 100%)), #000 calc(var(--dsh-glass-brightness-black,0) * 100%));--dsh-glass-ambience:calc(1 - var(--dsh-glass-brightness-white,0) - var(--dsh-glass-brightness-black,0));--dsh-glass-wash-tint:#fff;--dsh-glass-wash-mix:22%}[data-dsh-glass] body[data-ds-dark-theme]{--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 24%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 16%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff14;--dsh-glass-drop:0 10px 32px #02060e73;--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-wash-tint:var(--dsw-alias-bg-layer-1);--dsh-glass-wash-mix:68%}[data-dsh-glass] body,[data-dsh-glass] [data-dsh-glass-ground-sample]{background: radial-gradient(58% 46% at 18% 6%, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) calc(12% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 68%), radial-gradient(48% 42% at 86% 14%, color-mix(in srgb, var(--dsw-alias-state-success-tertiary) calc(10% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))) 0%, var(--dsh-glass-ground) 55%, color-mix(in srgb, var(--dsh-glass-ground), #000 calc(5% * var(--dsh-glass-ambience))) 100%)}[data-dsh-glass] [data-dsh-glass-frame],[data-dsh-glass] [data-phase],[data-dsh-glass] [data-dsh-glass-details],[data-dsh-glass-float] [data-dsh-glass-frame]>[class*=centerCol]{background:0 0}[data-dsh-glass-float] [data-phase=active] header{z-index:8;position:relative}[data-dsh-glass-float] [class*=banner]{position:static}[data-dsh-glass-float] [data-phase=active] [data-conversation-scroll]{margin-top:-95px;padding-top:107px}[data-dsh-glass] [data-phase] [class*=composerSeat][class*=composerSeat]{background:0 0}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock],[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]{position:relative}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock]:before,[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]:before{content:\"\";left:calc(-1 * var(--dsh-composer-side-clearance,16px));right:calc(-1 * var(--dsh-composer-side-clearance,16px));z-index:-1;pointer-events:none;background:color-mix(in srgb, color-mix(in srgb, var(--dsh-glass-ground), #000 calc(5% * var(--dsh-glass-ambience))) calc(70% + 10% * var(--dsh-glass-frost,1)), transparent);height:calc(100% + 12px);backdrop-filter:blur(var(--dsh-glass-blur,14px));position:absolute;bottom:-4px;-webkit-mask-image:linear-gradient(#0000 0,#000 18px);mask-image:linear-gradient(#0000 0,#000 18px)}[data-dsh-glass] [data-dsh-glass-fade]{z-index:7;pointer-events:none;backdrop-filter:blur(5px);background:#ffffff2e;height:13px;position:fixed;left:0;right:0}[data-dsh-glass] body[data-ds-dark-theme] [data-dsh-glass-fade]{background:#00000024}[data-dsh-glass] [data-dsh-glass-fade=top]{top:0;-webkit-mask-image:linear-gradient(#000 0%,#0000 100%);mask-image:linear-gradient(#000 0%,#0000 100%)}[data-dsh-glass][data-windows-titlebar] [data-dsh-glass-fade=top]{display:none}[data-dsh-glass] [data-dsh-glass-fade=bottom]{bottom:0;-webkit-mask-image:linear-gradient(#0000 0%,#000 100%);mask-image:linear-gradient(#0000 0%,#000 100%)}[data-dsh-glass-float] [data-menu-material=translucent],[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-float] [role=dialog],[data-dsh-glass-float] [role=alert],[data-dsh-glass-float] [data-trigger-menu],[data-dsh-glass-float] [data-dsh-glass-surface]{border-radius:14px}[data-dsh-glass-float] [role=menuitem],[data-dsh-glass-float] [role=tooltip],[data-dsh-glass-float] [class*=pill]{border-radius:8px}[data-dsh-glass-float] button[class*=button]{border-radius:10px}[data-dsh-glass-float] [class*=iconButton],[data-dsh-glass-float] [class*=searchButton]{border-radius:8px}[data-dsh-glass-float] [class*=block]{--dsl-code-block-border-radius:14px;--dsl-diff-radius:14px;--dsl-read-radius:14px;--dsl-terminal-radius:14px;--dsl-web-radius:14px;--dsl-search-radius:14px;border-radius:14px}[data-dsh-glass-float] [data-dsh-glass-add]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-add]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-dsh-glass-surface]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-surface]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-conversation-scroll] [class*=bubble]{border:1px solid var(--dsh-glass-rim-soft);background:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(46% * var(--dsh-glass-frost,1)), transparent);border-radius:14px}[data-dsh-glass-float] [class*=card]{border-radius:14px}[data-dsh-glass-float] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]),[data-dsh-glass-compat] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]){background:color-mix(in srgb, var(--dsw-alias-bg-module-platform) calc(52% * var(--dsh-glass-frost,1)), transparent);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-changed-files],html[data-dsh-glass-float] [data-presented-file]{--changes-fill:var(--dsh-glass-card);--deliverable-fill:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-presented-file],html[data-dsh-glass-float] [data-changed-files]{background:var(--dsh-glass-card)}html[data-dsh-glass-float] [data-changed-files]>:first-child,html[data-dsh-glass-float] [data-changed-files] ul>li>:first-child,html[data-dsh-glass-float] [data-changed-files] ul{background:0 0}html[data-dsh-glass-float] [data-changed-files] ul{border-top:.5px solid var(--dsh-glass-rim-soft)}html[data-dsh-glass-float] [data-changed-files]>:first-child>:first-child,html[data-dsh-glass-float] [data-presented-file]>:first-child{background:var(--dsh-glass-card-raised)}html[data-dsh-glass-float] [data-turn-trigger]{background:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-turn-trigger]:hover{background:var(--dsh-glass-card-hover)}[data-dsh-glass] [data-dsh-glass-settings]{--dsh-glass-settings-raised:calc(38% + 38% * var(--dsh-glass-frost,1));--dsh-glass-settings-soft:calc(30% + 30% * var(--dsh-glass-frost,1));--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-750) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass] body:not([data-ds-dark-theme]) [data-dsh-glass-settings]{--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-60) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-100) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-75) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]){width:100%;max-width:min(calc(var(--dsh-chat-user-width,clamp(680px, calc(var(--dsh-conversation-column-width,1500px) * .64), 920px)) + 32px), calc(100% - 32px));border:1px solid var(--dsh-glass-rim);background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px;margin:12px auto 0;padding:10px 16px 8px}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]):after{display:none}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [data-phase] header:not([class*=headerBlank]){width:auto;max-width:none;margin-left:28px;margin-right:16px}[data-dsh-glass-float] [class*=sidebarCol]{--dsw-specific-sidebar-fill:transparent;z-index:9;border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-drop);border-radius:20px;margin:12px;padding:10px 12px 14px;position:relative;overflow:hidden}[data-dsh-glass-float] [class*=sidebarCol]:before{content:\"\";border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);z-index:-1;pointer-events:none;transition:border-radius .15s var(--ds-ease-in-out);position:absolute;inset:0}[data-dsh-glass-float] body{--dsw-specific-sidebar-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))))!important}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [class*=sidebarCol]{transition:margin .15s var(--ds-ease-in-out), border-radius .15s var(--ds-ease-in-out);border-radius:16px;margin:12px -12px 12px 12px;padding:0}[data-dsh-glass-float] [data-dsh-glass-frame]:not([data-sidebar-collapsed]) [data-dsh-glass-sidebar-root]{width:100%!important}[data-dsh-glass-float] [data-dsh-glass-trajectory]{width:calc(100% - 32px);max-width:min(calc(var(--dsh-chat-user-width,clamp(680px, calc(var(--dsh-conversation-column-width,1500px) * .64), 920px)) + 32px), calc(100% - 32px));border:1px solid var(--dsh-glass-rim);background:var(--dsh-glass-card);height:calc(100% - 20px);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);border-radius:20px;margin:8px auto 12px;overflow:hidden}[data-dsh-glass-float] [data-dsh-glass-trajectory] [role=toolbar],[data-dsh-glass-float] [data-dsh-glass-trajectory] section[aria-label=Trajectory\\ timeline]{background:0 0}[data-dsh-glass-float] [data-composer-card],[data-dsh-glass-float] [data-composer-card]:after{border-radius:24px}[data-dsh-glass-float] [data-composer-card]{z-index:8;isolation:isolate;border:1px solid var(--dsh-glass-rim-strong);box-shadow:var(--dsh-glass-input-shadow);background:0 0;position:relative}[data-dsh-glass-float] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px));pointer-events:none;position:absolute;inset:0}[data-dsh-glass-float] [data-dsh-glass-inputbar]:not([class*=hero]):not(:has([data-dsh-glass-stats])){padding-bottom:12px}[data-dsh-glass-float] [role=treeitem][aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}[data-dsh-glass-float] button[class*=button]:hover:not(:disabled),[data-dsh-glass-float] [role=menuitem]:hover:not(:disabled){box-shadow:0 0 12px color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 20%, transparent)}[data-dsh-glass-float] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] body[data-ds-dark-theme] [data-menu-material=translucent]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim-soft);outline-offset:-1px}[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *){background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-menu-material=translucent]:has([role=group]>[role=menuitemradio]){--dsw-menu-surface-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 70%, transparent)}[data-dsh-glass-float] [data-menu-group]:has(>[role=menuitemradio])>[data-menu-group-heading]{background:var(--dsh-glass-card-raised);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:999px;align-items:center;width:fit-content;margin:3px 0 5px 6px;padding:3px 10px;display:inline-flex}[data-dsh-glass-float] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px}[data-dsh-glass] [data-conversation-scroll]{text-shadow:0 0 1px #ffffff80}[data-dsh-glass] body[data-ds-dark-theme] [data-conversation-scroll]{text-shadow:0 0 1px #0006}[data-dsh-glass-float] [data-dsh-glass-inputbar] [data-slot]{color:var(--dsw-alias-label-secondary)}[data-dsh-glass]{--dsh-glass-entry-scale:1}[data-dsh-glass-compat]{--dsh-glass-entry-scale:0}[data-dsh-glass] [data-testid^=view-]{animation:dsh-glass-in calc(.26s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}[data-dsh-glass] [data-tool]{animation:dsh-glass-rise calc(.3s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out) both}[data-dsh-glass] [role=dialog]{animation:dsh-glass-dialog-in calc(.24s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}@keyframes dsh-glass-in{0%{opacity:0}}@keyframes dsh-glass-rise{0%{opacity:0;transform:translateY(6px)}}@keyframes dsh-glass-dialog-in{0%{opacity:0;transform:translateY(8px)scale(.985)}}[data-dsh-glass] :focus-visible{outline:2px solid color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 85%, transparent);outline-offset:1px}[data-dsh-glass] ::selection{background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 35%, transparent)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-sidebar-right-panel][data-sidebar-right-open],[data-dsh-glass-compat] [data-sidebar-right-panel][data-sidebar-right-open] [class*=panel]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{background:var(--dsh-glass-card-raised)}[data-dsh-glass-compat] [data-composer-card]{isolation:isolate;backdrop-filter:none;background:0 0;position:relative}[data-dsh-glass-compat] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card-raised);backdrop-filter:blur(12px);pointer-events:none;position:absolute;inset:0}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *):not(:focus-visible),[data-dsh-glass-compat] [data-composer-card]:not(:focus-visible),[data-dsh-glass-compat] [class*=popover]:not(:focus-visible),[data-dsh-glass-compat] [class*=dropdown]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim);outline-offset:-1px}[data-dsh-glass-compat] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,12px))}@media (prefers-reduced-motion:reduce){[data-dsh-glass] [data-testid^=view-],[data-dsh-glass] [data-tool],[data-dsh-glass] [role=dialog]{animation:none}}";
|
|
162
|
+
const GLASS_CSS_TEXT = "[data-dsh-glass] body{--dsh-glass-card:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-raised:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(64% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-hover:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(76% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 18%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff6b;--dsh-glass-drop:0 10px 32px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 38%, transparent);--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-ground:color-mix(in srgb, color-mix(in srgb, var(--dsw-alias-bg-base), #fff calc(var(--dsh-glass-brightness-white,0) * 100%)), #000 calc(var(--dsh-glass-brightness-black,0) * 100%));--dsh-glass-ambience:calc(1 - var(--dsh-glass-brightness-white,0) - var(--dsh-glass-brightness-black,0));--dsh-glass-wash-tint:#fff;--dsh-glass-wash-mix:22%}[data-dsh-glass] body[data-ds-dark-theme]{--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 24%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 16%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff14;--dsh-glass-drop:0 10px 32px #02060e73;--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-wash-tint:var(--dsw-alias-bg-layer-1);--dsh-glass-wash-mix:68%}[data-dsh-glass] body,[data-dsh-glass] [data-dsh-glass-ground-sample]{background: radial-gradient(58% 46% at 18% 6%, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) calc(12% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 68%), radial-gradient(48% 42% at 86% 14%, color-mix(in srgb, var(--dsw-alias-state-success-tertiary) calc(10% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))) 0%, var(--dsh-glass-ground) 55%, color-mix(in srgb, var(--dsh-glass-ground), #000 calc(5% * var(--dsh-glass-ambience))) 100%)}[data-dsh-glass] [data-dsh-glass-frame],[data-dsh-glass] [data-phase],[data-dsh-glass] [data-dsh-glass-details],[data-dsh-glass-float] [data-dsh-glass-frame]>[class*=centerCol]{background:0 0}[data-dsh-glass-float] [data-phase=active] header{z-index:8;position:relative}[data-dsh-glass-float] [class*=banner]{position:static}[data-dsh-glass-float] [data-phase=active] [data-conversation-scroll]{margin-top:-95px;padding-top:107px}[data-dsh-glass] [data-phase] [class*=composerSeat][class*=composerSeat]{background:0 0}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock],[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]{position:relative}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock]:before,[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]:before{display:none!important;content:none!important}[data-dsh-glass] [data-dsh-glass-fade]{z-index:7;pointer-events:none;backdrop-filter:blur(5px);background:#ffffff2e;height:13px;position:fixed;left:0;right:0}[data-dsh-glass] body[data-ds-dark-theme] [data-dsh-glass-fade]{background:#00000024}[data-dsh-glass] [data-dsh-glass-fade=top]{top:0;-webkit-mask-image:linear-gradient(#000 0%,#0000 100%);mask-image:linear-gradient(#000 0%,#0000 100%)}[data-dsh-glass][data-windows-titlebar] [data-dsh-glass-fade=top]{display:none}[data-dsh-glass] [data-dsh-glass-fade=bottom]{bottom:0;-webkit-mask-image:linear-gradient(#0000 0%,#000 100%);mask-image:linear-gradient(#0000 0%,#000 100%)}[data-dsh-glass-float] [data-menu-material=translucent],[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-float] [role=dialog],[data-dsh-glass-float] [role=alert],[data-dsh-glass-float] [data-trigger-menu],[data-dsh-glass-float] [data-dsh-glass-surface]{border-radius:14px}[data-dsh-glass-float] [role=menuitem],[data-dsh-glass-float] [role=tooltip],[data-dsh-glass-float] [class*=pill]{border-radius:8px}[data-dsh-glass-float] button[class*=button]{border-radius:10px}[data-dsh-glass-float] [class*=iconButton],[data-dsh-glass-float] [class*=searchButton]{border-radius:8px}[data-dsh-glass-float] [class*=block]{--dsl-code-block-border-radius:14px;--dsl-diff-radius:14px;--dsl-read-radius:14px;--dsl-terminal-radius:14px;--dsl-web-radius:14px;--dsl-search-radius:14px;border-radius:14px}[data-dsh-glass-float] [data-dsh-glass-add]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-add]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-dsh-glass-surface]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-surface]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-conversation-scroll] [class*=bubble]{border:1px solid var(--dsh-glass-rim-soft);background:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(46% * var(--dsh-glass-frost,1)), transparent);border-radius:14px}[data-dsh-glass-float] [class*=card]{border-radius:14px}[data-dsh-glass-float] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]),[data-dsh-glass-compat] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]){background:color-mix(in srgb, var(--dsw-alias-bg-module-platform) calc(52% * var(--dsh-glass-frost,1)), transparent);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-changed-files],html[data-dsh-glass-float] [data-presented-file]{--changes-fill:var(--dsh-glass-card);--deliverable-fill:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-presented-file],html[data-dsh-glass-float] [data-changed-files]{background:var(--dsh-glass-card)}html[data-dsh-glass-float] [data-changed-files]>:first-child,html[data-dsh-glass-float] [data-changed-files] ul>li>:first-child,html[data-dsh-glass-float] [data-changed-files] ul{background:0 0}html[data-dsh-glass-float] [data-changed-files] ul{border-top:.5px solid var(--dsh-glass-rim-soft)}html[data-dsh-glass-float] [data-changed-files]>:first-child>:first-child,html[data-dsh-glass-float] [data-presented-file]>:first-child{background:var(--dsh-glass-card-raised)}html[data-dsh-glass-float] [data-turn-trigger]{background:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-turn-trigger]:hover{background:var(--dsh-glass-card-hover)}[data-dsh-glass] [data-dsh-glass-settings]{--dsh-glass-settings-raised:calc(38% + 38% * var(--dsh-glass-frost,1));--dsh-glass-settings-soft:calc(30% + 30% * var(--dsh-glass-frost,1));--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-750) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass] body:not([data-ds-dark-theme]) [data-dsh-glass-settings]{--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-60) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-100) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-75) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]){width:100%;max-width:min(calc(var(--dsh-chat-user-width,clamp(680px, calc(var(--dsh-conversation-column-width,1500px) * .64), 920px)) + 32px), calc(100% - 32px));border:1px solid var(--dsh-glass-rim);background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px;margin:12px auto 0;padding:10px 16px 8px}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]):after{display:none}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [data-phase] header:not([class*=headerBlank]){width:auto;max-width:none;margin-left:28px;margin-right:16px}[data-dsh-glass-float] [class*=sidebarCol]{--dsw-specific-sidebar-fill:transparent;z-index:9;border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-drop);border-radius:20px;margin:12px;padding:10px 12px 14px;position:relative;overflow:hidden}[data-dsh-glass-float] [class*=sidebarCol]:before{content:\"\";border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);z-index:-1;pointer-events:none;transition:border-radius .15s var(--ds-ease-in-out);position:absolute;inset:0}[data-dsh-glass-float] body{--dsw-specific-sidebar-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))))!important}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [class*=sidebarCol]{transition:margin .15s var(--ds-ease-in-out), border-radius .15s var(--ds-ease-in-out);border-radius:16px;margin:12px -12px 12px 12px;padding:0}[data-dsh-glass-float] [data-dsh-glass-frame]:not([data-sidebar-collapsed]) [data-dsh-glass-sidebar-root]{width:100%!important}[data-dsh-glass-float] [data-dsh-glass-trajectory]{width:100%!important;max-width:none!important;height:100%!important;margin:0!important;border:none!important;box-shadow:none!important;border-radius:0!important;overflow:hidden}[data-dsh-glass-float] [data-dsh-glass-trajectory] [role=toolbar],[data-dsh-glass-float] [data-dsh-glass-trajectory] section[aria-label=Trajectory\\ timeline]{background:0 0}[data-dsh-glass-float] [data-composer-card],[data-dsh-glass-float] [data-composer-card]:after{border-radius:24px}[data-dsh-glass-float] [data-composer-card]{z-index:8;isolation:isolate;border:1px solid var(--dsh-glass-rim-strong);box-shadow:var(--dsh-glass-input-shadow);background:0 0;position:relative}[data-dsh-glass-float] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px));pointer-events:none;position:absolute;inset:0}[data-dsh-glass-float] [data-dsh-glass-inputbar]:not([class*=hero]):not(:has([data-dsh-glass-stats])){padding-bottom:12px}[data-dsh-glass-float] [role=treeitem][aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}[data-dsh-glass-float] button[class*=button]:hover:not(:disabled),[data-dsh-glass-float] [role=menuitem]:hover:not(:disabled){box-shadow:0 0 12px color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 20%, transparent)}[data-dsh-glass-float] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] body[data-ds-dark-theme] [data-menu-material=translucent]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim-soft);outline-offset:-1px}[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *){background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-menu-material=translucent]:has([role=group]>[role=menuitemradio]){--dsw-menu-surface-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 70%, transparent)}[data-dsh-glass-float] [data-menu-group]:has(>[role=menuitemradio])>[data-menu-group-heading]{background:var(--dsh-glass-card-raised);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:999px;align-items:center;width:fit-content;margin:3px 0 5px 6px;padding:3px 10px;display:inline-flex}[data-dsh-glass-float] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px}[data-dsh-glass] [data-conversation-scroll]{text-shadow:0 0 1px #ffffff80}[data-dsh-glass] body[data-ds-dark-theme] [data-conversation-scroll]{text-shadow:0 0 1px #0006}[data-dsh-glass-float] [data-dsh-glass-inputbar] [data-slot]{color:var(--dsw-alias-label-secondary)}[data-dsh-glass]{--dsh-glass-entry-scale:1}[data-dsh-glass-compat]{--dsh-glass-entry-scale:0}[data-dsh-glass] [data-testid^=view-]{animation:dsh-glass-in calc(.26s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}[data-dsh-glass] [data-tool]{animation:dsh-glass-rise calc(.3s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out) both}[data-dsh-glass] [role=dialog]{animation:dsh-glass-dialog-in calc(.24s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}@keyframes dsh-glass-in{0%{opacity:0}}@keyframes dsh-glass-rise{0%{opacity:0;transform:translateY(6px)}}@keyframes dsh-glass-dialog-in{0%{opacity:0;transform:translateY(8px)scale(.985)}}[data-dsh-glass] :focus-visible{outline:2px solid color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 85%, transparent);outline-offset:1px}[data-dsh-glass] ::selection{background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 35%, transparent)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-sidebar-right-panel][data-sidebar-right-open],[data-dsh-glass-compat] [data-sidebar-right-panel][data-sidebar-right-open] [class*=panel]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{background:var(--dsh-glass-card-raised)}[data-dsh-glass-compat] [data-composer-card]{isolation:isolate;backdrop-filter:none;background:0 0;position:relative}[data-dsh-glass-compat] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card-raised);backdrop-filter:blur(12px);pointer-events:none;position:absolute;inset:0}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *):not(:focus-visible),[data-dsh-glass-compat] [data-composer-card]:not(:focus-visible),[data-dsh-glass-compat] [class*=popover]:not(:focus-visible),[data-dsh-glass-compat] [class*=dropdown]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim);outline-offset:-1px}[data-dsh-glass-compat] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,12px))}@media (prefers-reduced-motion:reduce){[data-dsh-glass] [data-testid^=view-],[data-dsh-glass] [data-tool],[data-dsh-glass] [role=dialog]{animation:none}}";
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/client/theme/glass-seams.ts
|
|
165
165
|
const SEAMS = [
|
|
@@ -292,6 +292,114 @@ window.__ModuleLoader__.load({
|
|
|
292
292
|
const GLASS_FLOAT_ATTRIBUTE = "data-dsh-glass-float";
|
|
293
293
|
const GLASS_COMPAT_ATTRIBUTE = "data-dsh-glass-compat";
|
|
294
294
|
const STYLE_TAG_ID = "dsh-codex-ui-glass-style";
|
|
295
|
+
/** 玻璃层追加样式(拼在生成 CSS 之后,同特异性下后者胜出);导出以便契约测试断言 */
|
|
296
|
+
const GLASS_EXTRA_CSS = `
|
|
297
|
+
/* 插件页顶栏色差彻底消除:静止与滚动吸顶均保持底板透明,与全局背景底色与渐变自然融为一体;吸顶时呈现纯净磨砂与细线悬浮效果 */
|
|
298
|
+
[data-dsh-glass] [data-plugin-bar]:before,
|
|
299
|
+
[data-dsh-glass] [class*="pageBar"]:before {
|
|
300
|
+
background: transparent !important;
|
|
301
|
+
backdrop-filter: none !important;
|
|
302
|
+
-webkit-backdrop-filter: none !important;
|
|
303
|
+
transition: background 0.15s ease !important;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
[data-dsh-glass] [data-plugin-bar][data-scrolled]:before,
|
|
307
|
+
[data-dsh-glass] [data-plugin-bar][data-compact]:before,
|
|
308
|
+
[data-dsh-glass] [class*="pageBar"][data-scrolled]:before,
|
|
309
|
+
[data-dsh-glass] [class*="pageBar"][data-compact]:before {
|
|
310
|
+
background: transparent !important;
|
|
311
|
+
backdrop-filter: blur(24px) !important;
|
|
312
|
+
-webkit-backdrop-filter: blur(24px) !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
[data-dsh-glass] [data-plugin-bar][data-compact]:after,
|
|
316
|
+
[data-dsh-glass] [class*="pageBar"][data-compact]:after,
|
|
317
|
+
[data-dsh-glass] [data-plugin-bar][data-scrolled]:after,
|
|
318
|
+
[data-dsh-glass] [class*="pageBar"][data-scrolled]:after {
|
|
319
|
+
content: "" !important;
|
|
320
|
+
position: absolute !important;
|
|
321
|
+
inset-inline: 0 !important;
|
|
322
|
+
bottom: 0 !important;
|
|
323
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
324
|
+
pointer-events: none !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* 轨迹视图保持 100% 满宽排版,严禁被云母浮动模式缩减为居中窄列与圆角卡片 */
|
|
328
|
+
[data-dsh-glass-float] [data-dsh-glass-trajectory],
|
|
329
|
+
[data-dsh-glass] [data-dsh-glass-trajectory],
|
|
330
|
+
[data-dsh-glass] [data-conversation-composer-overlay] {
|
|
331
|
+
width: 100% !important;
|
|
332
|
+
max-width: none !important;
|
|
333
|
+
height: 100% !important;
|
|
334
|
+
margin: 0 !important;
|
|
335
|
+
border: none !important;
|
|
336
|
+
box-shadow: none !important;
|
|
337
|
+
border-radius: 0 !important;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* 彻底清除输入框底部 dock / stats 区域的半透明灰色脏色块与切线 */
|
|
341
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [class*="dock"]:before,
|
|
342
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [data-composer-dock]:before,
|
|
343
|
+
[data-dsh-glass] [class*="dock"]:before,
|
|
344
|
+
[data-dsh-glass] [data-composer-dock]:before {
|
|
345
|
+
display: none !important;
|
|
346
|
+
content: none !important;
|
|
347
|
+
background: transparent !important;
|
|
348
|
+
backdrop-filter: none !important;
|
|
349
|
+
-webkit-backdrop-filter: none !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* 底盘渐变(与 body 上那份逐字一致)抽成变量挂在 body 上,供「座舱底板」和「云母浮动顶栏」共用:
|
|
353
|
+
这两处都需要一块与页面底色完全一致的实底来遮挡滚过的正文,而 background-attachment: fixed
|
|
354
|
+
能把渐变钉到视口上,画出来与页面底色逐像素一致(实测 RGB 通道差 0),不会产生横向色差。 */
|
|
355
|
+
[data-dsh-glass] body {
|
|
356
|
+
--dsh-glass-ground-layers:
|
|
357
|
+
radial-gradient(58% 46% at 18% 6%, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) calc(12% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 68%),
|
|
358
|
+
radial-gradient(48% 42% at 86% 14%, color-mix(in srgb, var(--dsw-alias-state-success-tertiary) calc(10% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 62%),
|
|
359
|
+
linear-gradient(165deg, color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))) 0%, var(--dsh-glass-ground) 55%, color-mix(in srgb, var(--dsh-glass-ground), #000 calc(5% * var(--dsh-glass-ambience))) 100%);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* 输入框座舱遮挡(Issue #69):玻璃层把宿主 composerSeat 的原生 36px 渐变底板覆盖成了透明,
|
|
363
|
+
向上回看历史时正文会直接穿过输入卡片与底部 dock 区域;参考插件那条 dock 遮罩带又因色差被移除,
|
|
364
|
+
于是两层遮挡同时缺失。这里补回遮挡,拆成「座舱底板 + 上沿渐隐带」两段:
|
|
365
|
+
底板铺与页面底色逐像素一致的底盘(见上),彻底挡住正文且无色带;
|
|
366
|
+
渐隐带用 mask 淡出同一块底盘,高度 16px 是因为实测最后一条消息底部与座舱顶部正好留白 16px,
|
|
367
|
+
只覆盖这段空白,滚到底时不会把最后一条消息一起淡掉。 */
|
|
368
|
+
[data-dsh-glass] [data-phase=active] [class*="composerSeat"][class*="composerSeat"],
|
|
369
|
+
[data-dsh-glass] [data-content-phase=active] [class*="composerSeat"][class*="composerSeat"] {
|
|
370
|
+
background: var(--dsh-glass-ground-layers);
|
|
371
|
+
background-attachment: fixed;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
[data-dsh-glass] [data-phase=active] [class*="composerSeat"][class*="composerSeat"]::before,
|
|
375
|
+
[data-dsh-glass] [data-content-phase=active] [class*="composerSeat"][class*="composerSeat"]::before {
|
|
376
|
+
content: "";
|
|
377
|
+
position: absolute;
|
|
378
|
+
inset-inline: 0;
|
|
379
|
+
bottom: 100%;
|
|
380
|
+
height: 16px;
|
|
381
|
+
z-index: -1;
|
|
382
|
+
pointer-events: none;
|
|
383
|
+
background: var(--dsh-glass-ground-layers);
|
|
384
|
+
background-attachment: fixed;
|
|
385
|
+
-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 100%);
|
|
386
|
+
mask-image: linear-gradient(180deg, transparent 0, #000 100%);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* 云母浮动顶栏同一缺陷:浮动排版把滚动内容上提 95px,让它从顶栏下方穿过(padding-top:107px 只保证
|
|
390
|
+
滚到顶部时内容起始于顶栏下方)。而顶栏底色只有 52% × frost(clear 预设仅 8.3%)、blur 为 0,
|
|
391
|
+
于是正文在「窗口顶部 12px 留白」「20px 圆角切角」「顶栏本体」三处都会透出来。
|
|
392
|
+
做法:不动顶栏本身(边框、阴影、磨砂全部保留),而是让滚动内容在顶栏区域内淡出。
|
|
393
|
+
注意 mask 的原点是滚动容器的 border box,不是视口:
|
|
394
|
+
- 容器顶 = 顶栏底边 97px − 95px(margin-top) = 2px
|
|
395
|
+
- 96px → 绝对 y=98,刚好压在顶栏底边 97 之下(alpha=0,顶栏内不留任何正文)
|
|
396
|
+
- 106px → 绝对 y=108,而内容最早从 y=109 开始(容器顶 2 + 宿主 padding-top 107)
|
|
397
|
+
所以渐入既盖满顶栏区域,又不会压暗任何正文。改这两个常量前先重算这三个数。 */
|
|
398
|
+
[data-dsh-glass-float] [data-phase=active] [data-conversation-scroll] {
|
|
399
|
+
-webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 96px, #000 106px);
|
|
400
|
+
mask-image: linear-gradient(180deg, transparent 0, transparent 96px, #000 106px);
|
|
401
|
+
}
|
|
402
|
+
`;
|
|
295
403
|
let styleTag = null;
|
|
296
404
|
let seamDisposer;
|
|
297
405
|
/**
|
|
@@ -310,7 +418,7 @@ window.__ModuleLoader__.load({
|
|
|
310
418
|
if (!styleTag) {
|
|
311
419
|
styleTag = document.createElement("style");
|
|
312
420
|
styleTag.id = STYLE_TAG_ID;
|
|
313
|
-
styleTag.textContent = GLASS_CSS_TEXT;
|
|
421
|
+
styleTag.textContent = GLASS_CSS_TEXT + GLASS_EXTRA_CSS;
|
|
314
422
|
}
|
|
315
423
|
}
|
|
316
424
|
if (!styleTag.isConnected) document.head.appendChild(styleTag);
|
|
@@ -1667,35 +1775,129 @@ window.__ModuleLoader__.load({
|
|
|
1667
1775
|
}
|
|
1668
1776
|
let lastAppliedTokens = [];
|
|
1669
1777
|
let hasAppliedCustomTheme = false;
|
|
1778
|
+
const THEME_SURFACE_STYLE_ID = "dsh-codex-ui-theme-surface-style";
|
|
1779
|
+
/**
|
|
1780
|
+
* 确保注入消除插件页等场景色差的全局表面样式
|
|
1781
|
+
*/
|
|
1782
|
+
function ensureThemeSurfaceStyles(doc = typeof document !== "undefined" ? document : void 0) {
|
|
1783
|
+
if (!doc) return;
|
|
1784
|
+
let tag = doc.getElementById(THEME_SURFACE_STYLE_ID);
|
|
1785
|
+
if (!tag) {
|
|
1786
|
+
tag = doc.createElement("style");
|
|
1787
|
+
tag.id = THEME_SURFACE_STYLE_ID;
|
|
1788
|
+
tag.textContent = `
|
|
1789
|
+
/* 彻底消除插件管理页顶栏与全局背景之间的色差:静止与滚动吸顶均保持底板透明,与全局背景底色与渐变自然融为一体;吸顶时仅保留微透磨砂与底部分割线 */
|
|
1790
|
+
[data-plugin-bar]:before,
|
|
1791
|
+
[class*="pageBar"]:before {
|
|
1792
|
+
background: transparent !important;
|
|
1793
|
+
backdrop-filter: none !important;
|
|
1794
|
+
-webkit-backdrop-filter: none !important;
|
|
1795
|
+
transition: background 0.15s ease !important;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
[data-plugin-bar][data-scrolled]:before,
|
|
1799
|
+
[data-plugin-bar][data-compact]:before,
|
|
1800
|
+
[class*="pageBar"][data-scrolled]:before,
|
|
1801
|
+
[class*="pageBar"][data-compact]:before {
|
|
1802
|
+
background: transparent !important;
|
|
1803
|
+
backdrop-filter: blur(24px) !important;
|
|
1804
|
+
-webkit-backdrop-filter: blur(24px) !important;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
[data-plugin-bar][data-compact]:after,
|
|
1808
|
+
[class*="pageBar"][data-compact]:after,
|
|
1809
|
+
[data-plugin-bar][data-scrolled]:after,
|
|
1810
|
+
[class*="pageBar"][data-scrolled]:after {
|
|
1811
|
+
content: "" !important;
|
|
1812
|
+
position: absolute !important;
|
|
1813
|
+
inset-inline: 0 !important;
|
|
1814
|
+
bottom: 0 !important;
|
|
1815
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
1816
|
+
pointer-events: none !important;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
/* 轨迹视图保持 100% 满宽排版,严禁被云母浮动模式缩减为居中窄列与圆角卡片 */
|
|
1820
|
+
[data-dsh-glass-float] [data-dsh-glass-trajectory],
|
|
1821
|
+
[data-dsh-glass] [data-dsh-glass-trajectory],
|
|
1822
|
+
[data-dsh-glass] [data-conversation-composer-overlay] {
|
|
1823
|
+
width: 100% !important;
|
|
1824
|
+
max-width: none !important;
|
|
1825
|
+
height: 100% !important;
|
|
1826
|
+
margin: 0 !important;
|
|
1827
|
+
border: none !important;
|
|
1828
|
+
box-shadow: none !important;
|
|
1829
|
+
border-radius: 0 !important;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
/* 彻底清除输入框底部 dock / stats 区域的半透明灰色脏色块与切线 */
|
|
1833
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [class*="dock"]:before,
|
|
1834
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [data-composer-dock]:before,
|
|
1835
|
+
[data-dsh-glass] [class*="dock"]:before,
|
|
1836
|
+
[data-dsh-glass] [data-composer-dock]:before {
|
|
1837
|
+
display: none !important;
|
|
1838
|
+
content: none !important;
|
|
1839
|
+
background: transparent !important;
|
|
1840
|
+
backdrop-filter: none !important;
|
|
1841
|
+
-webkit-backdrop-filter: none !important;
|
|
1842
|
+
}
|
|
1843
|
+
`;
|
|
1844
|
+
doc.head.appendChild(tag);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
function removeThemeSurfaceStyles(doc = typeof document !== "undefined" ? document : void 0) {
|
|
1848
|
+
if (!doc) return;
|
|
1849
|
+
const tag = doc.getElementById(THEME_SURFACE_STYLE_ID);
|
|
1850
|
+
if (tag) tag.remove();
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* 彻底恢复宿主官方原生主题呈现(严格遵循宿主 ui-layout / ThemePresenter 契约规范):
|
|
1854
|
+
* - 优先从 runtime.getTheme() 快照权威读取 active.colorScheme,未就绪时安全回退到 prefers-color-scheme;
|
|
1855
|
+
* - 严格约束 data-ds-theme-source 仅允许 'system' | 'dark' | 'light',严禁把自定义主题 id 写到根节点导致 Electron preload 越界;
|
|
1856
|
+
* - 绝不盲目删除 data-ds-dark-theme,确保深色模式下切回/停用时稳稳保持黑色底盘!
|
|
1857
|
+
*/
|
|
1858
|
+
function restoreNativeThemePresentation(themeRuntime) {
|
|
1859
|
+
if (typeof document === "undefined") return;
|
|
1860
|
+
const snap = (themeRuntime ?? globalThemeRuntime)?.getTheme?.();
|
|
1861
|
+
const systemDark = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1862
|
+
const scheme = snap?.active?.colorScheme ?? (systemDark ? "dark" : "light");
|
|
1863
|
+
const preference = snap?.preference ?? "system";
|
|
1864
|
+
const isDark = scheme === "dark";
|
|
1865
|
+
const source = preference === "system" ? "system" : scheme;
|
|
1866
|
+
document.documentElement.dataset.dsThemeSource = source;
|
|
1867
|
+
document.documentElement.style.colorScheme = scheme;
|
|
1868
|
+
if (isDark) document.body.setAttribute("data-ds-dark-theme", "");
|
|
1869
|
+
else document.body.removeAttribute("data-ds-dark-theme");
|
|
1870
|
+
}
|
|
1670
1871
|
/**
|
|
1671
1872
|
* 将指定主题精准映射并深度应用到真实 DOM(双重保险,彻底压制并覆盖官方亮暗限制)
|
|
1672
1873
|
*/
|
|
1673
1874
|
function applyThemeToDocument(themeOption, themeRuntime, syncRuntime = true) {
|
|
1674
1875
|
if (typeof document === "undefined") return;
|
|
1675
1876
|
if (!isThemeSubPluginEnabled()) {
|
|
1877
|
+
removeThemeSurfaceStyles();
|
|
1676
1878
|
for (const name of lastAppliedTokens) document.body.style.removeProperty(name);
|
|
1677
1879
|
lastAppliedTokens = [];
|
|
1678
1880
|
return;
|
|
1679
1881
|
}
|
|
1680
1882
|
const runtime = themeRuntime ?? globalThemeRuntime;
|
|
1681
1883
|
if (themeOption === "stock") {
|
|
1884
|
+
removeThemeSurfaceStyles();
|
|
1682
1885
|
for (const name of lastAppliedTokens) document.body.style.removeProperty(name);
|
|
1683
1886
|
lastAppliedTokens = [];
|
|
1684
|
-
if (hasAppliedCustomTheme) {
|
|
1685
|
-
document.documentElement.style.removeProperty("color-scheme");
|
|
1686
|
-
document.documentElement.removeAttribute("data-ds-theme-source");
|
|
1687
|
-
document.body.removeAttribute("data-ds-dark-theme");
|
|
1688
|
-
hasAppliedCustomTheme = false;
|
|
1689
|
-
}
|
|
1690
1887
|
if (syncRuntime && runtime && typeof runtime.setTheme === "function") try {
|
|
1691
1888
|
const activeId = runtime.getTheme?.()?.active?.id;
|
|
1692
1889
|
if (activeId && ALL_BUILTIN_THEMES.some((t) => t.id === activeId)) runtime.setTheme("system");
|
|
1693
1890
|
} catch {}
|
|
1891
|
+
if (hasAppliedCustomTheme) {
|
|
1892
|
+
restoreNativeThemePresentation(runtime);
|
|
1893
|
+
hasAppliedCustomTheme = false;
|
|
1894
|
+
}
|
|
1694
1895
|
return;
|
|
1695
1896
|
}
|
|
1696
1897
|
const targetTheme = ALL_BUILTIN_THEMES.find((t) => t.id === themeOption);
|
|
1697
1898
|
if (!targetTheme) return;
|
|
1698
1899
|
hasAppliedCustomTheme = true;
|
|
1900
|
+
ensureThemeSurfaceStyles();
|
|
1699
1901
|
if (syncRuntime && runtime && typeof runtime.setTheme === "function") try {
|
|
1700
1902
|
if (runtime.getTheme?.()?.active?.id !== targetTheme.id) runtime.setTheme(targetTheme.id);
|
|
1701
1903
|
} catch {}
|
|
@@ -1747,6 +1949,7 @@ window.__ModuleLoader__.load({
|
|
|
1747
1949
|
glow
|
|
1748
1950
|
});
|
|
1749
1951
|
}
|
|
1952
|
+
let globalCheckAndSync;
|
|
1750
1953
|
/**
|
|
1751
1954
|
* 挂载并观察主题与外观增强:
|
|
1752
1955
|
* - 注册全部 6 套内置主题至 ThemeRuntime;
|
|
@@ -1764,8 +1967,21 @@ window.__ModuleLoader__.load({
|
|
|
1764
1967
|
disposers.push(dispose);
|
|
1765
1968
|
}
|
|
1766
1969
|
};
|
|
1767
|
-
|
|
1768
|
-
|
|
1970
|
+
const applyCurrentState = (syncRuntime = true) => {
|
|
1971
|
+
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
1972
|
+
const state = getThemeSettingsState();
|
|
1973
|
+
applyGlassSettings({
|
|
1974
|
+
enabled: state.glassEnabled,
|
|
1975
|
+
mode: state.glassMode,
|
|
1976
|
+
preset: state.glassPreset,
|
|
1977
|
+
glow: state.glassGlow
|
|
1978
|
+
});
|
|
1979
|
+
applyThemeToDocument(state.themeOption, globalThemeRuntime ?? theme, syncRuntime);
|
|
1980
|
+
};
|
|
1981
|
+
if (theme) {
|
|
1982
|
+
registerThemesOnRuntime(theme);
|
|
1983
|
+
applyCurrentState(false);
|
|
1984
|
+
} else {
|
|
1769
1985
|
let retries = 0;
|
|
1770
1986
|
const timer = setInterval(() => {
|
|
1771
1987
|
if (disposed) {
|
|
@@ -1777,7 +1993,7 @@ window.__ModuleLoader__.load({
|
|
|
1777
1993
|
clearInterval(timer);
|
|
1778
1994
|
globalThemeRuntime = lateTheme;
|
|
1779
1995
|
registerThemesOnRuntime(lateTheme);
|
|
1780
|
-
|
|
1996
|
+
applyCurrentState(false);
|
|
1781
1997
|
} else if (++retries >= 100) {
|
|
1782
1998
|
clearInterval(timer);
|
|
1783
1999
|
console.warn("[codex-ui:theme] host theme service not ready after 5s polling, continuing with DOM-only fallback");
|
|
@@ -1786,17 +2002,6 @@ window.__ModuleLoader__.load({
|
|
|
1786
2002
|
disposers.push(() => clearInterval(timer));
|
|
1787
2003
|
}
|
|
1788
2004
|
let healTimer;
|
|
1789
|
-
const applyCurrentState = (syncRuntime = true) => {
|
|
1790
|
-
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
1791
|
-
const state = getThemeSettingsState();
|
|
1792
|
-
applyGlassSettings({
|
|
1793
|
-
enabled: state.glassEnabled,
|
|
1794
|
-
mode: state.glassMode,
|
|
1795
|
-
preset: state.glassPreset,
|
|
1796
|
-
glow: state.glassGlow
|
|
1797
|
-
});
|
|
1798
|
-
applyThemeToDocument(state.themeOption, theme, syncRuntime);
|
|
1799
|
-
};
|
|
1800
2005
|
const checkAndSync = async () => {
|
|
1801
2006
|
if (disposed) return;
|
|
1802
2007
|
const enabled = await checkThemeEnabled();
|
|
@@ -1807,21 +2012,12 @@ window.__ModuleLoader__.load({
|
|
|
1807
2012
|
for (const name of lastAppliedTokens) document.body.style.removeProperty(name);
|
|
1808
2013
|
lastAppliedTokens = [];
|
|
1809
2014
|
if (hasAppliedCustomTheme) {
|
|
1810
|
-
|
|
1811
|
-
document.documentElement.removeAttribute("data-ds-theme-source");
|
|
1812
|
-
document.body.removeAttribute("data-ds-dark-theme");
|
|
2015
|
+
restoreNativeThemePresentation(theme ?? globalThemeRuntime);
|
|
1813
2016
|
hasAppliedCustomTheme = false;
|
|
1814
2017
|
}
|
|
1815
2018
|
if (!healTimer) healTimer = setInterval(() => {
|
|
1816
2019
|
if (typeof document !== "undefined" && document.visibilityState === "visible") checkAndSync();
|
|
1817
|
-
},
|
|
1818
|
-
try {
|
|
1819
|
-
const curThemeRuntime = theme ?? globalThemeRuntime ?? ctx.get("theme");
|
|
1820
|
-
if (curThemeRuntime && typeof curThemeRuntime.setTheme === "function") {
|
|
1821
|
-
const cur = curThemeRuntime.getTheme?.()?.active?.id;
|
|
1822
|
-
if (ALL_BUILTIN_THEMES.some((t) => t.id === cur)) curThemeRuntime.setTheme("system");
|
|
1823
|
-
}
|
|
1824
|
-
} catch {}
|
|
2020
|
+
}, 3e3);
|
|
1825
2021
|
return;
|
|
1826
2022
|
}
|
|
1827
2023
|
if (healTimer) {
|
|
@@ -1829,22 +2025,67 @@ window.__ModuleLoader__.load({
|
|
|
1829
2025
|
healTimer = void 0;
|
|
1830
2026
|
}
|
|
1831
2027
|
setThemeSubPluginEnabled(true);
|
|
2028
|
+
applyCurrentState(true);
|
|
1832
2029
|
};
|
|
2030
|
+
globalCheckAndSync = checkAndSync;
|
|
1833
2031
|
const onFocus = () => {
|
|
1834
|
-
if (!
|
|
2032
|
+
if (!disposed) checkAndSync();
|
|
1835
2033
|
};
|
|
1836
2034
|
if (typeof window !== "undefined") {
|
|
1837
2035
|
window.addEventListener("focus", onFocus);
|
|
1838
2036
|
disposers.push(() => window.removeEventListener("focus", onFocus));
|
|
1839
2037
|
}
|
|
2038
|
+
if (typeof document !== "undefined") {
|
|
2039
|
+
let clickTimer;
|
|
2040
|
+
const onClick = (e) => {
|
|
2041
|
+
if (disposed) return;
|
|
2042
|
+
if (e.target?.closest?.("[data-plugin-rows], [data-plugin-row], [data-shortcut-modal=\"settings\"], [role=\"switch\"]")) {
|
|
2043
|
+
if (clickTimer) clearTimeout(clickTimer);
|
|
2044
|
+
clickTimer = setTimeout(() => {
|
|
2045
|
+
if (!disposed) checkAndSync();
|
|
2046
|
+
}, 150);
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2049
|
+
document.addEventListener("click", onClick, true);
|
|
2050
|
+
disposers.push(() => {
|
|
2051
|
+
if (clickTimer) clearTimeout(clickTimer);
|
|
2052
|
+
document.removeEventListener("click", onClick, true);
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
if (typeof MutationObserver !== "undefined" && typeof document !== "undefined") {
|
|
2056
|
+
let settingsObserverTimer;
|
|
2057
|
+
const observer = new MutationObserver((mutations) => {
|
|
2058
|
+
if (disposed) return;
|
|
2059
|
+
let touchesSettings = false;
|
|
2060
|
+
for (const m of mutations) if (m.target instanceof HTMLElement && (m.target.closest("[data-shortcut-modal=\"settings\"]") || m.target.closest("[data-plugin-rows]")) || [...m.addedNodes, ...m.removedNodes].some((n) => n instanceof HTMLElement && (n.getAttribute?.("data-shortcut-modal") === "settings" || n.querySelector?.("[data-shortcut-modal=\"settings\"]")))) {
|
|
2061
|
+
touchesSettings = true;
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
2064
|
+
if (touchesSettings) {
|
|
2065
|
+
if (settingsObserverTimer) clearTimeout(settingsObserverTimer);
|
|
2066
|
+
settingsObserverTimer = setTimeout(() => {
|
|
2067
|
+
if (!disposed) checkAndSync();
|
|
2068
|
+
}, 150);
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
observer.observe(document.body, {
|
|
2072
|
+
childList: true,
|
|
2073
|
+
subtree: true,
|
|
2074
|
+
attributes: true,
|
|
2075
|
+
attributeFilter: ["data-state", "aria-checked"]
|
|
2076
|
+
});
|
|
2077
|
+
disposers.push(() => {
|
|
2078
|
+
if (settingsObserverTimer) clearTimeout(settingsObserverTimer);
|
|
2079
|
+
observer.disconnect();
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
1840
2082
|
checkAndSync();
|
|
1841
2083
|
applyCurrentState(false);
|
|
1842
2084
|
const offThemeChange = ctx.on("theme/change", () => {
|
|
1843
2085
|
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
1844
2086
|
const state = getThemeSettingsState();
|
|
1845
2087
|
if (state.themeOption === "stock") return;
|
|
1846
|
-
|
|
1847
|
-
if (targetTheme) for (const [name, value] of Object.entries(targetTheme.tokens)) document.body.style.setProperty(name, value);
|
|
2088
|
+
applyThemeToDocument(state.themeOption, void 0, false);
|
|
1848
2089
|
});
|
|
1849
2090
|
const unsubscribe = subscribeThemeSettings(() => {
|
|
1850
2091
|
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
@@ -1852,6 +2093,7 @@ window.__ModuleLoader__.load({
|
|
|
1852
2093
|
});
|
|
1853
2094
|
return () => {
|
|
1854
2095
|
disposed = true;
|
|
2096
|
+
if (globalCheckAndSync === checkAndSync) globalCheckAndSync = void 0;
|
|
1855
2097
|
if (healTimer) clearInterval(healTimer);
|
|
1856
2098
|
unsubscribe();
|
|
1857
2099
|
offThemeChange?.();
|
|
@@ -1925,12 +2167,20 @@ window.__ModuleLoader__.load({
|
|
|
1925
2167
|
border-radius: 12px;
|
|
1926
2168
|
margin-bottom: 16px;
|
|
1927
2169
|
}
|
|
2170
|
+
body:not([data-ds-dark-theme]) .dcu-section-card {
|
|
2171
|
+
background: var(--dsw-alias-bg-layer-2, #ffffff);
|
|
2172
|
+
border-color: var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08));
|
|
2173
|
+
}
|
|
1928
2174
|
html[data-dsh-glass] .dcu-section-card {
|
|
1929
2175
|
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
1930
2176
|
backdrop-filter: none !important;
|
|
1931
2177
|
-webkit-backdrop-filter: none !important;
|
|
1932
2178
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
1933
2179
|
}
|
|
2180
|
+
html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
|
|
2181
|
+
background: var(--dsw-alias-bg-layer-2, #ffffff) !important;
|
|
2182
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
2183
|
+
}
|
|
1934
2184
|
.dcu-section-header {
|
|
1935
2185
|
display: flex;
|
|
1936
2186
|
align-items: flex-start;
|
|
@@ -2308,7 +2558,9 @@ html[data-dsh-glass] .dcu-section-card {
|
|
|
2308
2558
|
.dcu-subplugin-desc{text-align:left}
|
|
2309
2559
|
}
|
|
2310
2560
|
.dcu-section-card{box-sizing:border-box;display:flex;flex-direction:column;gap:16px;padding:18px 20px;background:var(--dsw-alias-bg-layer-2,#18181b);border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,0.08));border-radius:12px;margin-bottom:16px;transition:border-color 0.15s ease,background-color 0.15s ease}
|
|
2561
|
+
body:not([data-ds-dark-theme]) .dcu-section-card{background:var(--dsw-alias-bg-layer-2,#ffffff);border-color:var(--dsw-alias-border-l1,rgba(0,0,0,0.08))}
|
|
2311
2562
|
html[data-dsh-glass] .dcu-section-card{background:var(--dsw-alias-bg-layer-2,#18181b)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,0.08)}
|
|
2563
|
+
html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background:var(--dsw-alias-bg-layer-2,#ffffff)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,0.6)}
|
|
2312
2564
|
.dcu-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
|
|
2313
2565
|
.dcu-section-title-wrap{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
|
|
2314
2566
|
.dcu-section-title{margin:0;font-size:15px;font-weight:600;line-height:22px;color:var(--dsw-alias-label-primary);display:flex;align-items:center;gap:8px}
|
|
@@ -3661,10 +3913,21 @@ html[data-platform="darwin"]:not([data-fullscreen]) [data-shortcut-modal="settin
|
|
|
3661
3913
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
3662
3914
|
}
|
|
3663
3915
|
|
|
3664
|
-
[data-shortcut-modal="settings"] > div:not(nav) {
|
|
3916
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3665
3917
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
3666
3918
|
}
|
|
3667
3919
|
|
|
3920
|
+
/* 浅色模式全局兜底:浅底高对比度规范,绝不允许残留或回退暗黑色 */
|
|
3921
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"],
|
|
3922
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"] {
|
|
3923
|
+
background: var(--dsw-alias-bg-base, var(--dsw-static-neutral-bluish-00, #ffffff)) !important;
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
|
|
3927
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3928
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-static-neutral-bluish-00, #ffffff)) !important;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3668
3931
|
/* 玻璃质感/原版兼容排版模式(Compat) */
|
|
3669
3932
|
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] {
|
|
3670
3933
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
@@ -3672,7 +3935,8 @@ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"
|
|
|
3672
3935
|
-webkit-backdrop-filter: none !important;
|
|
3673
3936
|
}
|
|
3674
3937
|
|
|
3675
|
-
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav
|
|
3938
|
+
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav,
|
|
3939
|
+
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
3676
3940
|
background: color-mix(
|
|
3677
3941
|
in srgb,
|
|
3678
3942
|
var(--dsw-specific-sidebar-fill, #181825) 85%,
|
|
@@ -3684,7 +3948,7 @@ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"
|
|
|
3684
3948
|
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
|
|
3685
3949
|
}
|
|
3686
3950
|
|
|
3687
|
-
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > div:not(nav) {
|
|
3951
|
+
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3688
3952
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
3689
3953
|
backdrop-filter: none !important;
|
|
3690
3954
|
-webkit-backdrop-filter: none !important;
|
|
@@ -3716,7 +3980,7 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] {
|
|
|
3716
3980
|
}
|
|
3717
3981
|
|
|
3718
3982
|
/* 左侧导航悬浮岛:与首页侧边栏严格对齐几何形态、12px外边距、16px圆角与微高光 */
|
|
3719
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav {
|
|
3983
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
|
|
3720
3984
|
box-sizing: border-box !important;
|
|
3721
3985
|
width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
|
|
3722
3986
|
min-width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
|
|
@@ -3734,7 +3998,7 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav {
|
|
|
3734
3998
|
}
|
|
3735
3999
|
|
|
3736
4000
|
/* 右侧工作台悬浮岛:独立大圆角卡片,浅色为纯净微光白,深色为深邃灰,与首页悬浮实体完全一致 */
|
|
3737
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) {
|
|
4001
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3738
4002
|
margin: 8px 12px 12px 0 !important;
|
|
3739
4003
|
height: calc(100% - 20px) !important;
|
|
3740
4004
|
max-height: calc(100% - 20px) !important;
|
|
@@ -3748,14 +4012,14 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) {
|
|
|
3748
4012
|
}
|
|
3749
4013
|
|
|
3750
4014
|
/* 云母模式下收敛顶部工具栏与内容区 padding,消除脱节大空隙 */
|
|
3751
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) > :first-child {
|
|
4015
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
3752
4016
|
height: 48px !important;
|
|
3753
4017
|
min-height: 48px !important;
|
|
3754
4018
|
padding: 0 24px !important;
|
|
3755
4019
|
background: var(--dsw-alias-bg-layer-1) !important;
|
|
3756
4020
|
}
|
|
3757
4021
|
|
|
3758
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) {
|
|
4022
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
3759
4023
|
padding: 16px 36px 48px !important;
|
|
3760
4024
|
background: var(--dsw-alias-bg-layer-1) !important;
|
|
3761
4025
|
}
|
|
@@ -3773,6 +4037,12 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3773
4037
|
flex: none !important;
|
|
3774
4038
|
}
|
|
3775
4039
|
|
|
4040
|
+
/* 彻底隐藏宿主原生的 settings.header 插槽内容,杜绝原生“设置”文本复活并被挤到右边竖排折行 */
|
|
4041
|
+
[data-shortcut-modal="settings"] [data-slot="settings.header"],
|
|
4042
|
+
[data-shortcut-modal="settings"] [class*="navTitle"] > :not(.dcu-settings-nav-header-root) {
|
|
4043
|
+
display: none !important;
|
|
4044
|
+
}
|
|
4045
|
+
|
|
3776
4046
|
.dcu-settings-nav-header-root {
|
|
3777
4047
|
display: flex !important;
|
|
3778
4048
|
flex-direction: column !important;
|
|
@@ -3787,14 +4057,22 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3787
4057
|
gap: 10px !important;
|
|
3788
4058
|
height: 28px !important;
|
|
3789
4059
|
padding: 0 !important;
|
|
4060
|
+
width: 100% !important;
|
|
3790
4061
|
}
|
|
3791
4062
|
|
|
3792
|
-
.dcu-settings-back-btn
|
|
4063
|
+
.dcu-settings-back-btn,
|
|
4064
|
+
button.dcu-settings-back-btn,
|
|
4065
|
+
[data-shortcut-modal="settings"] nav button.dcu-settings-back-btn {
|
|
3793
4066
|
display: inline-flex !important;
|
|
3794
4067
|
align-items: center !important;
|
|
3795
4068
|
justify-content: center !important;
|
|
3796
4069
|
width: 28px !important;
|
|
4070
|
+
min-width: 28px !important;
|
|
4071
|
+
max-width: 28px !important;
|
|
3797
4072
|
height: 28px !important;
|
|
4073
|
+
min-height: 28px !important;
|
|
4074
|
+
max-height: 28px !important;
|
|
4075
|
+
flex: none !important;
|
|
3798
4076
|
border-radius: var(--dsw-radius-sm, 6px) !important;
|
|
3799
4077
|
background: transparent !important;
|
|
3800
4078
|
border: none !important;
|
|
@@ -3804,7 +4082,9 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3804
4082
|
transition: color 0.12s ease, background 0.12s ease !important;
|
|
3805
4083
|
}
|
|
3806
4084
|
|
|
3807
|
-
.dcu-settings-back-btn:hover
|
|
4085
|
+
.dcu-settings-back-btn:hover,
|
|
4086
|
+
button.dcu-settings-back-btn:hover,
|
|
4087
|
+
[data-shortcut-modal="settings"] nav button.dcu-settings-back-btn:hover {
|
|
3808
4088
|
background: var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.06)) !important;
|
|
3809
4089
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3810
4090
|
}
|
|
@@ -3816,6 +4096,8 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3816
4096
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3817
4097
|
letter-spacing: -0.01em !important;
|
|
3818
4098
|
user-select: none !important;
|
|
4099
|
+
white-space: nowrap !important;
|
|
4100
|
+
flex: 1 1 auto !important;
|
|
3819
4101
|
}
|
|
3820
4102
|
|
|
3821
4103
|
/* 搜索框容器与宿主原生 Input 规范对齐 */
|
|
@@ -3862,6 +4144,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3862
4144
|
}
|
|
3863
4145
|
|
|
3864
4146
|
/* 导航项列表容器 */
|
|
4147
|
+
[data-shortcut-modal="settings"] nav [class*="navList"],
|
|
3865
4148
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) {
|
|
3866
4149
|
display: flex !important;
|
|
3867
4150
|
flex-direction: column !important;
|
|
@@ -3898,6 +4181,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3898
4181
|
}
|
|
3899
4182
|
|
|
3900
4183
|
/* 导航项按钮:Codex 原生胶囊形态(Capsule) */
|
|
4184
|
+
[data-shortcut-modal="settings"] nav button,
|
|
3901
4185
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button {
|
|
3902
4186
|
box-sizing: border-box !important;
|
|
3903
4187
|
display: flex !important;
|
|
@@ -3915,8 +4199,10 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3915
4199
|
cursor: pointer !important;
|
|
3916
4200
|
transition: background 0.12s ease, color 0.12s ease !important;
|
|
3917
4201
|
text-align: left !important;
|
|
4202
|
+
width: 100% !important;
|
|
3918
4203
|
}
|
|
3919
4204
|
|
|
4205
|
+
[data-shortcut-modal="settings"] nav button svg,
|
|
3920
4206
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button svg {
|
|
3921
4207
|
width: 16px !important;
|
|
3922
4208
|
height: 16px !important;
|
|
@@ -3926,16 +4212,21 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3926
4212
|
transition: color 0.12s ease !important;
|
|
3927
4213
|
}
|
|
3928
4214
|
|
|
4215
|
+
[data-shortcut-modal="settings"] nav button:hover,
|
|
3929
4216
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button:hover {
|
|
3930
4217
|
background: var(--dsw-specific-sidebar-nav-item-hover, var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.05))) !important;
|
|
3931
4218
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3932
4219
|
}
|
|
3933
4220
|
|
|
4221
|
+
[data-shortcut-modal="settings"] nav button:hover svg,
|
|
3934
4222
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button:hover svg {
|
|
3935
4223
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3936
4224
|
}
|
|
3937
4225
|
|
|
3938
4226
|
/* 选中菜单项:纯正 Codex 胶囊激活态(Capsule Pill) */
|
|
4227
|
+
[data-shortcut-modal="settings"] nav button[aria-current="true"],
|
|
4228
|
+
[data-shortcut-modal="settings"] nav button[class*="active"],
|
|
4229
|
+
[data-shortcut-modal="settings"] nav [class*="navCell"][class*="active"],
|
|
3939
4230
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[aria-current="true"],
|
|
3940
4231
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[class*="active"] {
|
|
3941
4232
|
background: var(--dsw-specific-sidebar-nav-item-active, var(--dsw-alias-interactive-bg-selected, rgba(255, 255, 255, 0.10))) !important;
|
|
@@ -3943,18 +4234,22 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3943
4234
|
font-weight: 500 !important;
|
|
3944
4235
|
}
|
|
3945
4236
|
|
|
4237
|
+
[data-shortcut-modal="settings"] nav button[aria-current="true"] svg,
|
|
4238
|
+
[data-shortcut-modal="settings"] nav button[class*="active"] svg,
|
|
4239
|
+
[data-shortcut-modal="settings"] nav [class*="navCell"][class*="active"] svg,
|
|
3946
4240
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[aria-current="true"] svg,
|
|
3947
4241
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[class*="active"] svg {
|
|
3948
4242
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3949
4243
|
}
|
|
3950
4244
|
|
|
4245
|
+
[data-shortcut-modal="settings"] nav button:focus-visible,
|
|
3951
4246
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button:focus-visible {
|
|
3952
4247
|
outline: 2px solid var(--dsw-alias-state-focus-ring, var(--dsw-static-deepseek-500, #4176e6)) !important;
|
|
3953
4248
|
outline-offset: 1px !important;
|
|
3954
4249
|
}
|
|
3955
4250
|
|
|
3956
4251
|
/* 右侧内容工作区 */
|
|
3957
|
-
[data-shortcut-modal="settings"] > div:not(nav) {
|
|
4252
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3958
4253
|
display: flex !important;
|
|
3959
4254
|
min-width: 0 !important;
|
|
3960
4255
|
flex: 1 1 auto !important;
|
|
@@ -3963,7 +4258,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3963
4258
|
height: 100% !important;
|
|
3964
4259
|
}
|
|
3965
4260
|
|
|
3966
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child {
|
|
4261
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
3967
4262
|
box-sizing: border-box !important;
|
|
3968
4263
|
height: 56px !important;
|
|
3969
4264
|
min-height: 56px !important;
|
|
@@ -3975,26 +4270,26 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3975
4270
|
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
3976
4271
|
}
|
|
3977
4272
|
|
|
3978
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child h2,
|
|
3979
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child span {
|
|
4273
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
|
|
4274
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span {
|
|
3980
4275
|
font-size: 16px;
|
|
3981
4276
|
font-weight: 600;
|
|
3982
4277
|
color: var(--dsw-alias-label-primary, #f4f4f5) !important;
|
|
3983
4278
|
letter-spacing: -0.01em;
|
|
3984
4279
|
}
|
|
3985
4280
|
|
|
3986
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child button,
|
|
3987
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child a {
|
|
4281
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
|
|
4282
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a {
|
|
3988
4283
|
color: var(--dsw-alias-label-secondary, #a1a1aa) !important;
|
|
3989
4284
|
transition: color 0.15s ease;
|
|
3990
4285
|
}
|
|
3991
4286
|
|
|
3992
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child button:hover,
|
|
3993
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child a:hover {
|
|
4287
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
|
|
4288
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover {
|
|
3994
4289
|
color: var(--dsw-alias-label-primary, #f4f4f5) !important;
|
|
3995
4290
|
}
|
|
3996
4291
|
|
|
3997
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) {
|
|
4292
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
3998
4293
|
box-sizing: border-box !important;
|
|
3999
4294
|
min-height: 0 !important;
|
|
4000
4295
|
flex: 1 1 auto !important;
|
|
@@ -4006,22 +4301,55 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4006
4301
|
align-items: center !important;
|
|
4007
4302
|
}
|
|
4008
4303
|
|
|
4304
|
+
/* 浅色模式右侧内容区实色与文字按钮高对比度兜底 */
|
|
4305
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child,
|
|
4306
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
4307
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4308
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
|
|
4312
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span,
|
|
4313
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
|
|
4314
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span {
|
|
4315
|
+
color: var(--dsw-alias-label-primary, #18181b) !important;
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
|
|
4319
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a,
|
|
4320
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
|
|
4321
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a {
|
|
4322
|
+
color: var(--dsw-alias-label-secondary, #52525b) !important;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
|
|
4326
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover,
|
|
4327
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
|
|
4328
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover {
|
|
4329
|
+
color: var(--dsw-alias-label-primary, #18181b) !important;
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4332
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2),
|
|
4333
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
4334
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4009
4337
|
/* 右侧设置区固定宽度规范:居中排版,避免宽屏下拉伸 */
|
|
4010
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) > * {
|
|
4338
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) > * {
|
|
4011
4339
|
width: 100% !important;
|
|
4012
4340
|
max-width: 800px !important;
|
|
4013
4341
|
margin-inline: auto !important;
|
|
4014
4342
|
box-sizing: border-box !important;
|
|
4015
4343
|
}
|
|
4016
4344
|
|
|
4017
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) > * > * {
|
|
4345
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) > * > * {
|
|
4018
4346
|
width: 100% !important;
|
|
4019
4347
|
max-width: 800px !important;
|
|
4020
4348
|
margin-inline: auto !important;
|
|
4021
4349
|
box-sizing: border-box !important;
|
|
4022
4350
|
}
|
|
4023
4351
|
|
|
4024
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) [class*="section"] {
|
|
4352
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) [class*="section"] {
|
|
4025
4353
|
width: 100% !important;
|
|
4026
4354
|
max-width: 800px !important;
|
|
4027
4355
|
margin-inline: auto !important;
|
|
@@ -4066,7 +4394,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4066
4394
|
|
|
4067
4395
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button { flex: 0 0 auto !important; }
|
|
4068
4396
|
|
|
4069
|
-
[data-shortcut-modal="settings"] > div:not(nav) {
|
|
4397
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
4070
4398
|
flex: 1 1 auto !important;
|
|
4071
4399
|
min-height: 0 !important;
|
|
4072
4400
|
overflow-y: auto !important;
|
|
@@ -4075,6 +4403,223 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4075
4403
|
[data-shortcut-modal="settings"] > div > :first-child { height: 48px !important; min-height: 48px !important; padding: 0 16px !important; }
|
|
4076
4404
|
|
|
4077
4405
|
[data-shortcut-modal="settings"] > div > :nth-child(2) { padding: 16px !important; }
|
|
4406
|
+
|
|
4407
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4408
|
+
display: flex !important;
|
|
4409
|
+
flex-direction: column !important;
|
|
4410
|
+
}
|
|
4411
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"],
|
|
4412
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4413
|
+
width: 100% !important;
|
|
4414
|
+
max-width: none !important;
|
|
4415
|
+
min-width: 0 !important;
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
/* 新版宿主平铺 4 块 Grid 布局映射(0.2.1-alpha.3+),杜绝 4 列横向撕裂与多余空条 */
|
|
4420
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4421
|
+
display: grid !important;
|
|
4422
|
+
grid-template-columns: var(--dcu-settings-nav-width, 280px) minmax(0, 1fr) !important;
|
|
4423
|
+
grid-template-rows: auto minmax(0, 1fr) !important;
|
|
4424
|
+
flex-direction: unset !important;
|
|
4425
|
+
position: fixed !important;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4429
|
+
grid-column: 1 !important;
|
|
4430
|
+
grid-row: 1 !important;
|
|
4431
|
+
box-sizing: border-box !important;
|
|
4432
|
+
width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4433
|
+
min-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4434
|
+
max-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4435
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4436
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4437
|
+
border-bottom: none !important;
|
|
4438
|
+
padding: 16px 12px 12px 12px !important;
|
|
4439
|
+
margin: 0 !important;
|
|
4440
|
+
height: auto !important;
|
|
4441
|
+
flex: none !important;
|
|
4442
|
+
}
|
|
4443
|
+
|
|
4444
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4445
|
+
grid-column: 1 !important;
|
|
4446
|
+
grid-row: 2 !important;
|
|
4447
|
+
box-sizing: border-box !important;
|
|
4448
|
+
width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4449
|
+
min-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4450
|
+
max-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4451
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4452
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4453
|
+
border-top: none !important;
|
|
4454
|
+
padding: 0 12px 24px !important;
|
|
4455
|
+
margin: 0 !important;
|
|
4456
|
+
overflow-y: auto !important;
|
|
4457
|
+
height: 100% !important;
|
|
4458
|
+
flex: none !important;
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
/* 顶部操作区(打开配置文件 + 关闭按钮):整行 56px 顶栏,精准对齐老版标准头部 */
|
|
4462
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4463
|
+
grid-column: 2 !important;
|
|
4464
|
+
grid-row: 1 / -1 !important;
|
|
4465
|
+
position: absolute !important;
|
|
4466
|
+
top: 0 !important;
|
|
4467
|
+
left: 0 !important;
|
|
4468
|
+
right: 0 !important;
|
|
4469
|
+
height: 56px !important;
|
|
4470
|
+
min-height: 56px !important;
|
|
4471
|
+
box-sizing: border-box !important;
|
|
4472
|
+
padding: 0 32px !important;
|
|
4473
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4474
|
+
display: flex !important;
|
|
4475
|
+
align-items: center !important;
|
|
4476
|
+
justify-content: flex-end !important;
|
|
4477
|
+
gap: 12px !important;
|
|
4478
|
+
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
4479
|
+
z-index: 10 !important;
|
|
4480
|
+
margin: 0 !important;
|
|
4481
|
+
}
|
|
4482
|
+
|
|
4483
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] > * {
|
|
4484
|
+
pointer-events: auto !important;
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
/* 右侧内容工作区:独占右侧整列(Row 1 至 Row 2 全高一体),首屏内容自 56px 顶栏下方舒展排列 */
|
|
4488
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4489
|
+
grid-column: 2 !important;
|
|
4490
|
+
grid-row: 1 / -1 !important;
|
|
4491
|
+
box-sizing: border-box !important;
|
|
4492
|
+
min-height: 0 !important;
|
|
4493
|
+
overflow-y: auto !important;
|
|
4494
|
+
padding-top: calc(56px + 28px) !important;
|
|
4495
|
+
padding-bottom: 64px !important;
|
|
4496
|
+
padding-inline: 48px !important;
|
|
4497
|
+
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
4498
|
+
display: flex !important;
|
|
4499
|
+
flex-direction: column !important;
|
|
4500
|
+
align-items: center !important;
|
|
4501
|
+
margin: 0 !important;
|
|
4502
|
+
height: 100% !important;
|
|
4503
|
+
flex: none !important;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > *,
|
|
4507
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > * > *,
|
|
4508
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] [class*="section"],
|
|
4509
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] [class*="card"] {
|
|
4510
|
+
box-sizing: border-box !important;
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4513
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > :not([style*="display: contents"]):not([data-slot]),
|
|
4514
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > * > *,
|
|
4515
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] [class*="section"] {
|
|
4516
|
+
width: 100% !important;
|
|
4517
|
+
max-width: 800px !important;
|
|
4518
|
+
margin-inline: auto !important;
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4521
|
+
/* 浅色模式新版 Grid 兜底 */
|
|
4522
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"],
|
|
4523
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4524
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #ffffff)) !important;
|
|
4525
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav,
|
|
4529
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4530
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #ffffff)) !important;
|
|
4531
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4534
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
|
|
4535
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4536
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4537
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
|
|
4541
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4542
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4543
|
+
}
|
|
4544
|
+
|
|
4545
|
+
/* 云母悬浮双岛(Mica Mode)新版 Grid 适配:右侧整列为标准 56px 顶栏 + 16px 圆角大卡片 */
|
|
4546
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4547
|
+
grid-template-columns: calc(var(--dcu-settings-nav-width, 280px) - 24px) minmax(0, 1fr) !important;
|
|
4548
|
+
gap: 0 12px !important;
|
|
4549
|
+
padding: 8px 12px 12px 12px !important;
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4553
|
+
width: 100% !important;
|
|
4554
|
+
min-width: 0 !important;
|
|
4555
|
+
max-width: none !important;
|
|
4556
|
+
margin: 0 !important;
|
|
4557
|
+
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4558
|
+
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4559
|
+
border-top: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4560
|
+
border-bottom: none !important;
|
|
4561
|
+
border-radius: 16px 16px 0 0 !important;
|
|
4562
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4563
|
+
backdrop-filter: none !important;
|
|
4564
|
+
-webkit-backdrop-filter: none !important;
|
|
4565
|
+
box-shadow: none !important;
|
|
4566
|
+
}
|
|
4567
|
+
|
|
4568
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4569
|
+
width: 100% !important;
|
|
4570
|
+
min-width: 0 !important;
|
|
4571
|
+
max-width: none !important;
|
|
4572
|
+
margin: 0 !important;
|
|
4573
|
+
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4574
|
+
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4575
|
+
border-bottom: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4576
|
+
border-top: none !important;
|
|
4577
|
+
border-radius: 0 0 16px 16px !important;
|
|
4578
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4579
|
+
backdrop-filter: none !important;
|
|
4580
|
+
-webkit-backdrop-filter: none !important;
|
|
4581
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4585
|
+
grid-column: 2 !important;
|
|
4586
|
+
grid-row: 1 / -1 !important;
|
|
4587
|
+
position: absolute !important;
|
|
4588
|
+
top: 0 !important;
|
|
4589
|
+
left: 0 !important;
|
|
4590
|
+
right: 12px !important;
|
|
4591
|
+
margin: 0 !important;
|
|
4592
|
+
height: 56px !important;
|
|
4593
|
+
min-height: 56px !important;
|
|
4594
|
+
box-sizing: border-box !important;
|
|
4595
|
+
padding: 0 32px !important;
|
|
4596
|
+
border-radius: 16px 16px 0 0 !important;
|
|
4597
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(255, 255, 255, 0.08)) !important;
|
|
4598
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4599
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4600
|
+
display: flex !important;
|
|
4601
|
+
align-items: center !important;
|
|
4602
|
+
justify-content: flex-end !important;
|
|
4603
|
+
gap: 12px !important;
|
|
4604
|
+
z-index: 10 !important;
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4607
|
+
html[data-dsh-glass-float] body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
|
|
4608
|
+
html[data-dsh-glass-float] html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4609
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4610
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4611
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4614
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4615
|
+
margin: 0 !important;
|
|
4616
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4617
|
+
border-radius: 16px !important;
|
|
4618
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4619
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
4620
|
+
padding-top: calc(56px + 28px) !important;
|
|
4621
|
+
padding-bottom: 48px !important;
|
|
4622
|
+
padding-inline: 36px !important;
|
|
4078
4623
|
}
|
|
4079
4624
|
`;
|
|
4080
4625
|
let lastSkinCheckTime = 0;
|
|
@@ -4166,8 +4711,8 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4166
4711
|
function decorateSettingsNav(panelEl) {
|
|
4167
4712
|
const sidebarWidth = getHostSidebarExpandedWidth(panelEl.ownerDocument || document);
|
|
4168
4713
|
panelEl.style.setProperty("--dcu-settings-nav-width", `${sidebarWidth}px`);
|
|
4169
|
-
const navHeader = panelEl.querySelector("nav > :first-child");
|
|
4170
|
-
const navList = panelEl.querySelector("nav > :nth-child(2)");
|
|
4714
|
+
const navHeader = panelEl.querySelector(":scope > [class*=\"navTitle\"]") ?? panelEl.querySelector("nav > :first-child");
|
|
4715
|
+
const navList = panelEl.querySelector("nav [class*=\"navList\"]") ?? panelEl.querySelector("nav > :nth-child(2)") ?? panelEl.querySelector("nav > :first-child");
|
|
4171
4716
|
if (!navList) return () => {};
|
|
4172
4717
|
const isZh = (document.documentElement.lang || "zh").startsWith("zh");
|
|
4173
4718
|
let cleanHeader = () => {};
|
|
@@ -4175,6 +4720,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4175
4720
|
const originalChildren = Array.from(navHeader.childNodes);
|
|
4176
4721
|
originalChildren.forEach((child) => {
|
|
4177
4722
|
if (child instanceof HTMLElement) child.style.display = "none";
|
|
4723
|
+
else if (child.nodeType === 3) child.textContent = "";
|
|
4178
4724
|
});
|
|
4179
4725
|
const headerRoot = document.createElement("div");
|
|
4180
4726
|
headerRoot.className = "dcu-settings-nav-header-root";
|
|
@@ -4283,11 +4829,17 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4283
4829
|
uninstallSettingsSkin(document);
|
|
4284
4830
|
}
|
|
4285
4831
|
};
|
|
4286
|
-
if (typeof document !== "undefined"
|
|
4832
|
+
if (typeof document !== "undefined") sync();
|
|
4287
4833
|
const observer = new MutationObserver((mutations) => {
|
|
4288
4834
|
for (const mutation of mutations) {
|
|
4289
4835
|
for (const node of mutation.addedNodes) if (node instanceof HTMLElement) {
|
|
4290
|
-
|
|
4836
|
+
const modal = node.getAttribute("data-shortcut-modal") === "settings" ? node : node.querySelector("[data-shortcut-modal=\"settings\"]");
|
|
4837
|
+
if (modal) {
|
|
4838
|
+
if (cachedSkinEnabledResult === true) {
|
|
4839
|
+
installSettingsSkin(document);
|
|
4840
|
+
cleanDecorator?.();
|
|
4841
|
+
cleanDecorator = decorateSettingsNav(modal);
|
|
4842
|
+
}
|
|
4291
4843
|
sync();
|
|
4292
4844
|
return;
|
|
4293
4845
|
}
|
package/lib/composer-plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CODEX_UI_API_ENDPOINTS } from "./business-api-CSNUY-u5.mjs";
|
|
2
|
-
import { t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-
|
|
2
|
+
import { t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-9ws-Evm5.mjs";
|
|
3
3
|
//#region src/composer-plugin.ts
|
|
4
4
|
const name = "codex-ui-composer";
|
|
5
5
|
const inject = ["webServer"];
|
|
@@ -56,8 +56,15 @@ function isSubPluginDisabledOnDisk(id, homeDir, ctx) {
|
|
|
56
56
|
const { profileDir } = resolveCurrentProfile(ctx, homeDir);
|
|
57
57
|
const patchPath = join(profileDir, "cordis.patch.yml");
|
|
58
58
|
if (existsSync(patchPath)) {
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const itemBlocks = readFileSync(patchPath, "utf8").split(/(?:\r?\n)(?=-\s+)/);
|
|
60
|
+
for (let i = itemBlocks.length - 1; i >= 0; i--) {
|
|
61
|
+
const block = itemBlocks[i];
|
|
62
|
+
if (new RegExp(`(?:^|\\s)id:\\s*['"]?${id}['"]?(?:\\s|$)`, "m").test(block)) {
|
|
63
|
+
if (/(?:^|\s)disabled:\s*true(?:\s|$)/m.test(block)) return true;
|
|
64
|
+
if (/(?:^|\s)disabled:\s*false(?:\\s|$)/m.test(block)) return false;
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
61
68
|
}
|
|
62
69
|
} catch {}
|
|
63
70
|
return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CODEX_UI_API_ENDPOINTS } from "./business-api-CSNUY-u5.mjs";
|
|
2
|
-
import { t as isSubPluginDisabledOnDisk } from "./profile-resolver-
|
|
2
|
+
import { t as isSubPluginDisabledOnDisk } from "./profile-resolver-9ws-Evm5.mjs";
|
|
3
3
|
//#region src/settings-skin-plugin.ts
|
|
4
4
|
const name = "codex-ui-settings-skin";
|
|
5
5
|
const inject = ["webServer"];
|
package/lib/sidebar-plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CODEX_UI_API_ENDPOINTS } from "./business-api-CSNUY-u5.mjs";
|
|
2
|
-
import { t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-
|
|
2
|
+
import { t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-9ws-Evm5.mjs";
|
|
3
3
|
//#region src/sidebar-plugin.ts
|
|
4
4
|
const name = "codex-ui-sidebar";
|
|
5
5
|
const inject = ["webServer"];
|
package/lib/theme-plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CODEX_UI_API_ENDPOINTS } from "./business-api-CSNUY-u5.mjs";
|
|
2
|
-
import { t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-
|
|
2
|
+
import { t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-9ws-Evm5.mjs";
|
|
3
3
|
//#region src/theme-plugin.ts
|
|
4
4
|
const name = "codex-ui-theme";
|
|
5
5
|
const inject = ["webServer"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-codex-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "DSH Codex UI — 为 DeepSeek Harness 提供极速历史召回、全屏设置皮肤、原生物理毛玻璃换肤与模块化侧栏 · Input enhancement, settings skin, native glass theme, and modular sidebar for DSH",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|