Skip to content

Add system-following Auto theme mode and bump release to 3.2.2#106

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/auto-dark-light-mode
Draft

Add system-following Auto theme mode and bump release to 3.2.2#106
Copilot wants to merge 3 commits into
mainfrom
copilot/auto-dark-light-mode

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 29, 2026

This updates theme handling so users can choose Auto mode and have app appearance follow the system light/dark setting on iOS, instead of manually toggling only Light/Dark. It also updates release metadata for 3.2.2.

  • Theme mode model + persistence

    • Expanded theme preference from binary to auto | light | dark.
    • Added themeMode + setThemeMode(mode) in ThemeContext.
    • Kept backward compatibility for legacy boolean theme values.
  • System appearance integration

    • Wired auto mode to useColorScheme() so effective theme tracks OS changes.
    • Existing isDark consumers continue to work, now derived from selected mode + system scheme.
  • Settings UI

    • Replaced the Dark Mode switch in app/settings/theme.tsx with an explicit segmented-style selector:
      • Auto
      • Light
      • Dark
  • Localization + release metadata

    • Added English translation keys for the new selector labels.
    • Added a new top changelog entry in constants/changelog.ts for 3.2.2.
    • Bumped package.json (and lockfile) version to 3.2.2.
// Theme selector usage in settings
{(['auto', 'light', 'dark'] as const).map((mode) => (
  <TouchableOpacity key={mode} onPress={() => setThemeMode(mode)}>
    <Text>{t(`screens.settings.themeMode${mode.charAt(0).toUpperCase()}${mode.slice(1)}`)}</Text>
  </TouchableOpacity>
))}

Copilot AI linked an issue May 29, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add automatic dark/light mode feature to settings Add system-following Auto theme mode and bump release to 3.2.2 May 29, 2026
Copilot AI requested a review from taylorcox75 May 29, 2026 22:44
@taylorcox75
Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 30, 2026

@copilot resolve the merge conflicts in this pull request

Resolved — I merged origin/main into this branch and fixed the conflicts in package.json, package-lock.json, and constants/changelog.ts in commit c2ae509.

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.

Automatic dark/light mode

2 participants