1
0

qml: increase font on seed keyboard, and height of seedkeyboard slightly

This commit is contained in:
Sander van Grieken
2023-10-13 13:42:16 +02:00
parent 8c4532c5cb
commit b20a4b9bf1
3 changed files with 9 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ Item {
property int keywidth: (root.width - 2 * hpadding) / 10 - keyhspacing
property int keyheight: (root.height - 2 * vpadding) / 4 - keyvspacing
property int keyhspacing: 4
property int keyhspacing: 2
property int keyvspacing: 5
function emitKeyEvent(key, keycode) {

View File

@@ -26,10 +26,7 @@ Pane {
autoRepeat: true
autoRepeatDelay: 750
text: key
padding: 0
font.pixelSize: Math.max(root.height * 1/3, constants.fontSizeSmall)
onClicked: {
emitKeyEvent()
@@ -39,5 +36,12 @@ Pane {
onDoubleClicked: {
emitKeyEvent()
}
Label {
anchors.centerIn: parent
text: key
font.pixelSize: Math.max(root.height * 0.67, constants.fontSizeSmall)
verticalAlignment: Text.AlignVCenter
}
}
}

View File

@@ -125,7 +125,7 @@ Pane {
SeedKeyboard {
id: kbd
Layout.fillWidth: true
Layout.preferredHeight: kbd.width / 2
Layout.preferredHeight: kbd.width / 1.75
visible: !root.readOnly
onKeyEvent: {
if (keycode == Qt.Key_Backspace) {