D13232: introduce Custom color set

Marco Martin noreply at phabricator.kde.org
Thu May 31 09:55:01 UTC 2018


mart created this revision.
mart added a reviewer: Kirigami.
Restricted Application added a project: Kirigami.
Restricted Application added a subscriber: plasma-devel.
mart requested review of this revision.

REVISION SUMMARY
  In some scenarios, some applications need certain areas with completely custom
  palettes, for instance if a piece of ui is on top of an image it may make
  sense that hierarchy uses whatever the dominant colors of such image are.
  in the scenario of a Custom color set, the qml code would look like this:
  Item {
  
    Kirigami.Theme.inherit: false
    Kirigami.Theme.colorSet: Kirigami.Theme.Custom
    Kirigami.Theme.textColor: "#af2352"
    Kirigami.Theme.backgroundColor: "#124523"
    ...
  
  }

TEST PLAN
  piece with a custom set in the gallery

REPOSITORY
  R169 Kirigami

BRANCH
  mart/customColors

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

AFFECTED FILES
  examples/gallerydata/contents/ui/gallery/ColorSetGallery.qml
  src/kirigamiplugin.cpp
  src/libkirigami/basictheme.cpp
  src/libkirigami/platformtheme.cpp
  src/libkirigami/platformtheme.h
  src/styles/Material/Theme.qml

To: mart, #kirigami
Cc: plasma-devel, apol, davidedmundson, mart, hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180531/9f843637/attachment-0001.html>


More information about the Plasma-devel mailing list