Skip to content
  • Jehan's avatar
    app: GimpGradient now uses GeglColor. · b6856af9
    Jehan authored
    I still see some limitations in GimpGradient, and in particular, they are still
    always stored as RGB in GGR files. It would be nice if we could store the actual
    color format. This way, if someone chooses a gradient stop as Lab or CMYK color,
    that's what the gradient file would keep track of. But also even storing the
    space of a color (instead of storing/loading always in sRGB, even though this
    may still work fine as we store unbounded double values). This might warrant for
    a v2 of GGR file format.
    
    This commit also fixes loading of SVG gradient which was apparently broken
    regarding hexadecimal color parsing.
    
    Finally I improve gegl_color_set_alpha() by adding an alpha channel when the
    initial format had none.
    b6856af9