mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
the buttons in the stripe
This commit is contained in:
parent
dcd9056f29
commit
f5754bde8c
1 changed files with 86 additions and 8 deletions
|
|
@ -1,20 +1,98 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
import "../components"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: lockscreen
|
id: lockscreen
|
||||||
|
|
||||||
|
PlasmaCore.Svg {
|
||||||
|
id: symbolsSvg
|
||||||
|
imagePath: Qt.resolvedUrl("images/symbols.svgz")
|
||||||
|
}
|
||||||
|
|
||||||
Leaves {
|
Leaves {
|
||||||
id: background
|
id: background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
SatelliteStripe {
|
||||||
id: test
|
id: stripe
|
||||||
color: "red"
|
|
||||||
opacity: .5
|
PlasmaCore.SvgItem {
|
||||||
height: 100
|
id: square
|
||||||
width: parent.width
|
property int value: 1
|
||||||
y: parent.height / 2 - height / 2
|
opacity: 1
|
||||||
x: 0
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue