nextcloud / nextcloud/android-common

Discussion: naming scheme

Open
#290 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
6
Forks
4
Avg merge
6h 40m
Merged PRs (30d)
28

Description

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 ??

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing functions that use the tint, color, and theme prefixes, especially drawable and MaterialButton usages mentioned in the issue. Establish and document a consistent rule for when each verb should be used, then update the relevant developer guidance so new functions follow that rule.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.