Skip to content

Fix auto dark mode and rename it to follow battery saver - #116

Merged
Mahdi-zarei merged 2 commits into
throneproj:mainfrom
sgt57:fix/auto-dark-mode
Oct 31, 2026
Merged

Mahdi-zarei merged 2 commits into
throneproj:mainfrom
sgt57:fix/auto-dark-mode

Conversation

@sgt57

@sgt57 sgt57 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Auto night mode (MODE_NIGHT_AUTO_BATTERY) uses the battery saver state in AppCompat, but Theme.usingNightMode() checked the system dark setting for it. So with battery saver on and the system in light mode, the app loaded dark resources but still applied light-mode tweaks such as the white theme and dark status bar icons.

  • usingNightMode() now uses PowerManager.isPowerSaveMode for auto, matching AppCompat.
  • The "Auto" option is renamed to "Follow battery saver" in all 20 locales, in order to describe its behavior precisely. The stored value is still 3, so existing settings are unchanged.

@Mahdi-zarei
Mahdi-zarei merged commit 243915c into throneproj:main Oct 31, 2026
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