ui: rounded touch keys, vertically centered row keys, right-aligned connection status on the wallets page

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-04 10:59:06 +08:00
1 parent 8645298b41
commit 12a63c562f
4 files changed
+44 -10

No files matched your search

+13
View File
@@ -752,6 +752,19 @@ UI_ICONS['ui_hw_shell'] = lambda: rounded(32, 7, 'K', 'E', 'z')
UI_ICONS['ui_hw_bezel'] = lambda: rounded(16, 4, 'n')
UI_ICONS['ui_hw_paper'] = lambda: rounded(12, 2, 'P')
UI_ICONS['ui_hw_sel'] = hw_selected
def hw_key():
"""触控键底图(九宫格,白色,可着色):圆角 3 像素,没有描边,颜色由界面按状态着色。"""
size, r = 12, 3
c = Canvas(size, size)
for y in range(size):
for x in range(size):
cx = min(max(x, r), size - 1 - r); cy = min(max(y, r), size - 1 - r)
if (x - cx) ** 2 + (y - cy) ** 2 <= r * r + r * 0.6:
c.put(x, y, 'w')
return c
UI_ICONS['ui_hw_key'] = hw_key
UI_ICONS['ui_hw_groove'] = hw_groove
UI_ICONS['ui_hw_ok'] = lambda: hw_button('ok')
UI_ICONS['ui_hw_no'] = lambda: hw_button('no')