[go: up one dir, main page]

Recolor art work project

This is the GOSC '25 Project.

Project Overview

This project adds a new Recolor Artwork feature to Inkscape. The tool allows users to:

  • Group colors: When selecting multiple objects with different colors, any identical or very similar colors are grouped into a single slot.
  • Replace colors: Users can assign alternative colors to each slot, making it easy to recolor complex artwork consistently.
  • Live preview: A toggleable Live Preview option lets users immediately see changes applied to their selection, improving workflow efficiency and reducing trial-and-error
    • onHover Effect hover on color slots to highlight objects with theses colors here at this MR #7424

Recolor artwork popover in FS dialog design (ux#318)

What's Done and What's Left

  • Collected all SVGS colors/ styles
    • Fill
    • Stroke
    • Gradient
    • Mesh gradients
    • Patterns
    • Hatches
    • Markers
    • CSS styling (it gets overwritten with style attribute and keeps the class)
    • Masks (for changing lightness levels)
    • Filter primitives - Read if the object has a filter, duplicate filter , apply to selecion and edit the primitives (future feature)
      • fe color flood - handle as normal color + opacity convertion (future feature)
      • Color Metrix - not sure if this is possible since this is becialy color manipulator. we would need to do something crazy like reading input first, then semple resulted color somehow and then convert slider cahnges to this manipulators defintly posible but probably not wortf the trouble and complexity (future feature)
      • Commponent transfer - same problem (future feature)
  • Handle object types
    • Paths
    • Texts
    • Shapes
    • Groups
    • Clones / symbols / Use - Unlink from parent on color change (future feature)
  • Change colors to new in the UI
  • Apply color to the canvas
  • Live preview of color changes

UI feature

  • Hover over the row to see elements with this color
  • indicator for amount of used objects per color
  • indicator - of objects/ fills indicates + tooltip
    • Fill types
      • fill
      • stroke
      • gradeint
      • mesh gradeint
      • pattern
      • Masks
      • Swaches
    • Hover tooltip with a list of individual types and the number of uses
  • Add support for drag-and-drop from original to new (future feature)
  • Replace color with fill type-gradients,pattern, mesh (needs desing - stretch goal) (future feature)

Features

  • Color wheel mode
    • Color whele tab with color indicators
    • locking hue relative to all colors
    • lightness slider
  • Reduce colors - () (future feature)
  • color commands - destructive color commands that are already implmented as extetions already (future feature)
  • Integration into the Pattern editor

Demo:

  • fill
  • stroke
  • gradeint
  • mehsgradient
  • marker
  • mask
  • swatch
  • colorlist
  • color wheel

demo

full demo

final Gsoc commit 52d2f39a22

Edited by Ft Omara

Merge request reports

Loading