diff options
Diffstat (limited to 'theme/components/PowerBar.qml')
| -rw-r--r-- | theme/components/PowerBar.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/theme/components/PowerBar.qml b/theme/components/PowerBar.qml index 3d6b2c5..88bdee6 100644 --- a/theme/components/PowerBar.qml +++ b/theme/components/PowerBar.qml @@ -32,6 +32,11 @@ Row { height: 56 opacity: modelData.enabled ? 1 : 0.35 + // A resolved icon-theme path is drawn exactly as the theme ships + // it. Only the bundled line art is tinted to the palette. + readonly property bool themed: + modelData.icon !== "" && String(icon.source) === modelData.icon + Rectangle { anchors.fill: parent radius: 10 @@ -57,7 +62,7 @@ Row { MultiEffect { anchors.fill: icon source: icon - colorization: 1.0 + colorization: themed ? 0.0 : 1.0 colorizationColor: mouse.containsMouse && modelData.enabled ? config.stringValue("accent") : config.stringValue("subtext0") |
