Skip to content

feat: add light/dark theme toggle to desktop app - #21

Merged
giswqs merged 1 commit into
mainfrom
feat/theme-mode-toggle
May 29, 2026
Merged

feat: add light/dark theme toggle to desktop app#21
giswqs merged 1 commit into
mainfrom
feat/theme-mode-toggle

Conversation

@giswqs

@giswqs giswqs commented May 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a useThemeMode hook that initializes from the OS prefers-color-scheme preference and keeps the document dark class and color-scheme in sync.
  • Wire the hook through App and DesktopShell to a new toolbar icon button that toggles between light and dark at runtime.

Test plan

  • Launch the desktop app and confirm it starts in the OS-preferred theme.
  • Click the toolbar sun/moon button and verify the UI switches between light and dark.
  • Confirm the toggle button label and icon update to reflect the current mode.

Add a useThemeMode hook that initializes from the OS color-scheme
preference and toggles the document `dark` class, wired to a new toolbar
button so users can switch themes at runtime.
Copilot AI review requested due to automatic review settings May 29, 2026 03:11
@giswqs
giswqs merged commit f667b3f into main May 29, 2026
1 check failed
@giswqs
giswqs deleted the feat/theme-mode-toggle branch May 29, 2026 03:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants