summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichail Vourlakos <[email protected]>2016-11-13 19:35:12 +0200
committerMichail Vourlakos <[email protected]>2016-11-13 19:35:12 +0200
commitb1bc4f8347fca280d7c44b2e76a40f9a7bdc44d4 (patch)
tree0874bf2dc2f71424d5731232b78b2ac67c486b37
parent825a28f3d28cc282559145ffde9fd879f7f26be5 (diff)
Hide Background for Panel if backgroundHints used
Summary: a Panel can set, Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground; in order to become transparent Reviewers: #plasma, #davidedmundson Tags: #plasma Differential Revision: https://phabricator.kde.org/D3283 FEATURE: 368384
-rw-r--r--desktoppackage/contents/views/Panel.qml14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktoppackage/contents/views/Panel.qml b/desktoppackage/contents/views/Panel.qml
index e6122db..21470c3 100644
--- a/desktoppackage/contents/views/Panel.qml
+++ b/desktoppackage/contents/views/Panel.qml
@@ -24,7 +24,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
PlasmaCore.FrameSvgItem {
id: root
- imagePath: "widgets/panel-background"
+ imagePath: containment && containment.backgroundHints === PlasmaCore.Types.NoBackground ? "" : "widgets/panel-background"
onRepaintNeeded: adjustPrefix();
enabledBorders: panel.enabledBorders
@@ -88,6 +88,18 @@ PlasmaCore.FrameSvgItem {
}
}
+ Binding {
+ target: panel
+ property: "backgroundHints"
+ when: containment
+ value: {
+ if (!containment) {
+ return;
+ }
+
+ return containment.backgroundHints;
+ }
+ }
Item {
id: containmentParent