@michengai/dsh-codex-ui 2.0.3 → 2.0.4
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 +10 -0
- package/CHANGELOG.zh-CN.md +10 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +562 -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,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.4 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
- **Support Latest Host Matrix**: Expand the host support matrix to include DeepSeek Harness latest RC (`0.2.1-rc.4`) and alpha (`0.2.2-alpha.2`), ensuring flawless compatibility across the entire `0.2.x` line.
|
|
6
|
+
- **Fix Settings Page Flat Grid 4-Column Layout Fragmentation (#68)**: Adapt to the host's new flat grid container structure (`> [class*="options"]`), eliminating horizontal layout tearing and 800px content width penetration, and ensuring the sidebar and content pane render seamlessly.
|
|
7
|
+
- **Restore Native Theme Presentation & Preference Protection**: Align `restoreNativeThemePresentation` with the host's `ThemePresenter` contract (`active.colorScheme`). When disabling or switching themes in "Follow System (Dark)" mode or custom dark palettes, dark mode is preserved without accidentally resetting to light mode.
|
|
8
|
+
- **Fix Settings Skin Lifecycle Gating**: Ensure settings skin styles and DOM decorators are strictly gated behind confirmed enablement, eliminating modal open/close resize flickers when the skin is disabled.
|
|
9
|
+
- **Fix Mica Float Mode 56px Header Alignment**: Align the float mode right workbench header (`right: 12px`) with the content card's right boundary inside the padding box.
|
|
10
|
+
- **Eliminate Composer Dock & Trajectory Layout Issues**: Remove the pseudo-element behind composer dock stats pills to eliminate rectangular gray smudges, and restore trajectory view to full-bleed width.
|
|
11
|
+
- **Fix Selector Nesting & Old Host Back Button**: Correct `html[data-dsh-glass] body:not([data-ds-dark-theme])` selector hierarchy for light mica cards, lock the back button to 28x28px (`min-height: 28px !important`), and remove greedy YAML parsing fallbacks.
|
|
12
|
+
|
|
3
13
|
## 2.0.3 (2026-10-28)
|
|
4
14
|
|
|
5
15
|
- **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,15 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 2.0.4 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
- **支持最新宿主版本矩阵**:全面拓展支持矩阵,正式纳入 DeepSeek Harness 最新 RC(`0.2.1-rc.4`)与阿尔法版本(`0.2.2-alpha.2`),确保 `0.2.x` 全系列宿主开箱即用。
|
|
6
|
+
- **修复设置页平铺结构 4 列横向撕裂 (#68)**:深度适配新版宿主平铺 Grid 容器结构(`> [class*="options"]`),彻底消除 800px 宽度穿透与多列错位,恢复设置页左右双栏标准排版与独立 56px 顶栏。
|
|
7
|
+
- **完善宿主原生主题呈现与偏好保护**:对齐宿主 `ThemePresenter` 契约规范,以 `active.colorScheme` 作为权威依据恢复原生样式。在「跟随系统(深色)」或自选深色主题下停用插件或切回原生时,稳稳保持黑色底色,彻底杜绝意外翻白。
|
|
8
|
+
- **完善设置皮肤启用门控**:将预装样式与 DOM 装饰器严格约束在确认启用状态下,彻底消除设置皮肤停用态每次打开弹窗变大后缩小的闪烁问题。
|
|
9
|
+
- **修正云母浮动双岛顶栏几何对齐**:将浮动模式下右侧 56px 顶栏右边距收拢 12px(`right: 12px`),与下方内容卡片边缘在 padding 容器内严丝合缝齐平。
|
|
10
|
+
- **消除输入框底部脏色块与轨迹收窄**:移除输入框底部 dock 统计行背后的伪元素灰色色块,彻底解除轨迹视图的窄卡片约束并恢复满宽铺展。
|
|
11
|
+
- **修复选择器层级倒置与老宿主返回按钮**:纠正浅色+云母模式卡片白底选择器层级;为返回按钮补齐 `min-height: 28px !important` 击穿老宿主胶囊约束;优化 YAML 解析阻断跨条目误判。
|
|
12
|
+
|
|
3
13
|
## 2.0.3 (2026-10-28)
|
|
4
14
|
|
|
5
15
|
- **适配移动端 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,62 @@ 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
|
+
const GLASS_EXTRA_CSS = `
|
|
296
|
+
/* 插件页顶栏色差彻底消除:静止与滚动吸顶均保持底板透明,与全局背景底色与渐变自然融为一体;吸顶时呈现纯净磨砂与细线悬浮效果 */
|
|
297
|
+
[data-dsh-glass] [data-plugin-bar]:before,
|
|
298
|
+
[data-dsh-glass] [class*="pageBar"]:before {
|
|
299
|
+
background: transparent !important;
|
|
300
|
+
backdrop-filter: none !important;
|
|
301
|
+
-webkit-backdrop-filter: none !important;
|
|
302
|
+
transition: background 0.15s ease !important;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
[data-dsh-glass] [data-plugin-bar][data-scrolled]:before,
|
|
306
|
+
[data-dsh-glass] [data-plugin-bar][data-compact]:before,
|
|
307
|
+
[data-dsh-glass] [class*="pageBar"][data-scrolled]:before,
|
|
308
|
+
[data-dsh-glass] [class*="pageBar"][data-compact]:before {
|
|
309
|
+
background: transparent !important;
|
|
310
|
+
backdrop-filter: blur(24px) !important;
|
|
311
|
+
-webkit-backdrop-filter: blur(24px) !important;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
[data-dsh-glass] [data-plugin-bar][data-compact]:after,
|
|
315
|
+
[data-dsh-glass] [class*="pageBar"][data-compact]:after,
|
|
316
|
+
[data-dsh-glass] [data-plugin-bar][data-scrolled]:after,
|
|
317
|
+
[data-dsh-glass] [class*="pageBar"][data-scrolled]:after {
|
|
318
|
+
content: "" !important;
|
|
319
|
+
position: absolute !important;
|
|
320
|
+
inset-inline: 0 !important;
|
|
321
|
+
bottom: 0 !important;
|
|
322
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
323
|
+
pointer-events: none !important;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* 轨迹视图保持 100% 满宽排版,严禁被云母浮动模式缩减为居中窄列与圆角卡片 */
|
|
327
|
+
[data-dsh-glass-float] [data-dsh-glass-trajectory],
|
|
328
|
+
[data-dsh-glass] [data-dsh-glass-trajectory],
|
|
329
|
+
[data-dsh-glass] [data-conversation-composer-overlay] {
|
|
330
|
+
width: 100% !important;
|
|
331
|
+
max-width: none !important;
|
|
332
|
+
height: 100% !important;
|
|
333
|
+
margin: 0 !important;
|
|
334
|
+
border: none !important;
|
|
335
|
+
box-shadow: none !important;
|
|
336
|
+
border-radius: 0 !important;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* 彻底清除输入框底部 dock / stats 区域的半透明灰色脏色块与切线 */
|
|
340
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [class*="dock"]:before,
|
|
341
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [data-composer-dock]:before,
|
|
342
|
+
[data-dsh-glass] [class*="dock"]:before,
|
|
343
|
+
[data-dsh-glass] [data-composer-dock]:before {
|
|
344
|
+
display: none !important;
|
|
345
|
+
content: none !important;
|
|
346
|
+
background: transparent !important;
|
|
347
|
+
backdrop-filter: none !important;
|
|
348
|
+
-webkit-backdrop-filter: none !important;
|
|
349
|
+
}
|
|
350
|
+
`;
|
|
295
351
|
let styleTag = null;
|
|
296
352
|
let seamDisposer;
|
|
297
353
|
/**
|
|
@@ -310,7 +366,7 @@ window.__ModuleLoader__.load({
|
|
|
310
366
|
if (!styleTag) {
|
|
311
367
|
styleTag = document.createElement("style");
|
|
312
368
|
styleTag.id = STYLE_TAG_ID;
|
|
313
|
-
styleTag.textContent = GLASS_CSS_TEXT;
|
|
369
|
+
styleTag.textContent = GLASS_CSS_TEXT + GLASS_EXTRA_CSS;
|
|
314
370
|
}
|
|
315
371
|
}
|
|
316
372
|
if (!styleTag.isConnected) document.head.appendChild(styleTag);
|
|
@@ -1667,35 +1723,129 @@ window.__ModuleLoader__.load({
|
|
|
1667
1723
|
}
|
|
1668
1724
|
let lastAppliedTokens = [];
|
|
1669
1725
|
let hasAppliedCustomTheme = false;
|
|
1726
|
+
const THEME_SURFACE_STYLE_ID = "dsh-codex-ui-theme-surface-style";
|
|
1727
|
+
/**
|
|
1728
|
+
* 确保注入消除插件页等场景色差的全局表面样式
|
|
1729
|
+
*/
|
|
1730
|
+
function ensureThemeSurfaceStyles(doc = typeof document !== "undefined" ? document : void 0) {
|
|
1731
|
+
if (!doc) return;
|
|
1732
|
+
let tag = doc.getElementById(THEME_SURFACE_STYLE_ID);
|
|
1733
|
+
if (!tag) {
|
|
1734
|
+
tag = doc.createElement("style");
|
|
1735
|
+
tag.id = THEME_SURFACE_STYLE_ID;
|
|
1736
|
+
tag.textContent = `
|
|
1737
|
+
/* 彻底消除插件管理页顶栏与全局背景之间的色差:静止与滚动吸顶均保持底板透明,与全局背景底色与渐变自然融为一体;吸顶时仅保留微透磨砂与底部分割线 */
|
|
1738
|
+
[data-plugin-bar]:before,
|
|
1739
|
+
[class*="pageBar"]:before {
|
|
1740
|
+
background: transparent !important;
|
|
1741
|
+
backdrop-filter: none !important;
|
|
1742
|
+
-webkit-backdrop-filter: none !important;
|
|
1743
|
+
transition: background 0.15s ease !important;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
[data-plugin-bar][data-scrolled]:before,
|
|
1747
|
+
[data-plugin-bar][data-compact]:before,
|
|
1748
|
+
[class*="pageBar"][data-scrolled]:before,
|
|
1749
|
+
[class*="pageBar"][data-compact]:before {
|
|
1750
|
+
background: transparent !important;
|
|
1751
|
+
backdrop-filter: blur(24px) !important;
|
|
1752
|
+
-webkit-backdrop-filter: blur(24px) !important;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
[data-plugin-bar][data-compact]:after,
|
|
1756
|
+
[class*="pageBar"][data-compact]:after,
|
|
1757
|
+
[data-plugin-bar][data-scrolled]:after,
|
|
1758
|
+
[class*="pageBar"][data-scrolled]:after {
|
|
1759
|
+
content: "" !important;
|
|
1760
|
+
position: absolute !important;
|
|
1761
|
+
inset-inline: 0 !important;
|
|
1762
|
+
bottom: 0 !important;
|
|
1763
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
1764
|
+
pointer-events: none !important;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
/* 轨迹视图保持 100% 满宽排版,严禁被云母浮动模式缩减为居中窄列与圆角卡片 */
|
|
1768
|
+
[data-dsh-glass-float] [data-dsh-glass-trajectory],
|
|
1769
|
+
[data-dsh-glass] [data-dsh-glass-trajectory],
|
|
1770
|
+
[data-dsh-glass] [data-conversation-composer-overlay] {
|
|
1771
|
+
width: 100% !important;
|
|
1772
|
+
max-width: none !important;
|
|
1773
|
+
height: 100% !important;
|
|
1774
|
+
margin: 0 !important;
|
|
1775
|
+
border: none !important;
|
|
1776
|
+
box-shadow: none !important;
|
|
1777
|
+
border-radius: 0 !important;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
/* 彻底清除输入框底部 dock / stats 区域的半透明灰色脏色块与切线 */
|
|
1781
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [class*="dock"]:before,
|
|
1782
|
+
[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar] > [data-composer-dock]:before,
|
|
1783
|
+
[data-dsh-glass] [class*="dock"]:before,
|
|
1784
|
+
[data-dsh-glass] [data-composer-dock]:before {
|
|
1785
|
+
display: none !important;
|
|
1786
|
+
content: none !important;
|
|
1787
|
+
background: transparent !important;
|
|
1788
|
+
backdrop-filter: none !important;
|
|
1789
|
+
-webkit-backdrop-filter: none !important;
|
|
1790
|
+
}
|
|
1791
|
+
`;
|
|
1792
|
+
doc.head.appendChild(tag);
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
function removeThemeSurfaceStyles(doc = typeof document !== "undefined" ? document : void 0) {
|
|
1796
|
+
if (!doc) return;
|
|
1797
|
+
const tag = doc.getElementById(THEME_SURFACE_STYLE_ID);
|
|
1798
|
+
if (tag) tag.remove();
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* 彻底恢复宿主官方原生主题呈现(严格遵循宿主 ui-layout / ThemePresenter 契约规范):
|
|
1802
|
+
* - 优先从 runtime.getTheme() 快照权威读取 active.colorScheme,未就绪时安全回退到 prefers-color-scheme;
|
|
1803
|
+
* - 严格约束 data-ds-theme-source 仅允许 'system' | 'dark' | 'light',严禁把自定义主题 id 写到根节点导致 Electron preload 越界;
|
|
1804
|
+
* - 绝不盲目删除 data-ds-dark-theme,确保深色模式下切回/停用时稳稳保持黑色底盘!
|
|
1805
|
+
*/
|
|
1806
|
+
function restoreNativeThemePresentation(themeRuntime) {
|
|
1807
|
+
if (typeof document === "undefined") return;
|
|
1808
|
+
const snap = (themeRuntime ?? globalThemeRuntime)?.getTheme?.();
|
|
1809
|
+
const systemDark = typeof matchMedia !== "undefined" && matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1810
|
+
const scheme = snap?.active?.colorScheme ?? (systemDark ? "dark" : "light");
|
|
1811
|
+
const preference = snap?.preference ?? "system";
|
|
1812
|
+
const isDark = scheme === "dark";
|
|
1813
|
+
const source = preference === "system" ? "system" : scheme;
|
|
1814
|
+
document.documentElement.dataset.dsThemeSource = source;
|
|
1815
|
+
document.documentElement.style.colorScheme = scheme;
|
|
1816
|
+
if (isDark) document.body.setAttribute("data-ds-dark-theme", "");
|
|
1817
|
+
else document.body.removeAttribute("data-ds-dark-theme");
|
|
1818
|
+
}
|
|
1670
1819
|
/**
|
|
1671
1820
|
* 将指定主题精准映射并深度应用到真实 DOM(双重保险,彻底压制并覆盖官方亮暗限制)
|
|
1672
1821
|
*/
|
|
1673
1822
|
function applyThemeToDocument(themeOption, themeRuntime, syncRuntime = true) {
|
|
1674
1823
|
if (typeof document === "undefined") return;
|
|
1675
1824
|
if (!isThemeSubPluginEnabled()) {
|
|
1825
|
+
removeThemeSurfaceStyles();
|
|
1676
1826
|
for (const name of lastAppliedTokens) document.body.style.removeProperty(name);
|
|
1677
1827
|
lastAppliedTokens = [];
|
|
1678
1828
|
return;
|
|
1679
1829
|
}
|
|
1680
1830
|
const runtime = themeRuntime ?? globalThemeRuntime;
|
|
1681
1831
|
if (themeOption === "stock") {
|
|
1832
|
+
removeThemeSurfaceStyles();
|
|
1682
1833
|
for (const name of lastAppliedTokens) document.body.style.removeProperty(name);
|
|
1683
1834
|
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
1835
|
if (syncRuntime && runtime && typeof runtime.setTheme === "function") try {
|
|
1691
1836
|
const activeId = runtime.getTheme?.()?.active?.id;
|
|
1692
1837
|
if (activeId && ALL_BUILTIN_THEMES.some((t) => t.id === activeId)) runtime.setTheme("system");
|
|
1693
1838
|
} catch {}
|
|
1839
|
+
if (hasAppliedCustomTheme) {
|
|
1840
|
+
restoreNativeThemePresentation(runtime);
|
|
1841
|
+
hasAppliedCustomTheme = false;
|
|
1842
|
+
}
|
|
1694
1843
|
return;
|
|
1695
1844
|
}
|
|
1696
1845
|
const targetTheme = ALL_BUILTIN_THEMES.find((t) => t.id === themeOption);
|
|
1697
1846
|
if (!targetTheme) return;
|
|
1698
1847
|
hasAppliedCustomTheme = true;
|
|
1848
|
+
ensureThemeSurfaceStyles();
|
|
1699
1849
|
if (syncRuntime && runtime && typeof runtime.setTheme === "function") try {
|
|
1700
1850
|
if (runtime.getTheme?.()?.active?.id !== targetTheme.id) runtime.setTheme(targetTheme.id);
|
|
1701
1851
|
} catch {}
|
|
@@ -1747,6 +1897,7 @@ window.__ModuleLoader__.load({
|
|
|
1747
1897
|
glow
|
|
1748
1898
|
});
|
|
1749
1899
|
}
|
|
1900
|
+
let globalCheckAndSync;
|
|
1750
1901
|
/**
|
|
1751
1902
|
* 挂载并观察主题与外观增强:
|
|
1752
1903
|
* - 注册全部 6 套内置主题至 ThemeRuntime;
|
|
@@ -1764,8 +1915,21 @@ window.__ModuleLoader__.load({
|
|
|
1764
1915
|
disposers.push(dispose);
|
|
1765
1916
|
}
|
|
1766
1917
|
};
|
|
1767
|
-
|
|
1768
|
-
|
|
1918
|
+
const applyCurrentState = (syncRuntime = true) => {
|
|
1919
|
+
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
1920
|
+
const state = getThemeSettingsState();
|
|
1921
|
+
applyGlassSettings({
|
|
1922
|
+
enabled: state.glassEnabled,
|
|
1923
|
+
mode: state.glassMode,
|
|
1924
|
+
preset: state.glassPreset,
|
|
1925
|
+
glow: state.glassGlow
|
|
1926
|
+
});
|
|
1927
|
+
applyThemeToDocument(state.themeOption, globalThemeRuntime ?? theme, syncRuntime);
|
|
1928
|
+
};
|
|
1929
|
+
if (theme) {
|
|
1930
|
+
registerThemesOnRuntime(theme);
|
|
1931
|
+
applyCurrentState(false);
|
|
1932
|
+
} else {
|
|
1769
1933
|
let retries = 0;
|
|
1770
1934
|
const timer = setInterval(() => {
|
|
1771
1935
|
if (disposed) {
|
|
@@ -1777,7 +1941,7 @@ window.__ModuleLoader__.load({
|
|
|
1777
1941
|
clearInterval(timer);
|
|
1778
1942
|
globalThemeRuntime = lateTheme;
|
|
1779
1943
|
registerThemesOnRuntime(lateTheme);
|
|
1780
|
-
|
|
1944
|
+
applyCurrentState(false);
|
|
1781
1945
|
} else if (++retries >= 100) {
|
|
1782
1946
|
clearInterval(timer);
|
|
1783
1947
|
console.warn("[codex-ui:theme] host theme service not ready after 5s polling, continuing with DOM-only fallback");
|
|
@@ -1786,17 +1950,6 @@ window.__ModuleLoader__.load({
|
|
|
1786
1950
|
disposers.push(() => clearInterval(timer));
|
|
1787
1951
|
}
|
|
1788
1952
|
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
1953
|
const checkAndSync = async () => {
|
|
1801
1954
|
if (disposed) return;
|
|
1802
1955
|
const enabled = await checkThemeEnabled();
|
|
@@ -1807,21 +1960,12 @@ window.__ModuleLoader__.load({
|
|
|
1807
1960
|
for (const name of lastAppliedTokens) document.body.style.removeProperty(name);
|
|
1808
1961
|
lastAppliedTokens = [];
|
|
1809
1962
|
if (hasAppliedCustomTheme) {
|
|
1810
|
-
|
|
1811
|
-
document.documentElement.removeAttribute("data-ds-theme-source");
|
|
1812
|
-
document.body.removeAttribute("data-ds-dark-theme");
|
|
1963
|
+
restoreNativeThemePresentation(theme ?? globalThemeRuntime);
|
|
1813
1964
|
hasAppliedCustomTheme = false;
|
|
1814
1965
|
}
|
|
1815
1966
|
if (!healTimer) healTimer = setInterval(() => {
|
|
1816
1967
|
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 {}
|
|
1968
|
+
}, 3e3);
|
|
1825
1969
|
return;
|
|
1826
1970
|
}
|
|
1827
1971
|
if (healTimer) {
|
|
@@ -1829,22 +1973,67 @@ window.__ModuleLoader__.load({
|
|
|
1829
1973
|
healTimer = void 0;
|
|
1830
1974
|
}
|
|
1831
1975
|
setThemeSubPluginEnabled(true);
|
|
1976
|
+
applyCurrentState(true);
|
|
1832
1977
|
};
|
|
1978
|
+
globalCheckAndSync = checkAndSync;
|
|
1833
1979
|
const onFocus = () => {
|
|
1834
|
-
if (!
|
|
1980
|
+
if (!disposed) checkAndSync();
|
|
1835
1981
|
};
|
|
1836
1982
|
if (typeof window !== "undefined") {
|
|
1837
1983
|
window.addEventListener("focus", onFocus);
|
|
1838
1984
|
disposers.push(() => window.removeEventListener("focus", onFocus));
|
|
1839
1985
|
}
|
|
1986
|
+
if (typeof document !== "undefined") {
|
|
1987
|
+
let clickTimer;
|
|
1988
|
+
const onClick = (e) => {
|
|
1989
|
+
if (disposed) return;
|
|
1990
|
+
if (e.target?.closest?.("[data-plugin-rows], [data-plugin-row], [data-shortcut-modal=\"settings\"], [role=\"switch\"]")) {
|
|
1991
|
+
if (clickTimer) clearTimeout(clickTimer);
|
|
1992
|
+
clickTimer = setTimeout(() => {
|
|
1993
|
+
if (!disposed) checkAndSync();
|
|
1994
|
+
}, 150);
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
document.addEventListener("click", onClick, true);
|
|
1998
|
+
disposers.push(() => {
|
|
1999
|
+
if (clickTimer) clearTimeout(clickTimer);
|
|
2000
|
+
document.removeEventListener("click", onClick, true);
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
if (typeof MutationObserver !== "undefined" && typeof document !== "undefined") {
|
|
2004
|
+
let settingsObserverTimer;
|
|
2005
|
+
const observer = new MutationObserver((mutations) => {
|
|
2006
|
+
if (disposed) return;
|
|
2007
|
+
let touchesSettings = false;
|
|
2008
|
+
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\"]")))) {
|
|
2009
|
+
touchesSettings = true;
|
|
2010
|
+
break;
|
|
2011
|
+
}
|
|
2012
|
+
if (touchesSettings) {
|
|
2013
|
+
if (settingsObserverTimer) clearTimeout(settingsObserverTimer);
|
|
2014
|
+
settingsObserverTimer = setTimeout(() => {
|
|
2015
|
+
if (!disposed) checkAndSync();
|
|
2016
|
+
}, 150);
|
|
2017
|
+
}
|
|
2018
|
+
});
|
|
2019
|
+
observer.observe(document.body, {
|
|
2020
|
+
childList: true,
|
|
2021
|
+
subtree: true,
|
|
2022
|
+
attributes: true,
|
|
2023
|
+
attributeFilter: ["data-state", "aria-checked"]
|
|
2024
|
+
});
|
|
2025
|
+
disposers.push(() => {
|
|
2026
|
+
if (settingsObserverTimer) clearTimeout(settingsObserverTimer);
|
|
2027
|
+
observer.disconnect();
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
1840
2030
|
checkAndSync();
|
|
1841
2031
|
applyCurrentState(false);
|
|
1842
2032
|
const offThemeChange = ctx.on("theme/change", () => {
|
|
1843
2033
|
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
1844
2034
|
const state = getThemeSettingsState();
|
|
1845
2035
|
if (state.themeOption === "stock") return;
|
|
1846
|
-
|
|
1847
|
-
if (targetTheme) for (const [name, value] of Object.entries(targetTheme.tokens)) document.body.style.setProperty(name, value);
|
|
2036
|
+
applyThemeToDocument(state.themeOption, void 0, false);
|
|
1848
2037
|
});
|
|
1849
2038
|
const unsubscribe = subscribeThemeSettings(() => {
|
|
1850
2039
|
if (disposed || !isThemeSubPluginEnabled()) return;
|
|
@@ -1852,6 +2041,7 @@ window.__ModuleLoader__.load({
|
|
|
1852
2041
|
});
|
|
1853
2042
|
return () => {
|
|
1854
2043
|
disposed = true;
|
|
2044
|
+
if (globalCheckAndSync === checkAndSync) globalCheckAndSync = void 0;
|
|
1855
2045
|
if (healTimer) clearInterval(healTimer);
|
|
1856
2046
|
unsubscribe();
|
|
1857
2047
|
offThemeChange?.();
|
|
@@ -1925,12 +2115,20 @@ window.__ModuleLoader__.load({
|
|
|
1925
2115
|
border-radius: 12px;
|
|
1926
2116
|
margin-bottom: 16px;
|
|
1927
2117
|
}
|
|
2118
|
+
body:not([data-ds-dark-theme]) .dcu-section-card {
|
|
2119
|
+
background: var(--dsw-alias-bg-layer-2, #ffffff);
|
|
2120
|
+
border-color: var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08));
|
|
2121
|
+
}
|
|
1928
2122
|
html[data-dsh-glass] .dcu-section-card {
|
|
1929
2123
|
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
1930
2124
|
backdrop-filter: none !important;
|
|
1931
2125
|
-webkit-backdrop-filter: none !important;
|
|
1932
2126
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
1933
2127
|
}
|
|
2128
|
+
html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
|
|
2129
|
+
background: var(--dsw-alias-bg-layer-2, #ffffff) !important;
|
|
2130
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
2131
|
+
}
|
|
1934
2132
|
.dcu-section-header {
|
|
1935
2133
|
display: flex;
|
|
1936
2134
|
align-items: flex-start;
|
|
@@ -2308,7 +2506,9 @@ html[data-dsh-glass] .dcu-section-card {
|
|
|
2308
2506
|
.dcu-subplugin-desc{text-align:left}
|
|
2309
2507
|
}
|
|
2310
2508
|
.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}
|
|
2509
|
+
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
2510
|
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)}
|
|
2511
|
+
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
2512
|
.dcu-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
|
|
2313
2513
|
.dcu-section-title-wrap{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
|
|
2314
2514
|
.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 +3861,21 @@ html[data-platform="darwin"]:not([data-fullscreen]) [data-shortcut-modal="settin
|
|
|
3661
3861
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
3662
3862
|
}
|
|
3663
3863
|
|
|
3664
|
-
[data-shortcut-modal="settings"] > div:not(nav) {
|
|
3864
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3665
3865
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
3666
3866
|
}
|
|
3667
3867
|
|
|
3868
|
+
/* 浅色模式全局兜底:浅底高对比度规范,绝不允许残留或回退暗黑色 */
|
|
3869
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"],
|
|
3870
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"] {
|
|
3871
|
+
background: var(--dsw-alias-bg-base, var(--dsw-static-neutral-bluish-00, #ffffff)) !important;
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
|
|
3875
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3876
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-static-neutral-bluish-00, #ffffff)) !important;
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3668
3879
|
/* 玻璃质感/原版兼容排版模式(Compat) */
|
|
3669
3880
|
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] {
|
|
3670
3881
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
@@ -3672,7 +3883,8 @@ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"
|
|
|
3672
3883
|
-webkit-backdrop-filter: none !important;
|
|
3673
3884
|
}
|
|
3674
3885
|
|
|
3675
|
-
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav
|
|
3886
|
+
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav,
|
|
3887
|
+
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
3676
3888
|
background: color-mix(
|
|
3677
3889
|
in srgb,
|
|
3678
3890
|
var(--dsw-specific-sidebar-fill, #181825) 85%,
|
|
@@ -3684,7 +3896,7 @@ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"
|
|
|
3684
3896
|
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
|
|
3685
3897
|
}
|
|
3686
3898
|
|
|
3687
|
-
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > div:not(nav) {
|
|
3899
|
+
html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3688
3900
|
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
3689
3901
|
backdrop-filter: none !important;
|
|
3690
3902
|
-webkit-backdrop-filter: none !important;
|
|
@@ -3716,7 +3928,7 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] {
|
|
|
3716
3928
|
}
|
|
3717
3929
|
|
|
3718
3930
|
/* 左侧导航悬浮岛:与首页侧边栏严格对齐几何形态、12px外边距、16px圆角与微高光 */
|
|
3719
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav {
|
|
3931
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
|
|
3720
3932
|
box-sizing: border-box !important;
|
|
3721
3933
|
width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
|
|
3722
3934
|
min-width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
|
|
@@ -3734,7 +3946,7 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav {
|
|
|
3734
3946
|
}
|
|
3735
3947
|
|
|
3736
3948
|
/* 右侧工作台悬浮岛:独立大圆角卡片,浅色为纯净微光白,深色为深邃灰,与首页悬浮实体完全一致 */
|
|
3737
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) {
|
|
3949
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3738
3950
|
margin: 8px 12px 12px 0 !important;
|
|
3739
3951
|
height: calc(100% - 20px) !important;
|
|
3740
3952
|
max-height: calc(100% - 20px) !important;
|
|
@@ -3748,14 +3960,14 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) {
|
|
|
3748
3960
|
}
|
|
3749
3961
|
|
|
3750
3962
|
/* 云母模式下收敛顶部工具栏与内容区 padding,消除脱节大空隙 */
|
|
3751
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) > :first-child {
|
|
3963
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
3752
3964
|
height: 48px !important;
|
|
3753
3965
|
min-height: 48px !important;
|
|
3754
3966
|
padding: 0 24px !important;
|
|
3755
3967
|
background: var(--dsw-alias-bg-layer-1) !important;
|
|
3756
3968
|
}
|
|
3757
3969
|
|
|
3758
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) {
|
|
3970
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
3759
3971
|
padding: 16px 36px 48px !important;
|
|
3760
3972
|
background: var(--dsw-alias-bg-layer-1) !important;
|
|
3761
3973
|
}
|
|
@@ -3773,6 +3985,12 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3773
3985
|
flex: none !important;
|
|
3774
3986
|
}
|
|
3775
3987
|
|
|
3988
|
+
/* 彻底隐藏宿主原生的 settings.header 插槽内容,杜绝原生“设置”文本复活并被挤到右边竖排折行 */
|
|
3989
|
+
[data-shortcut-modal="settings"] [data-slot="settings.header"],
|
|
3990
|
+
[data-shortcut-modal="settings"] [class*="navTitle"] > :not(.dcu-settings-nav-header-root) {
|
|
3991
|
+
display: none !important;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3776
3994
|
.dcu-settings-nav-header-root {
|
|
3777
3995
|
display: flex !important;
|
|
3778
3996
|
flex-direction: column !important;
|
|
@@ -3787,14 +4005,22 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3787
4005
|
gap: 10px !important;
|
|
3788
4006
|
height: 28px !important;
|
|
3789
4007
|
padding: 0 !important;
|
|
4008
|
+
width: 100% !important;
|
|
3790
4009
|
}
|
|
3791
4010
|
|
|
3792
|
-
.dcu-settings-back-btn
|
|
4011
|
+
.dcu-settings-back-btn,
|
|
4012
|
+
button.dcu-settings-back-btn,
|
|
4013
|
+
[data-shortcut-modal="settings"] nav button.dcu-settings-back-btn {
|
|
3793
4014
|
display: inline-flex !important;
|
|
3794
4015
|
align-items: center !important;
|
|
3795
4016
|
justify-content: center !important;
|
|
3796
4017
|
width: 28px !important;
|
|
4018
|
+
min-width: 28px !important;
|
|
4019
|
+
max-width: 28px !important;
|
|
3797
4020
|
height: 28px !important;
|
|
4021
|
+
min-height: 28px !important;
|
|
4022
|
+
max-height: 28px !important;
|
|
4023
|
+
flex: none !important;
|
|
3798
4024
|
border-radius: var(--dsw-radius-sm, 6px) !important;
|
|
3799
4025
|
background: transparent !important;
|
|
3800
4026
|
border: none !important;
|
|
@@ -3804,7 +4030,9 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3804
4030
|
transition: color 0.12s ease, background 0.12s ease !important;
|
|
3805
4031
|
}
|
|
3806
4032
|
|
|
3807
|
-
.dcu-settings-back-btn:hover
|
|
4033
|
+
.dcu-settings-back-btn:hover,
|
|
4034
|
+
button.dcu-settings-back-btn:hover,
|
|
4035
|
+
[data-shortcut-modal="settings"] nav button.dcu-settings-back-btn:hover {
|
|
3808
4036
|
background: var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.06)) !important;
|
|
3809
4037
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3810
4038
|
}
|
|
@@ -3816,6 +4044,8 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3816
4044
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3817
4045
|
letter-spacing: -0.01em !important;
|
|
3818
4046
|
user-select: none !important;
|
|
4047
|
+
white-space: nowrap !important;
|
|
4048
|
+
flex: 1 1 auto !important;
|
|
3819
4049
|
}
|
|
3820
4050
|
|
|
3821
4051
|
/* 搜索框容器与宿主原生 Input 规范对齐 */
|
|
@@ -3862,6 +4092,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3862
4092
|
}
|
|
3863
4093
|
|
|
3864
4094
|
/* 导航项列表容器 */
|
|
4095
|
+
[data-shortcut-modal="settings"] nav [class*="navList"],
|
|
3865
4096
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) {
|
|
3866
4097
|
display: flex !important;
|
|
3867
4098
|
flex-direction: column !important;
|
|
@@ -3898,6 +4129,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3898
4129
|
}
|
|
3899
4130
|
|
|
3900
4131
|
/* 导航项按钮:Codex 原生胶囊形态(Capsule) */
|
|
4132
|
+
[data-shortcut-modal="settings"] nav button,
|
|
3901
4133
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button {
|
|
3902
4134
|
box-sizing: border-box !important;
|
|
3903
4135
|
display: flex !important;
|
|
@@ -3915,8 +4147,10 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3915
4147
|
cursor: pointer !important;
|
|
3916
4148
|
transition: background 0.12s ease, color 0.12s ease !important;
|
|
3917
4149
|
text-align: left !important;
|
|
4150
|
+
width: 100% !important;
|
|
3918
4151
|
}
|
|
3919
4152
|
|
|
4153
|
+
[data-shortcut-modal="settings"] nav button svg,
|
|
3920
4154
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button svg {
|
|
3921
4155
|
width: 16px !important;
|
|
3922
4156
|
height: 16px !important;
|
|
@@ -3926,16 +4160,21 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3926
4160
|
transition: color 0.12s ease !important;
|
|
3927
4161
|
}
|
|
3928
4162
|
|
|
4163
|
+
[data-shortcut-modal="settings"] nav button:hover,
|
|
3929
4164
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button:hover {
|
|
3930
4165
|
background: var(--dsw-specific-sidebar-nav-item-hover, var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.05))) !important;
|
|
3931
4166
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3932
4167
|
}
|
|
3933
4168
|
|
|
4169
|
+
[data-shortcut-modal="settings"] nav button:hover svg,
|
|
3934
4170
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button:hover svg {
|
|
3935
4171
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3936
4172
|
}
|
|
3937
4173
|
|
|
3938
4174
|
/* 选中菜单项:纯正 Codex 胶囊激活态(Capsule Pill) */
|
|
4175
|
+
[data-shortcut-modal="settings"] nav button[aria-current="true"],
|
|
4176
|
+
[data-shortcut-modal="settings"] nav button[class*="active"],
|
|
4177
|
+
[data-shortcut-modal="settings"] nav [class*="navCell"][class*="active"],
|
|
3939
4178
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[aria-current="true"],
|
|
3940
4179
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[class*="active"] {
|
|
3941
4180
|
background: var(--dsw-specific-sidebar-nav-item-active, var(--dsw-alias-interactive-bg-selected, rgba(255, 255, 255, 0.10))) !important;
|
|
@@ -3943,18 +4182,22 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3943
4182
|
font-weight: 500 !important;
|
|
3944
4183
|
}
|
|
3945
4184
|
|
|
4185
|
+
[data-shortcut-modal="settings"] nav button[aria-current="true"] svg,
|
|
4186
|
+
[data-shortcut-modal="settings"] nav button[class*="active"] svg,
|
|
4187
|
+
[data-shortcut-modal="settings"] nav [class*="navCell"][class*="active"] svg,
|
|
3946
4188
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[aria-current="true"] svg,
|
|
3947
4189
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button[class*="active"] svg {
|
|
3948
4190
|
color: var(--dsw-alias-label-primary, #ffffff) !important;
|
|
3949
4191
|
}
|
|
3950
4192
|
|
|
4193
|
+
[data-shortcut-modal="settings"] nav button:focus-visible,
|
|
3951
4194
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button:focus-visible {
|
|
3952
4195
|
outline: 2px solid var(--dsw-alias-state-focus-ring, var(--dsw-static-deepseek-500, #4176e6)) !important;
|
|
3953
4196
|
outline-offset: 1px !important;
|
|
3954
4197
|
}
|
|
3955
4198
|
|
|
3956
4199
|
/* 右侧内容工作区 */
|
|
3957
|
-
[data-shortcut-modal="settings"] > div:not(nav) {
|
|
4200
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
3958
4201
|
display: flex !important;
|
|
3959
4202
|
min-width: 0 !important;
|
|
3960
4203
|
flex: 1 1 auto !important;
|
|
@@ -3963,7 +4206,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3963
4206
|
height: 100% !important;
|
|
3964
4207
|
}
|
|
3965
4208
|
|
|
3966
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child {
|
|
4209
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
3967
4210
|
box-sizing: border-box !important;
|
|
3968
4211
|
height: 56px !important;
|
|
3969
4212
|
min-height: 56px !important;
|
|
@@ -3975,26 +4218,26 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
3975
4218
|
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
3976
4219
|
}
|
|
3977
4220
|
|
|
3978
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child h2,
|
|
3979
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child span {
|
|
4221
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
|
|
4222
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span {
|
|
3980
4223
|
font-size: 16px;
|
|
3981
4224
|
font-weight: 600;
|
|
3982
4225
|
color: var(--dsw-alias-label-primary, #f4f4f5) !important;
|
|
3983
4226
|
letter-spacing: -0.01em;
|
|
3984
4227
|
}
|
|
3985
4228
|
|
|
3986
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child button,
|
|
3987
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child a {
|
|
4229
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
|
|
4230
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a {
|
|
3988
4231
|
color: var(--dsw-alias-label-secondary, #a1a1aa) !important;
|
|
3989
4232
|
transition: color 0.15s ease;
|
|
3990
4233
|
}
|
|
3991
4234
|
|
|
3992
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child button:hover,
|
|
3993
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :first-child a:hover {
|
|
4235
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
|
|
4236
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover {
|
|
3994
4237
|
color: var(--dsw-alias-label-primary, #f4f4f5) !important;
|
|
3995
4238
|
}
|
|
3996
4239
|
|
|
3997
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) {
|
|
4240
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
3998
4241
|
box-sizing: border-box !important;
|
|
3999
4242
|
min-height: 0 !important;
|
|
4000
4243
|
flex: 1 1 auto !important;
|
|
@@ -4006,22 +4249,55 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4006
4249
|
align-items: center !important;
|
|
4007
4250
|
}
|
|
4008
4251
|
|
|
4252
|
+
/* 浅色模式右侧内容区实色与文字按钮高对比度兜底 */
|
|
4253
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child,
|
|
4254
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
4255
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4256
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
|
|
4260
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span,
|
|
4261
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
|
|
4262
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span {
|
|
4263
|
+
color: var(--dsw-alias-label-primary, #18181b) !important;
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
|
|
4267
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a,
|
|
4268
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
|
|
4269
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a {
|
|
4270
|
+
color: var(--dsw-alias-label-secondary, #52525b) !important;
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
|
|
4274
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover,
|
|
4275
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
|
|
4276
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover {
|
|
4277
|
+
color: var(--dsw-alias-label-primary, #18181b) !important;
|
|
4278
|
+
}
|
|
4279
|
+
|
|
4280
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2),
|
|
4281
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
4282
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4009
4285
|
/* 右侧设置区固定宽度规范:居中排版,避免宽屏下拉伸 */
|
|
4010
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) > * {
|
|
4286
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) > * {
|
|
4011
4287
|
width: 100% !important;
|
|
4012
4288
|
max-width: 800px !important;
|
|
4013
4289
|
margin-inline: auto !important;
|
|
4014
4290
|
box-sizing: border-box !important;
|
|
4015
4291
|
}
|
|
4016
4292
|
|
|
4017
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) > * > * {
|
|
4293
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) > * > * {
|
|
4018
4294
|
width: 100% !important;
|
|
4019
4295
|
max-width: 800px !important;
|
|
4020
4296
|
margin-inline: auto !important;
|
|
4021
4297
|
box-sizing: border-box !important;
|
|
4022
4298
|
}
|
|
4023
4299
|
|
|
4024
|
-
[data-shortcut-modal="settings"] > div:not(nav) > :nth-child(2) [class*="section"] {
|
|
4300
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) [class*="section"] {
|
|
4025
4301
|
width: 100% !important;
|
|
4026
4302
|
max-width: 800px !important;
|
|
4027
4303
|
margin-inline: auto !important;
|
|
@@ -4066,7 +4342,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4066
4342
|
|
|
4067
4343
|
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button { flex: 0 0 auto !important; }
|
|
4068
4344
|
|
|
4069
|
-
[data-shortcut-modal="settings"] > div:not(nav) {
|
|
4345
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
4070
4346
|
flex: 1 1 auto !important;
|
|
4071
4347
|
min-height: 0 !important;
|
|
4072
4348
|
overflow-y: auto !important;
|
|
@@ -4075,6 +4351,223 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4075
4351
|
[data-shortcut-modal="settings"] > div > :first-child { height: 48px !important; min-height: 48px !important; padding: 0 16px !important; }
|
|
4076
4352
|
|
|
4077
4353
|
[data-shortcut-modal="settings"] > div > :nth-child(2) { padding: 16px !important; }
|
|
4354
|
+
|
|
4355
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4356
|
+
display: flex !important;
|
|
4357
|
+
flex-direction: column !important;
|
|
4358
|
+
}
|
|
4359
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"],
|
|
4360
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4361
|
+
width: 100% !important;
|
|
4362
|
+
max-width: none !important;
|
|
4363
|
+
min-width: 0 !important;
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
/* 新版宿主平铺 4 块 Grid 布局映射(0.2.1-alpha.3+),杜绝 4 列横向撕裂与多余空条 */
|
|
4368
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4369
|
+
display: grid !important;
|
|
4370
|
+
grid-template-columns: var(--dcu-settings-nav-width, 280px) minmax(0, 1fr) !important;
|
|
4371
|
+
grid-template-rows: auto minmax(0, 1fr) !important;
|
|
4372
|
+
flex-direction: unset !important;
|
|
4373
|
+
position: fixed !important;
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4377
|
+
grid-column: 1 !important;
|
|
4378
|
+
grid-row: 1 !important;
|
|
4379
|
+
box-sizing: border-box !important;
|
|
4380
|
+
width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4381
|
+
min-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4382
|
+
max-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4383
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4384
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4385
|
+
border-bottom: none !important;
|
|
4386
|
+
padding: 16px 12px 12px 12px !important;
|
|
4387
|
+
margin: 0 !important;
|
|
4388
|
+
height: auto !important;
|
|
4389
|
+
flex: none !important;
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4393
|
+
grid-column: 1 !important;
|
|
4394
|
+
grid-row: 2 !important;
|
|
4395
|
+
box-sizing: border-box !important;
|
|
4396
|
+
width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4397
|
+
min-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4398
|
+
max-width: var(--dcu-settings-nav-width, 280px) !important;
|
|
4399
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4400
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4401
|
+
border-top: none !important;
|
|
4402
|
+
padding: 0 12px 24px !important;
|
|
4403
|
+
margin: 0 !important;
|
|
4404
|
+
overflow-y: auto !important;
|
|
4405
|
+
height: 100% !important;
|
|
4406
|
+
flex: none !important;
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
/* 顶部操作区(打开配置文件 + 关闭按钮):整行 56px 顶栏,精准对齐老版标准头部 */
|
|
4410
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4411
|
+
grid-column: 2 !important;
|
|
4412
|
+
grid-row: 1 / -1 !important;
|
|
4413
|
+
position: absolute !important;
|
|
4414
|
+
top: 0 !important;
|
|
4415
|
+
left: 0 !important;
|
|
4416
|
+
right: 0 !important;
|
|
4417
|
+
height: 56px !important;
|
|
4418
|
+
min-height: 56px !important;
|
|
4419
|
+
box-sizing: border-box !important;
|
|
4420
|
+
padding: 0 32px !important;
|
|
4421
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4422
|
+
display: flex !important;
|
|
4423
|
+
align-items: center !important;
|
|
4424
|
+
justify-content: flex-end !important;
|
|
4425
|
+
gap: 12px !important;
|
|
4426
|
+
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
4427
|
+
z-index: 10 !important;
|
|
4428
|
+
margin: 0 !important;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] > * {
|
|
4432
|
+
pointer-events: auto !important;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
/* 右侧内容工作区:独占右侧整列(Row 1 至 Row 2 全高一体),首屏内容自 56px 顶栏下方舒展排列 */
|
|
4436
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4437
|
+
grid-column: 2 !important;
|
|
4438
|
+
grid-row: 1 / -1 !important;
|
|
4439
|
+
box-sizing: border-box !important;
|
|
4440
|
+
min-height: 0 !important;
|
|
4441
|
+
overflow-y: auto !important;
|
|
4442
|
+
padding-top: calc(56px + 28px) !important;
|
|
4443
|
+
padding-bottom: 64px !important;
|
|
4444
|
+
padding-inline: 48px !important;
|
|
4445
|
+
background: var(--dsw-alias-bg-layer-2, #18181b) !important;
|
|
4446
|
+
display: flex !important;
|
|
4447
|
+
flex-direction: column !important;
|
|
4448
|
+
align-items: center !important;
|
|
4449
|
+
margin: 0 !important;
|
|
4450
|
+
height: 100% !important;
|
|
4451
|
+
flex: none !important;
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4454
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > *,
|
|
4455
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > * > *,
|
|
4456
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] [class*="section"],
|
|
4457
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] [class*="card"] {
|
|
4458
|
+
box-sizing: border-box !important;
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > :not([style*="display: contents"]):not([data-slot]),
|
|
4462
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] > * > *,
|
|
4463
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] [class*="section"] {
|
|
4464
|
+
width: 100% !important;
|
|
4465
|
+
max-width: 800px !important;
|
|
4466
|
+
margin-inline: auto !important;
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
/* 浅色模式新版 Grid 兜底 */
|
|
4470
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"],
|
|
4471
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4472
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #ffffff)) !important;
|
|
4473
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4474
|
+
}
|
|
4475
|
+
|
|
4476
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav,
|
|
4477
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4478
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #ffffff)) !important;
|
|
4479
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
|
|
4483
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4484
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4485
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
|
|
4489
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4490
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
/* 云母悬浮双岛(Mica Mode)新版 Grid 适配:右侧整列为标准 56px 顶栏 + 16px 圆角大卡片 */
|
|
4494
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4495
|
+
grid-template-columns: calc(var(--dcu-settings-nav-width, 280px) - 24px) minmax(0, 1fr) !important;
|
|
4496
|
+
gap: 0 12px !important;
|
|
4497
|
+
padding: 8px 12px 12px 12px !important;
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4501
|
+
width: 100% !important;
|
|
4502
|
+
min-width: 0 !important;
|
|
4503
|
+
max-width: none !important;
|
|
4504
|
+
margin: 0 !important;
|
|
4505
|
+
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4506
|
+
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4507
|
+
border-top: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4508
|
+
border-bottom: none !important;
|
|
4509
|
+
border-radius: 16px 16px 0 0 !important;
|
|
4510
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4511
|
+
backdrop-filter: none !important;
|
|
4512
|
+
-webkit-backdrop-filter: none !important;
|
|
4513
|
+
box-shadow: none !important;
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4517
|
+
width: 100% !important;
|
|
4518
|
+
min-width: 0 !important;
|
|
4519
|
+
max-width: none !important;
|
|
4520
|
+
margin: 0 !important;
|
|
4521
|
+
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4522
|
+
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4523
|
+
border-bottom: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4524
|
+
border-top: none !important;
|
|
4525
|
+
border-radius: 0 0 16px 16px !important;
|
|
4526
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4527
|
+
backdrop-filter: none !important;
|
|
4528
|
+
-webkit-backdrop-filter: none !important;
|
|
4529
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
4530
|
+
}
|
|
4531
|
+
|
|
4532
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4533
|
+
grid-column: 2 !important;
|
|
4534
|
+
grid-row: 1 / -1 !important;
|
|
4535
|
+
position: absolute !important;
|
|
4536
|
+
top: 0 !important;
|
|
4537
|
+
left: 0 !important;
|
|
4538
|
+
right: 12px !important;
|
|
4539
|
+
margin: 0 !important;
|
|
4540
|
+
height: 56px !important;
|
|
4541
|
+
min-height: 56px !important;
|
|
4542
|
+
box-sizing: border-box !important;
|
|
4543
|
+
padding: 0 32px !important;
|
|
4544
|
+
border-radius: 16px 16px 0 0 !important;
|
|
4545
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(255, 255, 255, 0.08)) !important;
|
|
4546
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4547
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4548
|
+
display: flex !important;
|
|
4549
|
+
align-items: center !important;
|
|
4550
|
+
justify-content: flex-end !important;
|
|
4551
|
+
gap: 12px !important;
|
|
4552
|
+
z-index: 10 !important;
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4555
|
+
html[data-dsh-glass-float] body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
|
|
4556
|
+
html[data-dsh-glass-float] html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4557
|
+
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4558
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4559
|
+
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4562
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4563
|
+
margin: 0 !important;
|
|
4564
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4565
|
+
border-radius: 16px !important;
|
|
4566
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4567
|
+
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;
|
|
4568
|
+
padding-top: calc(56px + 28px) !important;
|
|
4569
|
+
padding-bottom: 48px !important;
|
|
4570
|
+
padding-inline: 36px !important;
|
|
4078
4571
|
}
|
|
4079
4572
|
`;
|
|
4080
4573
|
let lastSkinCheckTime = 0;
|
|
@@ -4166,8 +4659,8 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4166
4659
|
function decorateSettingsNav(panelEl) {
|
|
4167
4660
|
const sidebarWidth = getHostSidebarExpandedWidth(panelEl.ownerDocument || document);
|
|
4168
4661
|
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)");
|
|
4662
|
+
const navHeader = panelEl.querySelector(":scope > [class*=\"navTitle\"]") ?? panelEl.querySelector("nav > :first-child");
|
|
4663
|
+
const navList = panelEl.querySelector("nav [class*=\"navList\"]") ?? panelEl.querySelector("nav > :nth-child(2)") ?? panelEl.querySelector("nav > :first-child");
|
|
4171
4664
|
if (!navList) return () => {};
|
|
4172
4665
|
const isZh = (document.documentElement.lang || "zh").startsWith("zh");
|
|
4173
4666
|
let cleanHeader = () => {};
|
|
@@ -4175,6 +4668,7 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4175
4668
|
const originalChildren = Array.from(navHeader.childNodes);
|
|
4176
4669
|
originalChildren.forEach((child) => {
|
|
4177
4670
|
if (child instanceof HTMLElement) child.style.display = "none";
|
|
4671
|
+
else if (child.nodeType === 3) child.textContent = "";
|
|
4178
4672
|
});
|
|
4179
4673
|
const headerRoot = document.createElement("div");
|
|
4180
4674
|
headerRoot.className = "dcu-settings-nav-header-root";
|
|
@@ -4283,11 +4777,17 @@ html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
|
|
|
4283
4777
|
uninstallSettingsSkin(document);
|
|
4284
4778
|
}
|
|
4285
4779
|
};
|
|
4286
|
-
if (typeof document !== "undefined"
|
|
4780
|
+
if (typeof document !== "undefined") sync();
|
|
4287
4781
|
const observer = new MutationObserver((mutations) => {
|
|
4288
4782
|
for (const mutation of mutations) {
|
|
4289
4783
|
for (const node of mutation.addedNodes) if (node instanceof HTMLElement) {
|
|
4290
|
-
|
|
4784
|
+
const modal = node.getAttribute("data-shortcut-modal") === "settings" ? node : node.querySelector("[data-shortcut-modal=\"settings\"]");
|
|
4785
|
+
if (modal) {
|
|
4786
|
+
if (cachedSkinEnabledResult === true) {
|
|
4787
|
+
installSettingsSkin(document);
|
|
4788
|
+
cleanDecorator?.();
|
|
4789
|
+
cleanDecorator = decorateSettingsNav(modal);
|
|
4790
|
+
}
|
|
4291
4791
|
sync();
|
|
4292
4792
|
return;
|
|
4293
4793
|
}
|
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.4",
|
|
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": {
|