"Automatic" inner color
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start in the Map Component's marker color handling and trace how statuses and templates set functional and inner colors, including plain=false and gauges. Implement the stated luminance threshold so labels and icons use black or white appropriately, and verify that the inner color remains visible in the described cases.
Written by the indexing model from the issue text.
Description
Inner color defined in statuses or templates is defined according to functional color, to highlight the inner. In the case of a dark functional color, the inner color is set to "white".
However in the case of "plain = false" or a gauge, the background is white and the border of the functional color => invisible inner.
→ Force the inner color to "black"
In Map Component:
- Functional color and additional ones proposed by @mccart77 will be available through default status and templates, defined for markers (see https://github.com/Orange-OpenSource/IOT-Map-Component#presentation)
- But we also will leave the developer free to use another color
At the same time, we would like to simplify the use of the component by setting the color of label/icon to white vs. black according to the background color of the marker.
Can be done according to the following algorithm (which is aligned with @mccart77 specifications for functional markers color):
- Background Luminance = .3R+.6V+.1B
- If Luminance >= 128 set the icon / label in black
- If Luminance < 128 set the icon / label in white
- Dominant language
- TypeScript
- Stars
- 24
- Forks
- 9
- Avg merge
- 1h 5m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Orange-OpenSource/IOT-Map-Component
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
enhancement tests
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
study
Difficulty 4/5 3-5 days Newbie friendliness 32/100
-
docs
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
bug docs
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Orange-OpenSource/IOT-Map-Component
Similar issues
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPossibly taken @BitPluto claimed this today. Openneeds-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Dokploy/dokploy#6203 · 1 comment ·
Maintainers usually reply within 1 day
-
area/webapp comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#163341 · 2 comments ·
Maintainers usually reply within 1 day