https://bugs.kde.org/show_bug.cgi?id=468299

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kirigami/-/commit/47
                   |                            |3b6fccf890d996c0c8e272db4ee
                   |                            |3430680141d
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Nate Graham <[email protected]> ---
Git commit 473b6fccf890d996c0c8e272db4ee3430680141d by Nate Graham, on behalf
of Alessandro Perez.
Committed on 13/11/2026 at 14:33.
Pushed by ngraham into branch 'master'.

ImageColors: Support monochrome images

ImageColors ignores every pixel with a CIELAB chroma below 20. A fully
monochrome image (black and white wallpapers, grayscale photos) has no
pixel that passes this filter, so the palette ends up empty.

Consumers then have no color to work with. For example, Plasma sets the
accent color to transparent when the wallpaper palette is empty, so
"accent color from wallpaper" silently falls back to the color scheme's
accent (Breeze blue) instead of following the wallpaper.

If no chromatic sample is found, sample the image again as grayscale and
sort the resulting clusters by dominance, as there is no chroma to score
them. Allow more lightness adjustment steps for monochrome images, since
pure black or white has to be brought into the legible range of the
color scheme. Images with any chromatic pixel keep the previous
behavior.

M  +18   -0    autotests/tst_ImageColors.qml
M  +50   -4    src/imagecolors.cpp
M  +1    -0    src/imagecolors.h

https://invent.kde.org/frameworks/kirigami/-/commit/473b6fccf890d996c0c8e272db4ee3430680141d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to