Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the "Use system default" theme option on pre API 28 devices #8713

Conversation

Ephemera42
Copy link
Contributor

Android Night Mode was introduced in API 8, which enables automatic switching between day and night modes. Therefore, the follow system theme option is available on pre API 28 devices.

output.webm

@wmontwe wmontwe self-assigned this Jan 6, 2025
Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ephemera42 Thank you for simplifying the theme handling logic. I tested the behavior on API levels 21-27 and did not find any side effects.

Do you maybe know how to enforce night mode before API level 28?

Please also remove the remaining theme_values_legacy array.

@Ephemera42 Ephemera42 force-pushed the follow-system-theme-on-pre-api-28-devices branch from e1205f4 to cfc524e Compare January 8, 2025 07:06
@Ephemera42
Copy link
Contributor Author

Do you maybe know how to enforce night mode before API level 28?

You can use the cmd uimode night yes command on API level 24+. For earlier versions, I guess there is no direct way to do this.

Please also remove the remaining theme_values_legacy array.

Fixed now, thanks for reminding me!

@Ephemera42 Ephemera42 requested a review from wmontwe January 8, 2025 07:33
Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@wmontwe wmontwe merged commit b864c00 into thunderbird:main Jan 8, 2025
3 checks passed
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