mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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 org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
PlasmaCore.SvgItem {
|
||||
id: square
|
||||
property int value: 0
|
||||
Rectangle {
|
||||
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
|
||||
|
||||
svg: symbolsSvg
|
||||
}
|
||||
PlasmaCore.SvgItem {
|
||||
id: glyph
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: Math.min(parent.height, parent.width)
|
||||
height: parent.height
|
||||
|
||||
svg: symbolsSvg
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue