Dark-Mode hinzugefügt #issue/28 #32

Merged
lrsauvette merged 2 commits from issue/28 into develop 2026-07-31 22:06:13 +00:00
Owner
No description provided.
Reviewed-on: #29
Adds a per-user Dark Mode preference, persisted in the app's
JsonStore, that forces a dark Material 3 colour scheme based on
the same indigo seed colour as the light theme.

- New ThemeModeStore (lib/persistence/theme_mode_store.dart) that
  holds a single bool ('dark mode on/off') and exposes the matching
  ThemeMode for MaterialApp. Default is 'off' → ThemeMode.system,
  so the app still follows the OS setting when the user has not
  opted in.
- MaterialApp now provides a darkTheme in addition to the existing
  theme, and selects themeMode based on the store value.
- New 'Dunkles Farbschema' SwitchListTile in the 'Darstellung'
  section of the settings page.
- Unit tests for the store (default, enable + persistence, disable +
  persistence).
lrsauvette merged commit a696712a0c into develop 2026-07-31 22:06:13 +00:00
lrsauvette deleted branch issue/28 2026-07-31 22:18:42 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lrsauvette/sv-helfer!32
No description provided.