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 keywidth: (root.width - 2 * hpadding) / 10 - keyhspacing
|
||||||
property int keyheight: (root.height - 2 * vpadding) / 4 - keyvspacing
|
property int keyheight: (root.height - 2 * vpadding) / 4 - keyvspacing
|
||||||
property int keyhspacing: 4
|
property int keyhspacing: 2
|
||||||
property int keyvspacing: 5
|
property int keyvspacing: 5
|
||||||
|
|
||||||
function emitKeyEvent(key, keycode) {
|
function emitKeyEvent(key, keycode) {
|
||||||
|
|||||||
@@ -26,10 +26,7 @@ Pane {
|
|||||||
autoRepeat: true
|
autoRepeat: true
|
||||||
autoRepeatDelay: 750
|
autoRepeatDelay: 750
|
||||||
|
|
||||||
text: key
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
font.pixelSize: Math.max(root.height * 1/3, constants.fontSizeSmall)
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
emitKeyEvent()
|
emitKeyEvent()
|
||||||
@@ -39,5 +36,12 @@ Pane {
|
|||||||
onDoubleClicked: {
|
onDoubleClicked: {
|
||||||
emitKeyEvent()
|
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 {
|
SeedKeyboard {
|
||||||
id: kbd
|
id: kbd
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: kbd.width / 2
|
Layout.preferredHeight: kbd.width / 1.75
|
||||||
visible: !root.readOnly
|
visible: !root.readOnly
|
||||||
onKeyEvent: {
|
onKeyEvent: {
|
||||||
if (keycode == Qt.Key_Backspace) {
|
if (keycode == Qt.Key_Backspace) {
|
||||||
|
|||||||
Reference in New Issue
Block a user