Skip to content

desk: unified theme, txt/md open, skip web home in desktop shell#101

Merged
schnsrw merged 1 commit into
mainfrom
desk/v0.1.0-integration
Jun 24, 2026
Merged

desk: unified theme, txt/md open, skip web home in desktop shell#101
schnsrw merged 1 commit into
mainfrom
desk/v0.1.0-integration

Conversation

@schnsrw

@schnsrw schnsrw commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Desktop-shell integration changes for Casual Office v0.1.0 (examples/vite entry point only).

  • Skip the web home/dashboard when launched with ?desk=1 — the Tauri launcher is the home, so the editor boots straight into the document (no dashboard flash).
  • Follow the launcher theme — bootstrap reads ?theme + the deskapp://theme Tauri event, applies data-theme + the editor's color-theme key, and dispatches deskapp:theme; App.tsx tracks themeMode.
  • Open .txt / .md / .markdown through the desk bridge (loadText, fileKind), skipping the .docx zip magic-byte check, routing into the markdown editor.

Scope is limited to examples/vite/src/ (desktop wiring) per the desk integration rules. Web behaviour is unchanged.

🤖 Generated with Claude Code

- Skip the editor's web home/dashboard when launched with ?desk=1 (the
  Tauri launcher is the home) — no dashboard flash.
- Follow the launcher theme: bootstrap reads ?theme + the deskapp://theme
  Tauri event, applies data-theme + the editor's color-theme key, dispatches
  deskapp:theme; App.tsx tracks themeMode.
- Open .txt / .md / .markdown via the desk bridge (loadText, fileKind),
  skipping the .docx zip magic-byte check; route into the markdown editor.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@schnsrw schnsrw merged commit ca7d7f0 into main Jun 24, 2026
6 of 7 checks passed
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