@kabmo-labs/kabmo 0.18.0 → 0.19.0

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.
Files changed (191) hide show
  1. package/README.md +10 -7
  2. package/dist/client/index.html +1 -1
  3. package/dist/client/index.js +475 -474
  4. package/dist/client/static/js/{index-tc09dtca.js → index-fcee4c13.js} +766 -765
  5. package/dist/client/static/js/index-sxdw908m.css +1 -0
  6. package/marketplace/plugins/command-runner/package.json +3 -2
  7. package/marketplace/plugins/git-forge/package.json +3 -2
  8. package/marketplace/plugins/session-info/package.json +3 -2
  9. package/marketplace/plugins/stats/package.json +3 -2
  10. package/package.json +3 -1
  11. package/src/client/components/auth/login-screen/index.tsx +2 -1
  12. package/src/client/components/common/ComposerPicker.tsx +1 -1
  13. package/src/client/components/common/FolderPicker.tsx +2 -2
  14. package/src/client/components/common/Modal.tsx +2 -2
  15. package/src/client/components/common/PWAInstallButton.tsx +2 -2
  16. package/src/client/components/common/ViewportSelector.tsx +1 -1
  17. package/src/client/components/common/anchored-menu/index.tsx +5 -1
  18. package/src/client/components/common/batch-selection/SelectionCheckbox.tsx +2 -1
  19. package/src/client/components/common/brand-wordmark/index.test.tsx +13 -2
  20. package/src/client/components/common/brand-wordmark/index.tsx +13 -2
  21. package/src/client/components/common/checkbox/style.test.ts +139 -0
  22. package/src/client/components/common/checkbox/style.ts +51 -0
  23. package/src/client/components/common/context-usage-button/index.tsx +2 -2
  24. package/src/client/components/common/file-icon/index.tsx +23 -9
  25. package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
  26. package/src/client/components/common/markdown-review/ReviewPopover.tsx +1 -1
  27. package/src/client/components/common/panel-mark/index.tsx +97 -0
  28. package/src/client/components/common/provider-icon/glyphs.test.ts +1 -1
  29. package/src/client/components/common/provider-icon/index.test.ts +14 -0
  30. package/src/client/components/common/provider-icon/index.tsx +4 -0
  31. package/src/client/components/common/provider-icon/resolve.test.ts +8 -7
  32. package/src/client/components/common/provider-icon/resolve.ts +16 -3
  33. package/src/client/components/common/session-actions-menu/index.tsx +1 -1
  34. package/src/client/components/common/toolbar-row/index.tsx +1 -1
  35. package/src/client/components/layout/ActivityBar.tsx +22 -3
  36. package/src/client/components/layout/LeftDock.tsx +9 -2
  37. package/src/client/components/layout/PanelVisibilityMenu.tsx +1 -1
  38. package/src/client/components/layout/WindowAura.tsx +27 -0
  39. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -1
  40. package/src/client/components/layout/desktop-layout/TopNavbar.tsx +2 -2
  41. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +11 -2
  42. package/src/client/components/layout/desktop-layout/index.tsx +3 -1
  43. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +3 -3
  44. package/src/client/components/layout/session-sidebar/Header.tsx +1 -1
  45. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  46. package/src/client/components/layout/session-sidebar/Toolbar.tsx +1 -1
  47. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +2 -2
  48. package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +1 -1
  49. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +13 -5
  50. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +2 -2
  51. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +2 -1
  52. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +2 -2
  53. package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
  54. package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
  55. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +1 -1
  56. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
  57. package/src/client/components/mobile/panel-chips.tsx +10 -2
  58. package/src/client/components/settings/Modal.tsx +4 -4
  59. package/src/client/components/settings/ProjectSelectorDropdown.tsx +2 -2
  60. package/src/client/components/settings/apply-side-effects.test.ts +30 -0
  61. package/src/client/components/settings/apply-side-effects.ts +14 -0
  62. package/src/client/components/settings/categories/AppearanceSettings.tsx +6 -0
  63. package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +2 -1
  64. package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +2 -1
  65. package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +144 -0
  66. package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.test.tsx +120 -0
  67. package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +180 -0
  68. package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +2 -1
  69. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +2 -2
  70. package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
  71. package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +1 -1
  72. package/src/client/components/settings/categories/panel-plugins/BuiltinList.tsx +21 -3
  73. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
  74. package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +51 -2
  75. package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +43 -10
  76. package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -1
  77. package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +2 -1
  78. package/src/client/components/settings/categories/project-settings/ModelDropdown.tsx +1 -1
  79. package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -1
  80. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +2 -2
  81. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +3 -2
  82. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
  83. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +3 -2
  84. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +2 -1
  85. package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
  86. package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
  87. package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
  88. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +3 -3
  89. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +2 -2
  90. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
  91. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +4 -3
  92. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
  93. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +1 -1
  94. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +2 -2
  95. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
  96. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
  97. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +2 -6
  98. package/src/client/components/workspace/context-panel/CostBreakdownPopover.tsx +1 -1
  99. package/src/client/components/workspace/diff-panel/index.tsx +2 -2
  100. package/src/client/components/workspace/editor/PluginRail.tsx +1 -1
  101. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
  102. package/src/client/components/workspace/editor/TabContextMenu.tsx +1 -1
  103. package/src/client/components/workspace/editor/Tabs.tsx +1 -1
  104. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +1 -1
  105. package/src/client/components/workspace/file-explorer/Modals.tsx +10 -10
  106. package/src/client/components/workspace/file-explorer/RootMenu.tsx +1 -1
  107. package/src/client/components/workspace/git-panel/BranchToolbar.test.tsx +130 -0
  108. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +21 -11
  109. package/src/client/components/workspace/git-panel/CommitBox.tsx +2 -1
  110. package/src/client/components/workspace/git-panel/Modals.tsx +2 -2
  111. package/src/client/components/workspace/git-panel/StashSection.tsx +2 -1
  112. package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -1
  113. package/src/client/components/workspace/git-panel/branch-modal/RenameDialog.tsx +2 -1
  114. package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -2
  115. package/src/client/components/workspace/git-panel/index.tsx +7 -0
  116. package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
  117. package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
  118. package/src/client/components/workspace/plugin-panel/catalog.tsx +7 -0
  119. package/src/client/components/workspace/plugin-panel/resolve.tsx +4 -0
  120. package/src/client/components/workspace/search-panel/Body.tsx +1 -1
  121. package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +1 -1
  122. package/src/client/glass.css +785 -0
  123. package/src/client/glass.test.ts +346 -0
  124. package/src/client/hooks/ui/glass-support.ts +57 -0
  125. package/src/client/hooks/ui/icon-style.ts +59 -0
  126. package/src/client/hooks/ui/stuck-header.test.ts +188 -0
  127. package/src/client/hooks/ui/stuck-header.ts +91 -0
  128. package/src/client/hooks/ui/style-attributes.test.ts +120 -0
  129. package/src/client/hooks/ui/surface-style.ts +56 -0
  130. package/src/client/hooks/workspace/panel-hues.ts +23 -0
  131. package/src/client/main.tsx +10 -0
  132. package/src/client/tailwind.css +264 -11
  133. package/src/server/lib/assets/shell-attributes.server.ts +80 -0
  134. package/src/server/lib/assets/shell-attributes.test.ts +86 -0
  135. package/src/server/lib/omp/rpc/frame-fold-host.test-util.ts +1 -0
  136. package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +2 -30
  137. package/src/server/lib/omp/rpc/frame-fold.test.ts +55 -0
  138. package/src/server/lib/omp/rpc/frame-fold.ts +4 -0
  139. package/src/server/lib/omp/rpc/manager.ts +2 -2
  140. package/src/server/lib/omp/rpc/process-helpers.ts +11 -0
  141. package/src/server/lib/omp/rpc/process.test.ts +106 -0
  142. package/src/server/lib/omp/rpc/process.ts +28 -4
  143. package/src/server/lib/omp/rpc/run-settle.server.ts +12 -0
  144. package/src/server/lib/omp/rpc/run-settle.test.ts +22 -0
  145. package/src/server/lib/omp/rpc/session-command-guards.ts +5 -0
  146. package/src/server/lib/omp/rpc/session-commands.test.ts +9 -1
  147. package/src/server/lib/omp/rpc/session-commands.ts +11 -0
  148. package/src/server/lib/omp/rpc/terminal-settle.ts +29 -7
  149. package/src/server/lib/panels/bundled-catalog.server.ts +1 -0
  150. package/src/server/lib/panels/manifest.test.ts +20 -0
  151. package/src/server/lib/panels/manifest.ts +12 -0
  152. package/src/server/lib/panels/scan.server.ts +4 -0
  153. package/src/server/lib/queue/delivery-dispatch.server.test.ts +48 -0
  154. package/src/server/lib/queue/delivery-harness.ts +8 -4
  155. package/src/server/lib/queue/delivery.server.test.ts +29 -0
  156. package/src/server/lib/queue/delivery.server.ts +39 -0
  157. package/src/server/lib/queue/store.server.test.ts +22 -2
  158. package/src/server/lib/queue/store.server.ts +33 -11
  159. package/src/server/plugins/ssr.ts +22 -5
  160. package/src/shared/lib/icons/file-brand-color.ts +38 -0
  161. package/src/shared/lib/icons/icon-paint-css.test.ts +234 -0
  162. package/src/shared/lib/icons/icon-paint-css.ts +284 -0
  163. package/src/shared/lib/icons/icon-paint-panel.ts +100 -0
  164. package/src/shared/lib/icons/tint-hues.generated.ts +230 -0
  165. package/src/shared/lib/icons/tint.test.ts +273 -0
  166. package/src/shared/lib/icons/tint.ts +219 -0
  167. package/src/shared/lib/models/provider/brand-color.test.ts +116 -0
  168. package/src/shared/lib/models/provider/brand-color.ts +103 -0
  169. package/src/shared/lib/omp/rpc/frame.test.ts +65 -0
  170. package/src/shared/lib/omp/rpc/frame.ts +58 -3
  171. package/src/shared/lib/settings/defaults.ts +4 -0
  172. package/src/shared/lib/theme/catalog.test.ts +5 -4
  173. package/src/shared/lib/theme/catalog.ts +18 -3
  174. package/src/shared/lib/theme/glass-support.test.ts +38 -0
  175. package/src/shared/lib/theme/glass-support.ts +73 -0
  176. package/src/shared/lib/theme/icon-style.test.ts +74 -0
  177. package/src/shared/lib/theme/icon-style.ts +90 -0
  178. package/src/shared/lib/theme/legibility.ts +91 -0
  179. package/src/shared/lib/theme/palettes/dark-extended.ts +152 -0
  180. package/src/shared/lib/theme/palettes/light-extended.ts +157 -0
  181. package/src/shared/lib/theme/surface-style.test.ts +68 -0
  182. package/src/shared/lib/theme/surface-style.ts +91 -0
  183. package/src/shared/lib/theme/theme.test.ts +11 -7
  184. package/src/shared/lib/workspace/panel-hues.test.ts +68 -0
  185. package/src/shared/lib/workspace/panel-hues.ts +57 -0
  186. package/src/shared/types/panels-registry.ts +6 -0
  187. package/src/shared/types/panels.ts +14 -0
  188. package/src/shared/types/settings/state.ts +26 -0
  189. package/src/test-support/fake-omp-frames.ts +163 -0
  190. package/dist/client/static/js/index-hp75vsv9.css +0 -1
  191. /package/src/{client/components/common/file-icon/brand-paths.ts → shared/lib/icons/file-brand-paths.ts} +0 -0
@@ -39,7 +39,7 @@ import { pluginEnablementKey } from '@/shared/lib/workspace/panel-ids';
39
39
  import { PANEL_MARK_SIZE } from '@/shared/lib/workspace/right-panels';
40
40
  import { SESSIONS_VIEW_ID, isLeftDockPanelId } from '@/shared/lib/workspace/left-dock';
41
41
  import { BUILTIN_PANELS } from '@/client/components/workspace/panels/builtin';
42
- import { PluginMark } from '@/client/components/settings/categories/panel-plugins/PluginMark';
42
+ import { PanelMark } from '@/client/components/common/panel-mark';
43
43
  import { PanelVisibilityMenu, type PanelVisibilityItem } from '@/client/components/layout/PanelVisibilityMenu';
44
44
 
45
45
  interface ActivityBarProps {
@@ -126,7 +126,7 @@ export function ActivityBar({ side, activePanel, onChangePanel, isPanelOpen, has
126
126
  ref={navRef}
127
127
  onContextMenu={openMenu}
128
128
  aria-label={side === 'left' ? 'Left panel views' : 'Right panel views'}
129
- className={`w-11 flex-shrink-0 ${side === 'left' ? 'border-r' : 'border-l'} border-ink/10 bg-paper flex flex-col items-center py-3 space-y-2 z-10`}
129
+ className={`glass-chrome w-11 flex-shrink-0 ${side === 'left' ? 'border-r' : 'border-l'} border-ink/10 bg-paper flex flex-col items-center py-3 space-y-2 z-10`}
130
130
  >
131
131
  <div className="flex flex-col items-center space-y-1 w-full">
132
132
  {drawn.map((panel, index) => (
@@ -243,7 +243,26 @@ function PanelButton({
243
243
  title={panel.title}
244
244
  aria-label={panel.title}
245
245
  >
246
- {panel.builtin && panel.icon ? panel.icon : panel.builtin ? <PluginMark name={panel.label} size={PANEL_MARK_SIZE} /> : <PluginMark name={panel.name} iconUrl={panel.iconUrl} size={PANEL_MARK_SIZE} />}
246
+ {/* The mark's wrapper carries the state as OPACITY, not as a text colour:
247
+ a `text-ink/40` here outranks the colour mode's hue rule, which is what
248
+ kept this rail monochrome while the panels behind it were tinted. In
249
+ the monochrome mode nothing dims the ink twice — `[data-idle]` is only
250
+ read under `[data-icon-style="color"]`.
251
+
252
+ The colour itself is NOT decided here: `PanelMark` stamps the same
253
+ `--panel-hue` the phone's chip strip and Settings read, so this button
254
+ cannot disagree with them about what `Files` looks like. */}
255
+ <PanelMark
256
+ className="panel-rail-mark inline-flex"
257
+ panelId={panel.id}
258
+ builtin={panel.builtin}
259
+ icon={panel.builtin ? panel.icon : undefined}
260
+ name={panel.builtin ? panel.label : panel.name}
261
+ {...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
262
+ {...(panel.color ? { color: panel.color } : {})}
263
+ size={PANEL_MARK_SIZE}
264
+ idle={!isActive}
265
+ />
247
266
  {showGitDot ? (
248
267
  <span
249
268
  className="absolute top-1.5 right-1.5 w-1.5 h-1.5 rounded-full bg-info"
@@ -101,7 +101,14 @@ export function LeftDockView({
101
101
  if (!panel.builtin && !isActive) return null;
102
102
  const viewBody: PanelBodyProps = { ...body, active: isActive, enabled: isActive };
103
103
  return (
104
- <div key={panel.id} className={isActive ? 'w-full h-full' : 'hidden'}>
104
+ // `data-panel-chrome`, like the right column's slot: a plugin
105
+ // placed on the LEFT draws its own `bg-paper` root too, and the
106
+ // column it lands in is chrome — one marker, both columns.
107
+ <div
108
+ key={panel.id}
109
+ data-panel-chrome=""
110
+ className={isActive ? 'w-full h-full' : 'hidden'}
111
+ >
105
112
  <PanelHostProvider value={viewBody}>{panel.render(viewBody)}</PanelHostProvider>
106
113
  </div>
107
114
  );
@@ -110,7 +117,7 @@ export function LeftDockView({
110
117
  whose bundle has not loaded — a notice, never a blank column. The
111
118
  session list is always drawable, so it is never this case. */}
112
119
  {!active ? (
113
- <div className="w-full h-full">
120
+ <div data-panel-chrome="" className="w-full h-full">
114
121
  <PluginPanelBody panelKey={activeView} />
115
122
  </div>
116
123
  ) : null}
@@ -76,7 +76,7 @@ export function PanelVisibilityMenu({ anchor, items, hidden, onToggle, onClose }
76
76
  // the position before the browser paints, so this never flashes.
77
77
  visibility: pos ? 'visible' : 'hidden',
78
78
  }}
79
- className="fixed z-[70] w-52 bg-paper border border-ink/15 rounded-lg shadow-xl py-1 text-xs text-ink font-sans"
79
+ className="glass-popover fixed z-[70] w-52 bg-paper border border-ink/15 rounded-lg shadow-xl py-1 text-xs text-ink font-sans"
80
80
  onClick={(e) => e.stopPropagation()}
81
81
  >
82
82
  <div className="px-3 py-1 text-[10px] uppercase font-mono text-ink/40 border-b border-ink/10 mb-1">
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The glow the glass plane blurs.
8
+ *
9
+ * Three empty, palette-tinted blobs under the window's frosted plane
10
+ * (`glass.css` draws them from `--aura`, which each child maps to a theme token).
11
+ * They exist because a `backdrop-filter` can only sample what is painted behind
12
+ * it: over a flat canvas the frost is indistinguishable from a plain translucent
13
+ * panel, and the whole material reads as "slightly washed out" instead of glass.
14
+ *
15
+ * It renders in every document and is inert in the classic look — no rule
16
+ * targets it without `[data-surface="glass"]` — because a conditional mount here
17
+ * would be a second place that knows about the surface style.
18
+ */
19
+ export function WindowAura() {
20
+ return (
21
+ <div className="app-window-aura" aria-hidden="true">
22
+ <i />
23
+ <i />
24
+ <i />
25
+ </div>
26
+ );
27
+ }
@@ -122,7 +122,7 @@ export function LeftColumn({
122
122
  view, then the strip across the whole width again. The rail must not
123
123
  start above the title — it would run under the app's own titlebar —
124
124
  and the strip must not stop at the view's edge. */}
125
- <div className="flex flex-col h-full w-full bg-paper">
125
+ <div className="glass-chrome flex flex-col h-full w-full bg-paper">
126
126
  <SessionSidebarHeader streamStatus={streamStatus} onCollapse={onCollapse} />
127
127
  <div className="flex flex-1 min-h-0 w-full">
128
128
  {railEnabled ? (
@@ -62,7 +62,7 @@ export function TopNavbar({
62
62
  );
63
63
  return (
64
64
  <header
65
- className="h-10 flex-shrink-0 border-b border-ink/10 bg-paper flex items-center justify-between z-20 titlebar-drag-region select-none"
65
+ className="glass-chrome h-10 flex-shrink-0 border-b border-ink/10 bg-paper flex items-center justify-between z-20 titlebar-drag-region select-none"
66
66
  {...dragRegionProps()}
67
67
  style={{
68
68
  // The sidebar's own header carries the left inset while it is open.
@@ -83,7 +83,7 @@ export function TopNavbar({
83
83
  <PanelLeft size={16} />
84
84
  </button>
85
85
  <span className="relative font-bold text-sm tracking-tight hidden sm:flex items-center flex-shrink-0">
86
- <BrandWordmark />
86
+ <BrandWordmark glow />
87
87
  {/* Same badge placement the sidebar header and the phone use:
88
88
  the stream indicator belongs to the wordmark, not to the
89
89
  control cluster. */}
@@ -301,8 +301,17 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
301
301
  onClose: onToggleRightPanel,
302
302
  layout: 'desktop',
303
303
  };
304
+ // `glass-chrome` + `data-panel-chrome` on the SLOT, not on each
305
+ // view: the right panel is column chrome, exactly like the session
306
+ // sidebar, and ten built-in views plus every plugin panel paint
307
+ // their own `bg-paper` root. Marking the slot makes the column one
308
+ // surface and leaves a future view nothing to forget.
304
309
  return (
305
- <div key={panel.id} className={isActiveView ? 'w-full h-full' : 'hidden'}>
310
+ <div
311
+ key={panel.id}
312
+ data-panel-chrome=""
313
+ className={`glass-chrome w-full h-full${isActiveView ? '' : ' hidden'}`}
314
+ >
306
315
  <PanelHostProvider value={body}>{panel.render(body)}</PanelHostProvider>
307
316
  </div>
308
317
  );
@@ -310,7 +319,7 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
310
319
  {/* The selection names a panel that is switched off, uninstalled, or
311
320
  whose bundle has not loaded — a notice, never a blank column. */}
312
321
  {!activePanel ? (
313
- <div className="w-full h-full">
322
+ <div data-panel-chrome="" className="glass-chrome w-full h-full">
314
323
  <PluginPanelBody panelKey={activeRightPanel} />
315
324
  </div>
316
325
  ) : null}
@@ -9,6 +9,7 @@ import type { OpenedFile } from '@/shared/types/fs';
9
9
  import { useSessionState } from '@/client/hooks/workspace/session-state';
10
10
  import { TopNavbar } from '@/client/components/layout/desktop-layout/TopNavbar';
11
11
  import { WorkspacePanels } from '@/client/components/layout/desktop-layout/WorkspacePanels';
12
+ import { WindowAura } from '@/client/components/layout/WindowAura';
12
13
  import { usePanelSlotPlugins } from '@/client/components/workspace/plugin-panel/resolve';
13
14
  import { useAgentStreamStatus } from '@/client/hooks/chat/omp/status';
14
15
  import { usePanelWidths } from '@/client/hooks/workspace/panel-widths';
@@ -224,8 +225,9 @@ export function DesktopLayout({ sessionId, onSwitchToMobile, appSettings = {} }:
224
225
  return (
225
226
  <div
226
227
  data-testid="app-root"
227
- className="relative flex flex-col h-screen w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas"
228
+ className="app-window relative flex flex-col h-screen w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas"
228
229
  >
230
+ <WindowAura />
229
231
 
230
232
  {/* Main Workspace: the resizable LEFT dock (rail + view, see
231
233
  `LeftColumn`) plus the right stack. */}
@@ -122,8 +122,8 @@ export function CategoryHeader({
122
122
  ) : (
123
123
  <ProjectIcon
124
124
  size={15}
125
- className="text-ink/75"
126
- style={{ color: folder.accentColor || undefined }}
125
+ className="project-accent-mark text-ink/75"
126
+ style={folder.accentColor ? { '--project-accent': folder.accentColor } : undefined}
127
127
  />
128
128
  )}
129
129
  </span>
@@ -182,7 +182,7 @@ export function CategoryHeader({
182
182
  anchor={showMenu ? anchor : null}
183
183
  align="end"
184
184
  ariaLabel={`Options for ${folder.name}`}
185
- className="w-44 rounded-md border border-ink/15 bg-paper py-1 text-xs shadow-lg"
185
+ className="glass-popover w-44 rounded-md border border-ink/15 bg-paper py-1 text-xs shadow-lg"
186
186
  onClose={onCloseMenu}
187
187
  >
188
188
  <WorkspaceOptionsMenu
@@ -38,7 +38,7 @@ export function SessionSidebarHeader({
38
38
  same placement the phone's header uses — it reads as part of the
39
39
  title instead of competing with the icon controls for a slot. */}
40
40
  <span className="relative font-bold text-sm tracking-tight flex items-center">
41
- <BrandWordmark />
41
+ <BrandWordmark glow />
42
42
  <span className="absolute -top-0.5 -right-1.5 flex">
43
43
  <StreamStatusDot status={streamStatus} />
44
44
  </span>
@@ -101,7 +101,7 @@ export function ToolbarOverflowMenu({
101
101
  {open && (
102
102
  <div
103
103
  role="menu"
104
- className={`absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 shadow-lg z-50 py-1 text-xs ${
104
+ className={`glass-popover absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 shadow-lg z-50 py-1 text-xs ${
105
105
  mobile ? 'rounded-xl p-2' : 'rounded-lg'
106
106
  }`}
107
107
  >
@@ -221,7 +221,7 @@ export function SessionSidebarToolbar({
221
221
  <ArrowUpDown size={14} />
222
222
  </button>
223
223
  {optionsOpen && (
224
- <div className="absolute right-0 top-full mt-2 w-48 bg-paper border border-ink/15 rounded-lg shadow-lg z-50 py-1" onMouseLeave={onCloseOptions}>
224
+ <div className="glass-popover absolute right-0 top-full mt-2 w-48 bg-paper border border-ink/15 rounded-lg shadow-lg z-50 py-1" onMouseLeave={onCloseOptions}>
225
225
  <SortMenu variant="desktop" sortOption={sortOption} onSortChange={onSortChange} />
226
226
  </div>
227
227
  )}
@@ -44,11 +44,11 @@ export function AboutModal({ isOpen, onClose, updates, onToast }: AboutModalProp
44
44
  return createPortal(
45
45
  <>
46
46
  <div
47
- className="fixed inset-0 bg-ink/40 backdrop-blur-[2px] z-50 flex items-center justify-center p-4 animate-in fade-in duration-200"
47
+ className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-4 animate-in fade-in duration-200"
48
48
  onClick={onClose}
49
49
  >
50
50
  <div
51
- className="relative bg-paper border border-ink/15 rounded-2xl shadow-2xl w-full max-w-[340px] p-6 text-center text-ink select-none"
51
+ className="glass-overlay relative bg-paper border border-ink/15 rounded-2xl shadow-2xl w-full max-w-[340px] p-6 text-center text-ink select-none"
52
52
  onClick={(e) => e.stopPropagation()}
53
53
  >
54
54
  {/* Close Button */}
@@ -136,7 +136,7 @@ export function SidebarActionRow({
136
136
  </button>
137
137
  {optionsOpen && (
138
138
  <div
139
- className="absolute right-0 top-full z-50 mt-1 w-48 rounded-lg border border-ink/15 bg-paper py-1 shadow-lg"
139
+ className="glass-popover absolute right-0 top-full z-50 mt-1 w-48 rounded-lg border border-ink/15 bg-paper py-1 shadow-lg"
140
140
  onMouseLeave={onCloseOptions}
141
141
  >
142
142
  <SortMenu variant="desktop" sortOption={sortOption} onSortChange={onSortChange} />
@@ -47,6 +47,7 @@
47
47
  */
48
48
 
49
49
  import { useRef, useState } from 'preact/hooks';
50
+ import { useStuckHeader } from '@/client/hooks/ui/stuck-header';
50
51
  import type { ReactNode } from 'preact/compat';
51
52
  import { ChevronDown, ChevronRight, MoreHorizontal, Pin, Plus } from 'lucide-preact';
52
53
  import { AnchoredMenu } from '@/client/components/common/anchored-menu';
@@ -96,11 +97,18 @@ export function WorkspaceHeader({
96
97
  // it, so a rectangle read on every render would drag the panel along with the
97
98
  // rows instead of leaving it where the click put it.
98
99
  const [anchor, setAnchor] = useState<AnchorRect | null>(null);
100
+ // A surface only while PINNED: at rest the header is the first line of the
101
+ // list and any fill is a band across a uniform sidebar. Once rows slide under
102
+ // it, it needs a field of its own — that is the state `data-stuck` marks.
103
+ const headerRef = useRef<HTMLDivElement>(null);
104
+ const stuck = useStuckHeader(headerRef);
99
105
 
100
106
  return (
101
107
  <div
108
+ ref={headerRef}
109
+ data-stuck={stuck ? '' : undefined}
102
110
  className={`group/ws sticky top-0 z-10 -mx-1 flex items-center gap-1 rounded-md px-1 text-xs font-semibold text-ink ${
103
- touch ? 'h-8 bg-canvas' : 'h-[26px] bg-paper'
111
+ touch ? 'h-8 bg-canvas glass-sticky' : 'h-[26px] bg-paper glass-sticky'
104
112
  }`}
105
113
  >
106
114
  <button
@@ -128,12 +136,12 @@ export function WorkspaceHeader({
128
136
  referrerPolicy="no-referrer"
129
137
  />
130
138
  ) : (
131
- <ProjectIcon size={15} className="text-ink/70" style={{ color: accent }} />
139
+ <ProjectIcon size={15} className="project-accent-mark text-ink/70" style={accent ? { '--project-accent': accent } : undefined} />
132
140
  )}
133
141
  </span>
134
142
  )}
135
143
 
136
- <span className="truncate text-[13px] font-semibold tracking-tight">{folder.name}</span>
144
+ <span className="glass-sticky-label truncate text-[13px] font-semibold tracking-tight">{folder.name}</span>
137
145
  {folder.isPinned && <Pin size={10} className="shrink-0 text-ink/45" />}
138
146
 
139
147
  {/* The accent as a dot: the icon column keeps the chevron's slot, so the
@@ -142,7 +150,7 @@ export function WorkspaceHeader({
142
150
  <span aria-hidden="true" className="h-1.5 w-1.5 shrink-0 rounded-full" style={{ backgroundColor: accent }} />
143
151
  )}
144
152
 
145
- <span className="shrink-0 font-mono text-[10px] font-normal tabular-nums text-ink/35">{sessionCount}</span>
153
+ <span className="glass-sticky-label shrink-0 font-mono text-[10px] font-normal tabular-nums text-ink/35">{sessionCount}</span>
146
154
 
147
155
  <span className="ml-auto shrink-0 text-ink/40">
148
156
  {isOpen ? <ChevronDown size={touch ? 14 : 12} /> : <ChevronRight size={touch ? 14 : 12} />}
@@ -198,7 +206,7 @@ export function WorkspaceHeader({
198
206
  anchor={showMenu && menu ? anchor : null}
199
207
  align="end"
200
208
  ariaLabel={`Options for ${folder.name}`}
201
- className="w-44 rounded-md border border-ink/15 bg-paper py-1 text-xs shadow-lg"
209
+ className="glass-popover w-44 rounded-md border border-ink/15 bg-paper py-1 text-xs shadow-lg"
202
210
  onClose={onCloseMenu}
203
211
  >
204
212
  {menu}
@@ -136,8 +136,8 @@ function NewWorkspaceForm({
136
136
  };
137
137
 
138
138
  return (
139
- <div className="fixed inset-0 bg-ink/20 z-50 flex items-center justify-center p-4">
140
- <div className="bg-paper border border-ink/10 rounded-lg shadow-xl w-[30rem] max-w-full max-h-full overflow-y-auto flex flex-col">
139
+ <div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center p-4">
140
+ <div className="glass-overlay bg-paper border border-ink/10 rounded-lg shadow-xl w-[30rem] max-w-full max-h-full overflow-y-auto flex flex-col">
141
141
  <div className="flex justify-between items-center px-4 pt-4 pb-2 border-b border-ink/10">
142
142
  <h3 className="font-semibold text-sm">New Workspace</h3>
143
143
  <button
@@ -13,6 +13,7 @@
13
13
  * refuses.
14
14
  */
15
15
 
16
+ import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
16
17
  import { useEffect, useState } from 'preact/hooks';
17
18
  import { Loader2 } from 'lucide-preact';
18
19
  import { validateSchedule } from '@/shared/lib/schedule/parse';
@@ -185,7 +186,7 @@ export function TaskForm({
185
186
  checked={useActiveSession}
186
187
  disabled={!activeSessionId}
187
188
  onChange={(e) => setUseActiveSession(e.currentTarget.checked)}
188
- className="accent-ink"
189
+ className={`${CHECKBOX_CLASS} accent-ink`}
189
190
  />
190
191
  <span>Resume the open session each run</span>
191
192
  </label>
@@ -127,14 +127,14 @@ export function SchedulerModal({
127
127
 
128
128
  return (
129
129
  <div
130
- className="fixed inset-0 bg-ink/30 backdrop-blur-[2px] z-50 flex items-center justify-center p-4"
130
+ className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-4"
131
131
  onClick={busy ? undefined : onClose}
132
132
  role="dialog"
133
133
  aria-modal="true"
134
134
  aria-label="Scheduled tasks"
135
135
  >
136
136
  <div
137
- className="bg-paper border border-ink/15 rounded-xl shadow-2xl w-[min(94vw,640px)] max-h-[88vh] flex flex-col overflow-hidden text-ink"
137
+ className="glass-overlay bg-paper border border-ink/15 rounded-xl shadow-2xl w-[min(94vw,640px)] max-h-[88vh] flex flex-col overflow-hidden text-ink"
138
138
  onClick={(e) => e.stopPropagation()}
139
139
  >
140
140
  <div className="flex items-center justify-between px-4 py-3 border-b border-ink/10">
@@ -4,6 +4,7 @@ import { useKabmoEvent } from '@/client/hooks/ui/window-event';
4
4
  import { registerBackHandler } from '@/client/lib/native/back';
5
5
  import type { SettingsCategoryId } from '@/shared/types';
6
6
  import { MobileMainView } from '@/client/components/mobile/MainView';
7
+ import { WindowAura } from '@/client/components/layout/WindowAura';
7
8
  import { MobileSessionSidebar } from '@/client/components/mobile/SessionSidebar';
8
9
  import { MobileRightSidebar } from '@/client/components/mobile/RightSidebar';
9
10
  import { MobileFullEditor } from '@/client/components/mobile/mobile-right-sidebar/FullEditor';
@@ -242,8 +243,9 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
242
243
  return (
243
244
  <div
244
245
  data-testid="app-root"
245
- className="flex flex-col h-dvh w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas relative"
246
+ className="app-window flex flex-col h-dvh w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas relative"
246
247
  >
248
+ <WindowAura />
247
249
  {/* The plugin system's boot, on the PHONE too. It is mounted at the top of
248
250
  the workspace on the desktop (`desktop-layout/index.tsx`), and without
249
251
  it here a phone had no plugin CONTEXT (so `usePanelInfo()` answered
@@ -138,7 +138,7 @@ export function MobileHeader({
138
138
  into the `⋯` menu (`HeaderControls`), which is what pays for the
139
139
  wordmark plus the slash beside it. */}
140
140
  <span className="relative font-bold text-sm tracking-tight flex items-center flex-shrink-0">
141
- <BrandWordmark />
141
+ <BrandWordmark glow />
142
142
  <span className="absolute -top-0.5 -right-1.5 flex">
143
143
  <StreamStatusDot status={streamStatus} />
144
144
  </span>
@@ -181,7 +181,7 @@ export function MobileHeader({
181
181
  to state them separately and drifted. */}
182
182
  {showSessionPicker && (
183
183
  <div
184
- className="fixed z-50 bg-paper border border-ink/15 rounded-xl shadow-lg p-2 text-xs"
184
+ className="glass-popover fixed z-50 bg-paper border border-ink/15 rounded-xl shadow-lg p-2 text-xs"
185
185
  style={mobileOverlayStyle()}
186
186
  >
187
187
  <button
@@ -46,7 +46,7 @@ export function MobileSessionHeader({ onClose, viewLabel = 'Sessions' }: { onClo
46
46
  >
47
47
  <div className="flex items-center space-x-2.5 titlebar-no-drag min-w-0">
48
48
  <span className="font-bold text-sm tracking-tight flex items-center flex-shrink-0">
49
- <BrandWordmark className="text-[16px]" />
49
+ <BrandWordmark className="text-[16px]" glow />
50
50
  </span>
51
51
  <span className="text-ink/25 text-xs select-none flex-shrink-0">/</span>
52
52
  <span className="text-[11px] font-semibold text-ink/60 uppercase tracking-wider font-mono truncate">{viewLabel}</span>
@@ -229,7 +229,7 @@ export function MobileSessionToolbar({
229
229
  </button>
230
230
 
231
231
  {optionsOpen && (
232
- <div className="absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 rounded-xl shadow-xl z-50 p-2 text-xs">
232
+ <div className="glass-popover absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 rounded-xl shadow-xl z-50 p-2 text-xs">
233
233
  <SortMenu variant="mobile" sortOption={sortOption} onSortChange={onSortChange} />
234
234
  </div>
235
235
  )}
@@ -31,7 +31,7 @@
31
31
 
32
32
  import { useCallback, useEffect, useLayoutEffect, useRef } from 'preact/hooks';
33
33
  import type { ResolvedPanel } from '@/client/components/workspace/plugin-panel/catalog';
34
- import { PluginMark } from '@/client/components/settings/categories/panel-plugins/PluginMark';
34
+ import { PanelMark } from '@/client/components/common/panel-mark';
35
35
  import { PANEL_MARK_SIZE } from '@/shared/lib/workspace/right-panels';
36
36
  import { scrollLeftForReveal } from '@/shared/lib/ui/scroll-reveal';
37
37
 
@@ -140,7 +140,15 @@ export function PanelChips({ panels, activeId, onSelect, hasGitChanges = false }
140
140
  }`}
141
141
  title={panel.title}
142
142
  >
143
- {panel.builtin ? panel.icon : <PluginMark name={panel.name} iconUrl={panel.iconUrl} size={PANEL_MARK_SIZE} />}
143
+ <PanelMark
144
+ panelId={panel.id}
145
+ builtin={panel.builtin}
146
+ icon={panel.builtin ? panel.icon : undefined}
147
+ name={panel.builtin ? panel.label : panel.name}
148
+ {...(panel.iconUrl ? { iconUrl: panel.iconUrl } : {})}
149
+ {...(panel.color ? { color: panel.color } : {})}
150
+ size={PANEL_MARK_SIZE}
151
+ />
144
152
  {active && (
145
153
  <span className={panel.id === 'git' ? 'tracking-wide' : undefined}>{panel.label}</span>
146
154
  )}
@@ -189,11 +189,11 @@ export function SettingsModal({
189
189
 
190
190
  return (
191
191
  <div
192
- className="fixed inset-0 bg-ink/40 backdrop-blur-[2px] z-50 flex items-center justify-center p-0 md:p-6 animate-in fade-in duration-150"
192
+ className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-0 md:p-6 animate-in fade-in duration-150"
193
193
  onClick={onClose}
194
194
  >
195
195
  <div
196
- className="relative bg-paper border border-ink/15 md:rounded-2xl shadow-2xl w-full h-full md:max-w-5xl lg:max-w-6xl xl:max-w-[1280px] md:h-[min(90vh,900px)] md:max-h-[92vh] flex flex-col md:flex-row overflow-hidden text-ink"
196
+ className="glass-overlay relative bg-paper border border-ink/15 md:rounded-2xl shadow-2xl w-full h-full md:max-w-5xl lg:max-w-6xl xl:max-w-[1280px] md:h-[min(90vh,900px)] md:max-h-[92vh] flex flex-col md:flex-row overflow-hidden text-ink"
197
197
  onClick={(e) => e.stopPropagation()}
198
198
  >
199
199
  {/* DESKTOP VIEW: 2-Column Split */}
@@ -212,13 +212,13 @@ export function SettingsModal({
212
212
  </div>
213
213
 
214
214
  {/* DESKTOP & MOBILE DETAIL VIEW */}
215
- <div className={`flex-1 flex-col h-full bg-paper overflow-hidden ${isMobileDrilled ? 'flex' : 'hidden md:flex'}`}>
215
+ <div className={`flex-1 flex-col h-full overflow-hidden ${isMobileDrilled ? 'flex' : 'hidden md:flex'}`}>
216
216
  {/* Header Bar. The height and padding carry the safe-area insets on a
217
217
  phone: the modal is full-screen below `md`, so without them the
218
218
  back button and the title sit under the status bar / notch, the
219
219
  same way the mobile chrome (header, editor, diff) already avoids. */}
220
220
  <div
221
- className="px-6 border-b border-ink/10 flex items-center justify-between flex-shrink-0 bg-paper"
221
+ className="px-6 border-b border-ink/10 flex items-center justify-between flex-shrink-0"
222
222
  style={{
223
223
  height: 'calc(4rem + env(safe-area-inset-top, 0px))',
224
224
  paddingTop: 'env(safe-area-inset-top, 0px)',
@@ -125,7 +125,7 @@ export const ProjectSelectorDropdown: FunctionComponent<ProjectSelectorDropdownP
125
125
  {isOpen && (
126
126
  <>
127
127
  <div className="fixed inset-0 z-20" onClick={() => setIsOpen(false)} />
128
- <div className="absolute left-2.5 right-2.5 top-12 z-30 bg-paper border border-ink/15 rounded-lg shadow-lg py-1 animate-in fade-in zoom-in-95 duration-100">
128
+ <div className="glass-popover absolute left-2.5 right-2.5 top-12 z-30 bg-paper border border-ink/15 rounded-lg shadow-lg py-1 animate-in fade-in zoom-in-95 duration-100">
129
129
  {optionButtons}
130
130
  </div>
131
131
  </>
@@ -149,7 +149,7 @@ export const ProjectSelectorDropdown: FunctionComponent<ProjectSelectorDropdownP
149
149
  </button>
150
150
 
151
151
  {isOpen && (
152
- <div className="absolute top-12 left-3 right-3 bg-paper border border-ink/20 rounded-lg shadow-lg z-30 py-1 divide-y divide-ink/5 animate-in fade-in zoom-in-95 duration-100">
152
+ <div className="glass-popover absolute top-12 left-3 right-3 bg-paper border border-ink/20 rounded-lg shadow-lg z-30 py-1 divide-y divide-ink/5 animate-in fade-in zoom-in-95 duration-100">
153
153
  {optionButtons}
154
154
  </div>
155
155
  )}
@@ -88,6 +88,36 @@ describe('applySettingsSideEffects', () => {
88
88
  expect(events).toEqual([]);
89
89
  });
90
90
 
91
+ test('the surface material is written to the document, and only when it moves', () => {
92
+ installDom();
93
+ const root = globalThis.document.documentElement;
94
+
95
+ applySettingsSideEffects(state(), state({ surfaceStyle: 'glass' }));
96
+ expect(root.getAttribute('data-surface')).toBe('glass');
97
+
98
+ // Same value again: the attribute must survive an unrelated re-render
99
+ // untouched (the writer removes the default, so a stray call would clear it).
100
+ applySettingsSideEffects(state({ surfaceStyle: 'glass' }), state({ surfaceStyle: 'glass', goalDefaultBudget: 1 }));
101
+ expect(root.getAttribute('data-surface')).toBe('glass');
102
+
103
+ applySettingsSideEffects(state({ surfaceStyle: 'glass' }), state({ surfaceStyle: 'classic' }));
104
+ expect(root.hasAttribute('data-surface')).toBe(false);
105
+ });
106
+
107
+ test('the brand-mark style is written to the document, and only when it moves', () => {
108
+ installDom();
109
+ const root = globalThis.document.documentElement;
110
+
111
+ applySettingsSideEffects(state(), state({ iconStyle: 'color' }));
112
+ expect(root.getAttribute('data-icon-style')).toBe('color');
113
+
114
+ applySettingsSideEffects(state({ iconStyle: 'color' }), state({ iconStyle: 'color', goalDefaultBudget: 1 }));
115
+ expect(root.getAttribute('data-icon-style')).toBe('color');
116
+
117
+ applySettingsSideEffects(state({ iconStyle: 'color' }), state({ iconStyle: 'monochrome' }));
118
+ expect(root.hasAttribute('data-icon-style')).toBe(false);
119
+ });
120
+
91
121
  test('the editor font still announces when it moves', () => {
92
122
  const win = installDom();
93
123
  const seen: unknown[] = [];
@@ -33,6 +33,8 @@ import { applyChatWidthMode } from '@/client/hooks/chat/timeline/width-mode';
33
33
  import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
34
34
  import { applySidebarStyle } from '@/client/hooks/workspace/sidebar-style';
35
35
  import { applyComposerStyle } from '@/client/hooks/chat/composer/style';
36
+ import { applySurfaceStyle } from '@/client/hooks/ui/surface-style';
37
+ import { applyIconStyle } from '@/client/hooks/ui/icon-style';
36
38
  import { EDITOR_FONT_CHANGED_EVENT } from '@/client/hooks/editor/font';
37
39
  import { EDITOR_THEME_CHANGED_EVENT } from '@/client/hooks/editor/theme';
38
40
 
@@ -87,4 +89,16 @@ export function applySettingsSideEffects(previous: SettingsState, next: Settings
87
89
  if (next.composerStyle !== previous.composerStyle) {
88
90
  applyComposerStyle(next.composerStyle);
89
91
  }
92
+
93
+ // The surface material and the brand-mark paint are CSS-only: one attribute
94
+ // each on `<html>`, which every rule already keys on. Written here so the
95
+ // panels behind the modal repaint on the click, and so the next render cannot
96
+ // show a style the document does not carry.
97
+ if (next.surfaceStyle !== previous.surfaceStyle) {
98
+ applySurfaceStyle(next.surfaceStyle);
99
+ }
100
+
101
+ if (next.iconStyle !== previous.iconStyle) {
102
+ applyIconStyle(next.iconStyle);
103
+ }
90
104
  }
@@ -3,6 +3,8 @@ import type { SettingsState } from '@/shared/types';
3
3
  import { resolveThemeId } from '@/shared/lib/theme/catalog';
4
4
  import { ThemeGrid } from '@/client/components/settings/categories/appearance-settings/ThemeGrid';
5
5
  import { SidebarStyleSection } from '@/client/components/settings/categories/appearance-settings/SidebarStyleSection';
6
+ import { SurfaceStyleSection } from '@/client/components/settings/categories/appearance-settings/SurfaceStyleSection';
7
+ import { IconStyleSection } from '@/client/components/settings/categories/appearance-settings/IconStyleSection';
6
8
  import { EditorFontSection } from '@/client/components/settings/categories/appearance-settings/EditorFontSection';
7
9
  import { EditorThemeSection } from '@/client/components/settings/categories/appearance-settings/EditorThemeSection';
8
10
  import { EditorIndentSection } from '@/client/components/settings/categories/appearance-settings/EditorIndentSection';
@@ -36,6 +38,10 @@ export function AppearanceSettings({ settings, onUpdate }: AppearanceSettingsPro
36
38
  </div>
37
39
 
38
40
  <SidebarStyleSection settings={settings} onUpdate={onUpdate} />
41
+
42
+ <SurfaceStyleSection settings={settings} onUpdate={onUpdate} />
43
+
44
+ <IconStyleSection settings={settings} onUpdate={onUpdate} />
39
45
  </section>
40
46
 
41
47
  <EditorFontSection settings={settings} onUpdate={onUpdate} />
@@ -17,6 +17,7 @@
17
17
  * read once would never arrive. The event fires only when a value moved.
18
18
  */
19
19
 
20
+ import { CHECKBOX_CLASS } from '@/client/components/common/checkbox/style';
20
21
  import { readKabmoSetting, writeKabmoSettings } from '@/shared/lib/settings/client';
21
22
  import type { SettingsState } from '@/shared/types';
22
23
  import {
@@ -52,7 +53,7 @@ function Toggle({
52
53
  type="checkbox"
53
54
  checked={checked}
54
55
  onChange={(event) => onChange((event.target as HTMLInputElement).checked)}
55
- className="mt-0.5 shrink-0 accent-ink"
56
+ className={`${CHECKBOX_CLASS} mt-0.5 shrink-0 accent-ink`}
56
57
  />
57
58
  </label>
58
59
  );