-
-
Notifications
You must be signed in to change notification settings - Fork 684
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 UI - bootloader #4765
base: ui-eckhart
Are you sure you want to change the base?
Eckhart UI - bootloader #4765
Conversation
|
34e6691
to
acbc741
Compare
87127ec
to
816b684
Compare
816b684
to
c80d6c3
Compare
c80d6c3
to
af4a566
Compare
fe91a3a
to
dce6d5b
Compare
09e52b0
to
5778366
Compare
- skimmed variants from firmware
- implementation using the new bootloader components - the implementation sits in the separate file `ui_bootloader.rs`
dce6d5b
to
71c078f
Compare
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.
I have a few cosmetic suggestions + the failing style check should be fixed.
pub const BLD_FG: Color = WHITE; | ||
pub const BLD_WIPE_COLOR: Color = Color::rgb(0xE7, 0x0E, 0x0E); | ||
pub const BLD_WIPE_TEXT_COLOR: Color = WHITE; | ||
|
||
pub const BLD_WARN_COLOR: Color = Color::rgb(0xFF, 0x00, 0x00); |
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 warning color in Figma has value 0xFF3030, which is similar to RED
in theme/mod.rs
.
ButtonStyleSheet { | ||
normal: &ButtonStyle { | ||
font: fonts::FONT_SATOSHI_MEDIUM_26, | ||
text_color: GREY_LIGHT, | ||
button_color: BLD_BG, | ||
button_color: GREY_EXTRA_DARK, |
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.
According to Figma, this should be GREY_SUPER_DARK
@@ -99,54 +44,54 @@ pub fn button_confirm() -> ButtonStyleSheet { | |||
} | |||
} | |||
|
|||
pub const fn button_header() -> ButtonStyleSheet { | |||
pub fn button_cancel() -> ButtonStyleSheet { | |||
ButtonStyleSheet { | |||
normal: &ButtonStyle { | |||
font: fonts::FONT_SATOSHI_MEDIUM_26, | |||
text_color: GREY_LIGHT, |
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.
According to Figma, this should be GREY_EXTRA_LIGHT
ButtonStyleSheet { | ||
normal: &ButtonStyle { | ||
font: fonts::FONT_SATOSHI_MEDIUM_26, | ||
text_color: GREY_LIGHT, | ||
button_color: BLD_BG, | ||
button_color: GREY_EXTRA_DARK, | ||
icon_color: GREY_LIGHT, |
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.
GREY_EXTRA_LIGHT
} | ||
|
||
impl BldMenu { | ||
const SIDE_INSETS: Insets = Insets::sides(24); |
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.
Can we use the same constants from theme/mod.rs
?
No description provided.