Bug 795207 - Add color space to blend(gradient) tool options

Desktop / GNOME / GIMP - Michael Natterer [gimp.org] - 13 April 2018 20:33 EDT

First WIP commit, adds:

- enum GimpGradientBlendColorSpace { RGB_PERCEPTUAL, RGB_LINEAR }- linear blending mode for gradient segments- tool options GUI for the blend and paint tools which use gradients

bf49b47620 Bug 795207 - Add color space to blend(gradient) tool options
app/actions/gradient-editor-commands.c | 2 +
app/core/gimpgradient.c | 133 +++++++++++++++++++++------------
app/core/gimpgradient.h | 6 ++
app/operations/gimpoperationblend.c | 68 +++++++++++------
app/operations/gimpoperationblend.h | 25 ++++---
app/paint/gimppaintoptions.c | 25 ++++++-
app/paint/gimppaintoptions.h | 5 +-
app/pdb/gradient-cmds.c | 54 +++++++++----
app/pdb/gradients-cmds.c | 12 ++-
app/tools/gimpblendoptions.c | 10 +++
app/tools/gimpblendoptions.h | 2 +-
app/tools/gimpblendtool-editor.c | 7 +-
app/tools/gimppaintoptions-gui.c | 16 +++-
app/widgets/gimpgradienteditor.c | 8 +-
app/widgets/gimpgradienteditor.h | 2 +
app/widgets/gimpgradientselect.c | 4 +-
app/widgets/gimpviewablebox.c | 47 +++++++++++-
app/widgets/gimpviewablebox.h | 4 +-
app/widgets/gimpviewrenderergradient.c | 25 ++++++-
app/widgets/gimpviewrenderergradient.h | 24 +++---
libgimp/gimpenums.c.tail | 2 +
libgimpbase/gimpbase.def | 1 +
libgimpbase/gimpbaseenums.c | 30 ++++++++
libgimpbase/gimpbaseenums.h | 12 +++
pdb/enums.pl | 8 ++
pdb/groups/gradient.pdb | 54 +++++++++----
pdb/groups/gradients.pdb | 12 ++-
27 files changed, 445 insertions(+), 153 deletions(-)

Upstream: git.gnome.org


  • Share