Keymap: key size, combos and hints settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9efb66fe5e
commit
2a5374936b
2 files changed
+45
-7
No files matched your search
@@ -32,7 +32,8 @@ Panel {
|
||||
// Board geometry in key units.
|
||||
readonly property real unitsW: layoutKeys.reduce((m, k) => Math.max(m, k.x + 1), 0)
|
||||
readonly property real unitsH: layoutKeys.reduce((m, k) => Math.max(m, k.y + 1), 0) + 0.2
|
||||
readonly property real unit: Math.min(Style.space(66), unitsW > 0 ? (card.availableCardWidth - card.padding * 2) / unitsW : Style.space(66))
|
||||
readonly property real keySize: Style.space(Math.max(36, Math.min(120, Number(setting("keySize", 66)) || 66)))
|
||||
readonly property real unit: Math.min(keySize, unitsW > 0 ? (card.availableCardWidth - card.padding * 2) / unitsW : keySize)
|
||||
readonly property real gap: Math.max(3, Math.round(unit * 0.07))
|
||||
readonly property int cardWidth: Math.max(Style.space(560), Math.ceil(unitsW * unit)) + card.padding * 2
|
||||
|
||||
@@ -495,7 +496,7 @@ Panel {
|
||||
Column {
|
||||
width: parent.width
|
||||
spacing: Style.spacing.lg
|
||||
visible: root.combos.length > 0 || root.layerCombos.length > 0
|
||||
visible: root.setting("showCombos", true) !== false && (root.combos.length > 0 || root.layerCombos.length > 0)
|
||||
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
@@ -655,6 +656,7 @@ Panel {
|
||||
|
||||
Text {
|
||||
width: parent.width
|
||||
visible: root.setting("showHints", true) !== false
|
||||
horizontalAlignment: Text.AlignRight
|
||||
text: "Arrow keys or 0–" + Math.min(9, root.layers.length) + " switch layers · R refresh · checks the repo every " + (root.service ? root.service.checkMinutes : 2) + " min"
|
||||
color: Qt.alpha(Color.foreground, 0.32)
|
||||
|
||||
Reference in new issue
Block a user