mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +00:00
if our symbols are a different size, they need to be inner centered
the unlock key becomes a rect that contains the svg item. a property alias preserves the api
This commit is contained in:
parent
68bf52bccb
commit
8c4eba538a
1 changed files with 15 additions and 6 deletions
|
|
@ -1,12 +1,21 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
|
||||||
PlasmaCore.SvgItem {
|
Rectangle {
|
||||||
id: square
|
|
||||||
property int value: 0
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
width: parent.width/4
|
color: "#00000000"
|
||||||
|
property int value: 0
|
||||||
|
property alias elementId: glyph.elementId
|
||||||
|
width: parent.width / 4
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
|
PlasmaCore.SvgItem {
|
||||||
|
id: glyph
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
width: Math.min(parent.height, parent.width)
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
svg: symbolsSvg
|
svg: symbolsSvg
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue