Skip to content

Commit

Permalink
Update token values
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed May 19, 2024
1 parent 404de17 commit 65a2f4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tildagon-apps/widgets-and-hardware/ui-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ To use a menu:
| `back_handler` | `method` | The method to be called when the cancel button is pressed. |
| `position` | `int` | _Optional_. The menu position to start at. Default: `0`. |
| `speed_ms` | `int` | _Optional_. The speed to redraw the UI at. Default: `300`. |
| `item_font_size` | `float` | _Optional_. The item line height. Default: `26.04`. |
| `item_line_height` | `float` |_Optional_. The item line height. Default: `39.0625`. |
| `focused_item_font_size` | `float` | _Optional_. The font size of the focused item. Default: `46.875`. |
| `item_font_size` | `float` | _Optional_. The item line height. Default: [`tokens.ten_pt`](https://github.com/emfcamp/badge-2024-software/blob/main/modules/app_components/tokens.py). |
| `item_line_height` | `float` |_Optional_. The item line height. Default: [`tokens.label_font_size * tokens.line_height`](https://github.com/emfcamp/badge-2024-software/blob/main/modules/app_components/tokens.py). |
| `focused_item_font_size` | `float` | _Optional_. The font size of the focused item. Default: [`tokens.heading_font_size`](https://github.com/emfcamp/badge-2024-software/blob/main/modules/app_components/tokens.py). |
| `focused_item_margin` | `float` | _Optional_. The margin on the focused item. Default: `20`. |

4. If you are creating a multi-layered menu, also create a variable like `current_menu` in the `__init__` method of your app to store the users menu state:
Expand Down

0 comments on commit 65a2f4e

Please sign in to comment.