Add customisable automatic dark/light theme switching#1492
Conversation
…dark/light theme.
… automatic theme switching.
… updates immediately when you change the auto theme settings.
|
Thanks, could you rebase your changes? |
|
Done |
|
I like the automatic switching depending on the system settings. However, I hesitate to approve this because the settings are more complicated now. There are three setting for the theme. Would it be possible to always enable auto switching of the themes depending on system settings and let the user override the themes in the app? E.g. if the user does not want auto switching the user cannot turn off. But the user can set "dark" theme for both, "auto light theme" and "auto dark theme"? I am still thinking how we can simplify the options. If you have any idea, please share it. |
|
Yes I agree. However with multiple multiple option for dark and bright I did not see a simple way to do this. It would be easier if there would be a designed and marked "Default dark" and "default bright" - I guess we could do that, but it would be a separate change we would need to do first. |
Summary
This PR adds the ability for the app to automatically switch between dark and light themes based on the system's dark mode settings. It also allows the user to select which specific light and dark themes they prefer to use for this automatic switching.
Features Added
Technical Details
Themes.javato support anisDarkflag and resolve the theme dynamically based on systemuiModeand stored preferences.preferences.xml.SettingsActivity.javato populate the filtered dropdowns and handle preference change listeners for immediate UI updates.Verification