question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML color names for labels, etc.

See original GitHub issue

In my sitemap I’m using different colors for the labels. The colors are somehow set by the application as it should be near by the standards. In my case I need a yellow, which is hardly readable. So I replace yellow by gold which this statement: labelcolor=["gold"] In the BasicUI in the webbrowser this works fine as the HTML color names are supported. I would like to have the HTML color names also supported within the Android app. Thanks!

I’m using app version 2.9.0 on Android 9.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mueller-macommented, Nov 1, 2019

I think we can find a good compromise by extending the current supported color list with “common” color names from the html color names list: https://htmlcolor-codes.com/color-names IMO adding “gold” and “pink” is enough.

@openhab/ios-maintainers @openhab/webui-maintainers @openhab/core-maintainers

1reaction
maniac103commented, Nov 1, 2019

In iOS app the will change the behavior. And as you already raised the topic, an alignment between the different UIs is important.

The (linked) docs already cover this sufficiently, I think: the table in the docs is what is guaranteed to work, besides that all bets are off. The problem I have with supporting all (~150!) HTML color names is that in order to support them properly, we’d need to test all of them with light & dark modes and adjust them accordingly, which is a time-consuming effort for little gain, as the HTML names tend to get a bit obscure once one gets into the details … or do you have an immediate understanding of the colors behind gainsboro, mistyrose or papayawhip?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML Color Names - W3Schools
AliceBlue · #F0F8FF ; AntiqueWhite · #FAEBD7 ; Aqua · #00FFFF ; Aquamarine · #7FFFD4 ; Azure · #F0FFFF.
Read more >
HTML color names for labels, etc. · Issue #486 - GitHub
In my sitemap I'm using different colors for the labels. The colors are somehow set by the application as it should be near...
Read more >
What do you name color variables? | CSS-Tricks
What do you name color variables? · $mainBrandColor: #F060D6; $secondaryFocus: #4C9FEB; $fadedHighlight: #F1F3F4; · $orange: #F060D6; $red: # ...
Read more >
Color Names - HTML Color Codes
Plum, #DDA0DD ; Violet, #EE82EE ; Orchid, #DA70D6 ; Fuchsia, #FF00FF ...
Read more >
<color> - CSS: Cascading Style Sheets - MDN Web Docs
Examples · Fully saturated colors. Notation, Description, Live. hsl(0, 100%, 50%), red. hsl(30, 100%, 50%), orange · Lighter and darker greens ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found