---

** [issues:#5524] New function css-color (accompanying x11-color)**

**Status:** Started
**Created:** Mon Jun 03, 2019 02:49 PM UTC by Urs Liska
**Last Updated:** Mon Jun 03, 2019 02:49 PM UTC
**Owner:** nobody


New function css-color (accompanying x11-color)

I was asked if LilyPond could support choosing colors by their CSS name,
which I found a reasonable wish.

This commit makes make-x11-color-handler generic and specifies
a new function css-color. From this it would be easy to also add further
namespaces and color lists.

CSS colors are case insensitive, so this commit also provides support for
this. Incidentally, a warning is now issued when the requested color is
not defined (instead of *silently* falling back to black).

Only warn about missing color when necessary


Merge pull request #6 from rettinghaus/dev/urs/css-fonts

add named colors from CSS Color Module Level 4

Rename x11-color.scm to color.scm

With the previous commit adding `css-color` the file `x11-color.scm` should be
rename to the generic `color.scm`.

add named colors from CSS Color Module Level 4


Define function css-color (accompany x11-color)

It should be possible to specify colors using the CSS names in addition to
the X11 names.

This commit makes `make-x11-color-handler` generic and adds a function
`css-color`.
What remains to be done is (of course documenting and) filling in the remaining
~140 colors.

http://codereview.appspot.com/570690043


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
  • [Lilypond-... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto

Reply via email to