On 9/7/15, Stephan Beal <sgb...@googlemail.com> wrote:
> On Sat, Sep 5, 2015 at 2:49 PM, Florian Balmer <florian.bal...@gmail.com>
> wrote:
>
>> I'd be happy if these small adaptations could be made. However I'm not
>> sure if there's a policy to require branch colors to fit the #xxxxxx
>> format, so that values like #feb (and also 'gold') are invalid in the
>> first place, and whether hash_color() may always return colors that
>> bg_to_fg() is able to handle without over/underflows, so that using
>> custom branch colors outside the "moderate hash_color() range" is
>> generally not advised.
>>
>
> If i'm not mistaken, Fossil accepts any color string which a user agent can
> deal with.

That used to be true.  And it still is true with regard to the
background colors on the check-in comment text.  But since we added
color to rails, that has changed.  Fossil has to convert the
background text color into an appropriate foreground text color, and
the subroutine that does that currently only understands #HHHHHH
colors.  See https://www.fossil-scm.org/fossil/artifact/005c758d3?ln=596-625
for details.  Please do feel free to enhance it.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
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