shift-shell/look-and-feel/contents/lockscreen/LockKey.qml
Aaron Seigo 8c4eba538a 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
2014-08-22 11:41:46 +02:00

21 lines
No EOL
503 B
QML

import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
Rectangle {
anchors.top: parent.top
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
svg: symbolsSvg
}
}