Skip to content

feat(ui): highlight primary action keys on button-matrix keypads - #133

Open
subinita01 wants to merge 1 commit into
odudex:masterfrom
subinita01:feat/keyboard-action-keys
Open

feat(ui): highlight primary action keys on button-matrix keypads#133
subinita01 wants to merge 1 commit into
odudex:masterfrom
subinita01:feat/keyboard-action-keys

Conversation

@subinita01

Copy link
Copy Markdown
Contributor

hiii @odudex ,

This PR introduces a new "action key" style (solid orange fill) distinct from the existing "tier 1" style (now an orange outline, no fill), and applies it to the primary action button on every button-matrix keypad in the app:

  • main/ui/theme_widgets.c / .h — new theme_set_btnmatrix_action() API; renames btnmatrix_active → btnmatrix_action; tier-1 keys become orange-outline/transparent instead of solid grey.
  • main/ui/keyboard.c — marks 2 keys as "action" on the alpha keyboard.
  • main/ui/numeric_keypad.c — same, numeric keypad.
  • main/ui/path_keypad.c — same, BIP32 path keypad (backspace/OK).
  • main/pages/new_mnemonic/dice_rolls.c — same, dice-roll keypad.

Every LVGL button-matrix keypad (alpha keyboard, numeric keypad, path
keypad, dice-roll pad) now marks its backspace/OK key with a solid
orange fill via a new theme_set_btnmatrix_action() helper, so the
primary action is visually distinct at rest instead of only flashing
orange on press.

Regular keys move from solid grey fill to an orange-outline/
transparent style to make room for that hierarchy. The underlying
LVGL style is renamed btnmatrix_active -> btnmatrix_action to reflect
that it now marks a fixed button role (backspace/OK) rather than
transient press/checked state.
@subinita01
subinita01 marked this pull request as ready for review July 31, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant