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
Rectangle {
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()
MouseArea {
......@@ -50,6 +50,11 @@ Rectangle {
openAnim.running = true;
}
}
onClicked: {
if (mouse.x > main.width) {
removeAnim.running = true;
}
}
NumberAnimation {
id: openAnim
......@@ -81,7 +86,6 @@ Rectangle {
height: parent.height
color: theme.backgroundColor
opacity: 1 - Math.abs(x / (width/2))
property alias containment: widgetExplorer.containment
//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