Skip to content

Discussion: naming scheme #290

Open
Open

Description

@thgoebel

Some functions use color as the prefix verb, others use theme or tint.

What is the pattern here? When should I use which verb when adding functions?

  • tint: currently used only with drawables. To apply a tint to the drawable.
  • color: ?? (Used e.g. with MaterialButtons to apply tint to them.)
  • theme ??

Activity

  1. AndyScherzinger commented on Feb 20, 2024

    @AndyScherzinger
    Member

    Good question, currently as mentioned rather inconsistent in use.

    So I would say

    • tint for actually tinting
    • Color for any kind of coloring
    • Theming for potentially multiple changes at once on an element and applying color tokens based on the Material 3 specification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions