Skip to content

feat(theme): force dark-only mode launcher-wide#561

Open
Kosinkadink wants to merge 1 commit into
feat/brand-redesignfrom
feat/force-dark-mode
Open

feat(theme): force dark-only mode launcher-wide#561
Kosinkadink wants to merge 1 commit into
feat/brand-redesignfrom
feat/force-dark-mode

Conversation

@Kosinkadink

Copy link
Copy Markdown
Member

Stacks on top of #560 (brand redesign integration). The launcher's brand redesign is dark-only, so this PR drops the runtime theme switch:

  • src/renderer/src/assets/main.css: remove [data-theme=light] block
  • src/renderer/src/composables/useTheme.ts: stamp data-theme=dark on the documentElement; no IPC roundtrip, no listener
  • src/main/lib/ipc/shared.ts: resolveTheme() always returns 'dark'
  • src/main/lib/ipc/registerSettingsHandlers.ts: drop the theme picker field and the nativeTheme.on('updated') listener; set-setting('theme', ...) no longer rebroadcasts

The Theme / ResolvedTheme types and the theme-changed / get-resolved-theme IPC channels stay in place for ABI compatibility — the title-bar bridge still pushes a per-page bg/text colour for the install's own ComfyUI theme — but the launcher itself never fires them.

Verification

  • pnpm run typecheck
  • pnpm run lint
  • pnpm run build
  • pnpm run test (937/937) ✅

The launcher's brand redesign is dark-only. Drop the [data-theme=light] CSS block, simplify useTheme() to stamp data-theme=dark on the documentElement, and have resolveTheme() always return 'dark'. Remove the theme picker field and the nativeTheme listener from the settings handler. The Theme / ResolvedTheme types and the theme-changed / get-resolved-theme IPC channels stay in place for ABI compatibility (the title-bar bridge still pushes a per-page bg/text colour for the install's own ComfyUI theme), but they never fire from the launcher itself.

Amp-Thread-ID: https://ampcode.com/threads/T-019e2e15-31f3-704e-acf3-d3dac18b6622
Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant