Skip to content

[Android] Sobriety > Dark UI (ESOB004) #46

@StanislasJC

Description

@StanislasJC

Improvement of the following issue : Add Theme.MaterialComponents.Light detection in DarkUIThemeXmlRule #32

Developers are allowed to apply native themes for their app, or derive new ones throught inheritence. This decision has a significant impact on energy consumption since displaying dark colors is particularly beneficial for mobile devices with (AM)OLED screens (under certain conditions). By default Android will set a dark style and hence switching to the light theme (parent style Theme.*.Light) within the manifest should be avoided. Of course, custom resources like bright colors values and bitmap images with too high luminance should be avoided too.

Metadata

Metadata

Assignees

Labels

🗃️ ruleRule submissionandroidSomething tied to the android OS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions