Skip to content
Commit 8ab1be79 authored by Marco Martin's avatar Marco Martin
Browse files

Mechanism to use own Kirigami::Theme in plasmoids

AppletContext now has a _kirigamiTheme property which will be used
by Kirigami to load a different plugin when asked.

This adds a C++ based platformTheme to kirigami which uses Plasma::Theme
colors when passed a Kirigami::Theme instance, and similarly for Units.

This will make possible to get completely rid of PlasmaCore.ColorScope
class also should be possible to remove the QML binding of Plasma::Theme
in PlasmaCore.

Requires frameworks/kirigami!1120.

This can be tested by, for example, replacing instances of
`PlasmaExtras.Heading` with `Kirigami.Heading` in Plasmoids. When using
the Breeze Dark Plasma theme and the Breeze Light color scheme, the
Kirigami headings should now get their the colors from the Plasma theme
and remain visible, rather than getting their colors from the systemwide
color scheme and turning invisible.
parent 85ec40a1
Pipeline #417294 passed with stage
in 4 minutes and 4 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment