D28134: Add ColorUtils

Carson Black noreply at phabricator.kde.org
Thu Mar 19 04:40:40 GMT 2020


cblack created this revision.
cblack added reviewers: Plasma, mart.
Herald added a project: Kirigami.
Herald added a subscriber: plasma-devel.
cblack requested review of this revision.

REVISION SUMMARY
  ColorUtils is a class that offers utilities for working with colour, offering the following items as a start:
  
  - `QColor averageColorForItem(QQuickItem*, int)` - Obtains the average colour of an item, ignoring transparent pixels
  - `Brightness brightnessForItem(QQuickItem*)` - Obtains the brightness of an item

REPOSITORY
  R169 Kirigami

BRANCH
  cblack/colour-utils

REVISION DETAIL
  https://phabricator.kde.org/D28134

AFFECTED FILES
  src/CMakeLists.txt
  src/colorutils.cpp
  src/colorutils.h
  src/kirigamiplugin.cpp

To: cblack, #plasma, mart
Cc: plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, ahiemstra, davidedmundson, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200319/d8af32f9/attachment.html>


More information about the Plasma-devel mailing list