Skip to content

fix: Fix hats colours

nicoco requested to merge nicoco/gajim:hats-hue-degrees into master

Fixes a bug introduced in c3fa2a84

Whether the hue value is coded as:

  • a float between 0 and 1, or
  • an angle between 0 and 360,

is not explicitly defined in the XEP. However, the current practice for hue values in other XEPs is to use degrees. Moreover, examples of the hats XEP use values > 1.0, implying that degrees is the way to go.

It is worth noting that movim support hats colours too, and expects an angle between 0 and 360.

Edited by nicoco

Merge request reports

Loading