Commit 2ed4578a authored by Marco Martin's avatar Marco Martin

wallpaper and applets config as a sidepanel

parent e5b479b3
...@@ -34,7 +34,7 @@ import org.kde.plasma.private.shell 2.0 ...@@ -34,7 +34,7 @@ import org.kde.plasma.private.shell 2.0
Rectangle { Rectangle {
id: root id: root
color: Qt.rgba(0, 0, 0, main.opacity * 0.8) color: Qt.rgba(0, 0, 0, (1 - Math.abs(main.x / (main.width/2))) * 0.8)
signal closed() signal closed()
MouseArea { MouseArea {
...@@ -50,6 +50,11 @@ Rectangle { ...@@ -50,6 +50,11 @@ Rectangle {
openAnim.running = true; openAnim.running = true;
} }
} }
onClicked: {
if (mouse.x > main.width) {
removeAnim.running = true;
}
}
NumberAnimation { NumberAnimation {
id: openAnim id: openAnim
...@@ -81,7 +86,6 @@ Rectangle { ...@@ -81,7 +86,6 @@ Rectangle {
height: parent.height height: parent.height
color: theme.backgroundColor color: theme.backgroundColor
opacity: 1 - Math.abs(x / (width/2))
property alias containment: widgetExplorer.containment property alias containment: widgetExplorer.containment
//external drop events can cause a raise event causing us to lose focus and //external drop events can cause a raise event causing us to lose focus and
......
Markdown is supported
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