Skip to content

fix(settings): wire appearance theme picker and DarkModeToggle into app (#38) - #91

Open
ghzhost wants to merge 1 commit into
StellarSend:mainfrom
ghzhost:fix/settings-appearance-theme-wiring
Open

fix(settings): wire appearance theme picker and DarkModeToggle into app (#38)#91
ghzhost wants to merge 1 commit into
StellarSend:mainfrom
ghzhost:fix/settings-appearance-theme-wiring

Conversation

@ghzhost

@ghzhost ghzhost commented Sep 2, 2026

Copy link
Copy Markdown

Summary

Addresses #38 by integrating the existing theme subsystem directly into the reachable application UI:

  1. Appearance & Display Section in pages/Settings.tsx:

    • Added Theme selector (Light, Dark, System) with visual feedback, icons (Sun, Moon, Laptop), and active state highlighting using useTheme().
    • Seamlessly integrated alongside the testnet warning display toggle.
  2. Quick Theme Switching in Navbar.tsx:

    • Rendered <DarkModeToggle /> in the top right navbar for desktop view.
    • Added theme toggle in the mobile dropdown navigation drawer.
  3. Testing:

    • Added src/pages/Settings.test.tsx verifying the Appearance section renders theme buttons and clicking them updates the document class and localStorage correctly.
    • All vitest unit tests passing and production build verified cleanly.

Fixes #38

…pp (StellarSend#38)

- Merge theme selection (light, dark, system) into routed Settings page under Appearance & Display section.
- Render DarkModeToggle in Navbar (both desktop and mobile drawer) for quick theme toggling.
- Add Settings.test.tsx integration test verifying theme toggle interactions and document class / localStorage updates.
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.

pages/SettingsPage.tsx (the only theme picker) is never routed, and DarkModeToggle is never rendered — there is no in-app way to change theme

1 participant