> Can you try out this patch, Mr. Balmer:

Thanks, your patch works fine for hex triplet color values in
shorthand notation.

I have been working on a patch, too, in the meantime, which also
handles shorthand forms, and in addition returns default colors for
all invalid / non-hex triplet forms (white for white foreground, and
black otherwise), and ensures each color component is between 0 and
255 to avoid 8-digit output (such as #8041ffff for #ffc000). Here's an
initial version I'd like to submit for review / discussion:

http://pastebin.com/Z8SwJNHZ

--Florian
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to