summaryrefslogtreecommitdiffstats
path: root/lib/python
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-07-07 14:08:56 +0000
committerQMK Bot <hello@qmk.fm>2023-07-07 14:08:56 +0000
commit21263438e52f756ddc5a004d044fd3e5a47d73a7 (patch)
tree49ca3a925bd2529a714740b02587854b41de72d2 /lib/python
parent8974e056a95c5b0ed59817f4db41dac223ec5b11 (diff)
parentef39ecd1b77feeba9cbe978c7431d0f9ce40010d (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/qmk/keyboard.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/python/qmk/keyboard.py b/lib/python/qmk/keyboard.py
index 0c980faf2b..235b62640c 100644
--- a/lib/python/qmk/keyboard.py
+++ b/lib/python/qmk/keyboard.py
@@ -182,7 +182,7 @@ def render_layout(layout_data, render_ascii, key_labels=None):
if x >= 0.25 and w == 1.25 and h == 2:
render_key_isoenter(textpad, x, y, w, h, label, style)
- elif w == 2.25 and h == 2:
+ elif w == 1.5 and h == 2:
render_key_baenter(textpad, x, y, w, h, label, style)
else:
render_key_rect(textpad, x, y, w, h, label, style)
@@ -275,7 +275,7 @@ def render_key_baenter(textpad, x, y, w, h, label, style):
w = ceil(w * 4)
h = ceil(h * 3)
- label_len = w - 2
+ label_len = w + 1
label_leftover = label_len - len(label)
if len(label) > label_len:
@@ -292,9 +292,9 @@ def render_key_baenter(textpad, x, y, w, h, label, style):
lab_line = array('u', box_chars['v'] + label_middle + box_chars['v'])
bot_line = array('u', box_chars['bl'] + label_border_bottom + box_chars['br'])
- textpad[y][x + 3:x + w] = top_line
- textpad[y + 1][x + 3:x + w] = mid_line
- textpad[y + 2][x + 3:x + w] = mid_line
- textpad[y + 3][x:x + w] = crn_line
- textpad[y + 4][x:x + w] = lab_line
- textpad[y + 5][x:x + w] = bot_line
+ textpad[y][x:x + w] = top_line
+ textpad[y + 1][x:x + w] = mid_line
+ textpad[y + 2][x:x + w] = mid_line
+ textpad[y + 3][x - 3:x + w] = crn_line
+ textpad[y + 4][x - 3:x + w] = lab_line
+ textpad[y + 5][x - 3:x + w] = bot_line