buzcarter / UkeGeeks

UkeGeeks Scriptasaurus creates fingering diagrams by reading plain text or ChordPro ukulele songs. Examples and documentation at UkeGeeks.com
http://ukegeeks.com
103 stars 48 forks source link

Support chordcolour directive #17

Open stevesouders opened 6 years ago

stevesouders commented 6 years ago

The ChordPro format supports a directive called "chordcolour" but when I use this in UkeGeeks the chords are still red. Example:

{chordcolor: blue}

This issue is to add support for chordcolour. It would be worthwhile to consider other appearance-related directives like textcolour, tabfont, etc. See https://www.chordpro.org/chordpro/ChordPro-Directives.html#fonts-sizes-and-colours for examples.

louis-coding commented 5 years ago

Why would you need different colours for (individual?) chords? (I know exactly one song where I could use different text colours but I can't think of a need for chord colours...)

Currently this is completeley controlled by css for the various layouts, you find it in css/ugsEditorPlus.merged.css - but there are indeed only generic values per selected layout.

For individual text colours you could simply wrap the respective text section in some plain HTML like <div style="color:blue">my [C7]blue [F7]song text is [Am]here</div> and here is normal text - UkeGeeks should render that correctly.