Remove pigment
Open, Needs TriagePublic

Description

Boud says:
I don't exactly remember the state of using Vc when krita separated from Calligra, but it would probably be best to remove it entirely. Nothing in Calligra is going to use any of this code at any point: it is used to blend layers together in Krita, and everything else in Calligra uses Qt for that.

It would be best to completely remove pigment, except for KoColorSet, but that also means replacing all use of KoColor with QColor. There used to be a compile-time switch for that, in the Nokia days.

(I know that there have been plans for over a decade to use pigment to have color managed images in Words, but pigment probably isn't the right solution for that anyway...)

danders created this task.Mar 24 2017, 8:23 AM
ognarb claimed this task.Nov 23 2019, 2:38 PM
ognarb added a subscriber: ognarb.

I started doing it, most of the porting from KoColor to QColor is pretty trivial.

Pain point is KoAbstractGradient/KoStopGradient where I'm not sure if it's easier to port KoAbstractGradient/KoStopGradient to QColor or replace KoAbstractGradient with QGradient.

rempt added a subscriber: rempt.Mar 20 2020, 7:05 AM

The former, I'd say. The key thing is that KoAbstractGradient isn't a gradient; it's a resource that provides gradients.