ui: style all text inputs as light e-ink grooves with dark borders

This commit is contained in:
ZHU MINCHAO committed 2026-11-04 10:32:20 +08:00
1 parent 6cc546cd67
commit 9f0bc5d180
3 files changed
+41 -1

No files matched your search

+9
View File
@@ -739,11 +739,20 @@ def hw_selected():
return c
def hw_groove():
"""PLEDGER 墨水屏输入框凹槽(12×12,九宫格边 2):浅色底、1 像素深墨边。"""
c = Canvas(12, 12)
c.rect(0, 0, 11, 11, 'n')
c.rect(1, 1, 10, 10, 'P')
return c
UI_ICONS = {'ui_bank': ui_bank, 'ui_poinbase': ui_poinbase, 'ui_web3': ui_web3}
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
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')