Skip to content

Add Colors runner

Kai Uwe Broulik requested to merge work/kbroulik/colors-runner into master

This allows to search for colors and display a colored circle of that color. The SVG named color is displayed when available alongside RGB/CMYK values.

Activating the result copies the color to clipboard (both text and a proper QColor). Drag and drop (e.g. to a graphics palette) is also supported.

The color circle is drawn using a proper QIconEngine which ensures that the circle is rendered crisp regardless of DPI or icon size (KRunner vs. Kickoff).

Supported input:

  • hex notation
    • both with (#AARRGGBB) and without (#RRGGBB) alpha channel
    • three letters (#RGB turns into #RRGGBB)
  • instead of hash (#) also 0x and no prefix is allowed
  • rgb notation
    • both with alpha (4 numbers) and without (3 numbers)
    • with or without parentheses
    • separated by spaces and/or commas
  • SVG named colors (e.g. maroon, fuchsia, lightseelblue)

Comes with an autotest.


No more googling colors ;)

Screenshot_20250224_205602

Screenshot_20250224_205522

Screenshot_20250224_205633

Screenshot_20250224_205740

Screenshot_20250224_205821

Merge request reports

Loading