-
-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eckhart vertical menu improvement #4617
base: ui-eckhart
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments to discuss.
@@ -37,6 +37,8 @@ pub struct Button { | |||
|
|||
impl Button { | |||
pub const BASELINE_OFFSET: Offset = Offset::new(2, 6); | |||
pub const MENU_Y_BASE_OFFSET: i16 = 28; | |||
pub const MENU_LINE_SPACING: i16 = 7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These constants probably don't need to be pub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The constants are currently used in the button height computation:
https://github.com/trezor/trezor-firmware/pull/4617/files#diff-1b1facc68c7698bce35416442b579679cca897196b1ccc141decaa5799390c81R117
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do the Button::height()
implementation then, as discussed today.
This PR:
MenuItem
with title and optional subtitle