From 34c3446a3e1361a8552648c2a4d7ab1298c7c2b8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 10 Oct 2011 14:32:53 +0200 Subject: [PATCH] hidden status for the shadow --- .../plasmacomponents/qml/ButtonShadow.qml | 12 ++++++++++++ .../plasmacomponents/qml/RoundShadow.qml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/declarativeimports/plasmacomponents/qml/ButtonShadow.qml b/declarativeimports/plasmacomponents/qml/ButtonShadow.qml index c34378fff..dcf8d233e 100644 --- a/declarativeimports/plasmacomponents/qml/ButtonShadow.qml +++ b/declarativeimports/plasmacomponents/qml/ButtonShadow.qml @@ -90,6 +90,18 @@ Item { opacity: 1 prefix: "focus" } + }, + State { + name: "hidden" + PropertyChanges { + target: shadow + opacity: 0 + } + PropertyChanges { + target: hover + opacity: 0 + prefix: "hover" + } } ] diff --git a/declarativeimports/plasmacomponents/qml/RoundShadow.qml b/declarativeimports/plasmacomponents/qml/RoundShadow.qml index 6119b3a71..fce6f7eb9 100644 --- a/declarativeimports/plasmacomponents/qml/RoundShadow.qml +++ b/declarativeimports/plasmacomponents/qml/RoundShadow.qml @@ -85,6 +85,18 @@ Item { opacity: 1 elementId: "focus" } + }, + State { + name: "hover" + PropertyChanges { + target: shadow + opacity: 0 + } + PropertyChanges { + target: hover + opacity: 0 + elementId: "hover" + } } ]