Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

306.19. kcolorchooser-26.08.2

Colour chooser — a colour dialog with a screen picker that can print the chosen colour

26.08.2-1 · MIT · 0.2 SBU · 72.3 KiB, 6 files · 44_apps, 239 of 422 · ports/core/graphics/kcolorchooser

Homepage: https://apps.kde.org/kcolorchooser/

KColorChooser is a stand-alone colour dialog: a palette, a hue and saturation field, numeric entry in RGB, HSV and HTML notation, an alpha channel and a picker that takes a colour from anywhere on the screen. It starts with the colour on the clipboard when there is one, takes a starting colour with --color, and with --print writes the chosen colour to standard output, so a script can ask a person for a colour.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, ki18n, kxmlgui.

Required by (1): kde-gear-graphics.

Sources: kcolorchooser-26.08.2.tar.xz (36.6 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kcolorchooser'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: kcolorchooser.

Directories: /usr/share/licenses/kcolorchooser.

The dialog is Qt’s own QColorDialog. On Wayland its screen picker asks the desktop portal for the colour under the pointer (the PickColor call of org.freedesktop.portal.Screenshot), so the picker answers only in a session that runs xdg-desktop-portal-kde; the rest of the dialog works without it.