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

Discussion: naming scheme #290

Open
thgoebel opened this issue Feb 20, 2024 · 1 comment
Open

Discussion: naming scheme #290

thgoebel opened this issue Feb 20, 2024 · 1 comment

Comments

@thgoebel
Copy link
Contributor

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 ??
@AndyScherzinger
Copy link
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

thgoebel added a commit that referenced this issue Feb 20, 2024
These were added by MoneyBuster here:
https://gitlab.com/eneiluj/moneybuster/-/merge_requests/43

Following the discussion in #290,
the naming scheme in this commit differs slightly from what was originally used
in MoneyBuster.
thgoebel added a commit that referenced this issue Feb 20, 2024
These were added by MoneyBuster here:
https://gitlab.com/eneiluj/moneybuster/-/merge_requests/43

Following the discussion in #290,
the naming scheme in this commit differs slightly from what was originally used
in MoneyBuster.
thgoebel added a commit that referenced this issue Feb 20, 2024
These were added by MoneyBuster here:
https://gitlab.com/eneiluj/moneybuster/-/merge_requests/43

Following the discussion in #290,
the naming scheme in this commit differs slightly from what was originally used
in MoneyBuster.

Signed-off-by: Thore Goebel <[email protected]>
thgoebel added a commit that referenced this issue Feb 20, 2024
These were added by MoneyBuster here:
https://gitlab.com/eneiluj/moneybuster/-/merge_requests/43

Following the discussion in #290,
the naming scheme in this commit differs slightly from what was originally used
in MoneyBuster.

Signed-off-by: Thore Goebel <[email protected]>
thgoebel added a commit that referenced this issue Feb 24, 2024
These were added by MoneyBuster here:
https://gitlab.com/eneiluj/moneybuster/-/merge_requests/43

Following the discussion in #290,
the naming scheme in this commit differs slightly from what was originally used
in MoneyBuster.

Signed-off-by: Thore Goebel <[email protected]>
thgoebel added a commit that referenced this issue Feb 24, 2024
These were added by MoneyBuster here:
https://gitlab.com/eneiluj/moneybuster/-/merge_requests/43

Following the discussion in #290,
the naming scheme in this commit differs slightly from what was originally used
in MoneyBuster.

Signed-off-by: Thore Goebel <[email protected]>
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

No branches or pull requests

2 participants