mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
better layout for the letters in dialpad
This commit is contained in:
parent
c9ee41f3ba
commit
bdee5e84ab
1 changed files with 8 additions and 3 deletions
|
|
@ -94,6 +94,10 @@ PlasmaComponents.Label {
|
||||||
text = parent.text;
|
text = parent.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (text.length > 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback(text);
|
callback(text);
|
||||||
} else if (pad.callback) {
|
} else if (pad.callback) {
|
||||||
|
|
@ -107,12 +111,13 @@ PlasmaComponents.Label {
|
||||||
anchors {
|
anchors {
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
right: parent.right
|
right: parent.right
|
||||||
|
rightMargin: units.largeSpacing
|
||||||
}
|
}
|
||||||
height: parent.height * 0.6
|
height: parent.height * 0.4
|
||||||
width: parent.width / 3
|
width: parent.width / 4
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
visible: text.length > 0
|
visible: text.length > 0
|
||||||
opacity: 0.7
|
opacity: 0.6
|
||||||
|
|
||||||
font.pointSize: 1024
|
font.pointSize: 1024
|
||||||
fontSizeMode: Text.Fit
|
fontSizeMode: Text.Fit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue