• v0.10.29 213bb2f882

    Miblo tagged this 2024-02-21 20:52:34 +00:00 | 1 commits to master since this tag

    The colour computed for topic dots and put into cinera_topics.css in HSL
    format has its lightness value modified depending on whether it's on a
    dark or light background. Web browsers do not tell us an element's
    computed colour in HSL format, but in RGB, so we would need to convert
    it from RGB to HSL when setting the lightness. Previously, this
    conversion was busted, calculating too small a value for the saturation.

    This commit obviates the need for any RGB→HSL conversion by writing the
    hue and saturation values as attributes to the elements, which the
    function responsible for setting the lightness may use directly.

    Downloads