qml: increase font on seed keyboard, and height of seedkeyboard slightly
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user