Browse Source

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

master
Sander van Grieken 2 years ago
parent
commit
b20a4b9bf1
  1. 2
      electrum/gui/qml/components/controls/SeedKeyboard.qml
  2. 10
      electrum/gui/qml/components/controls/SeedKeyboardKey.qml
  3. 2
      electrum/gui/qml/components/controls/SeedTextArea.qml

2
electrum/gui/qml/components/controls/SeedKeyboard.qml

@ -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) {

10
electrum/gui/qml/components/controls/SeedKeyboardKey.qml

@ -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
}
}
}

2
electrum/gui/qml/components/controls/SeedTextArea.qml

@ -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) {

Loading…
Cancel
Save