Commit f5754bde authored by Aaron J. Seigo's avatar Aaron J. Seigo
Browse files

the buttons in the stripe

parent dcd9056f
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import "../components"
Item {
id: lockscreen
PlasmaCore.Svg {
id: symbolsSvg
imagePath: Qt.resolvedUrl("images/symbols.svgz")
}
Leaves {
id: background
anchors.fill: parent
}
Rectangle {
id: test
color: "red"
opacity: .5
height: 100
width: parent.width
y: parent.height / 2 - height / 2
x: 0
SatelliteStripe {
id: stripe
PlasmaCore.SvgItem {
id: square
property int value: 1
opacity: 1
anchors.top: parent.top
anchors.left: parent.left
width: parent.width/4
height: parent.height
svg: symbolsSvg
elementId: "square"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("square");
}
}
}
PlasmaCore.SvgItem {
id: circle
property int value: 2
anchors.top: parent.top
anchors.left: square.right
width: square.width
height: square.height
svg: symbolsSvg
elementId: "circle"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("circle");
}
}
}
PlasmaCore.SvgItem {
id: ex
property int value: 3
anchors.top: parent.top
anchors.left: circle.right
width: square.width
height: square.height
svg: symbolsSvg
elementId: "ex"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("ex");
}
}
}
PlasmaCore.SvgItem {
id: triangle
property int value: 4
anchors.top: parent.top
anchors.left: ex.right
width: parent.width - (square.width * 3)
height: square.height
svg: symbolsSvg
elementId: "triangle"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("triangle");
}
}
}
}
}
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