Skip to content

[Theme] Lint should warn if setting colorAccent or colorPrimaryDark #1376

Closed
@nickbutcher

Description

@nickbutcher

colorAccent and colorPrimaryDark from AppCompat are superseded by newer theming attributes (colorSecondary and colorPrimaryVariant respectively) so setting them directly in your theme is likely a mistake. This seems to be causing confusion to developers:

https://twitter.com/ArchieQuiones1/status/1268390022538911746

What about adding a Lint check to the library to warn if developers specify these attributes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions