mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-24 13:22:05 +00:00
feat(eckhart): button styles for select word component
This commit is contained in:
parent
1b34921162
commit
ad80622058
@ -280,10 +280,10 @@ macro_rules! menu_item_title {
|
|||||||
},
|
},
|
||||||
active: &ButtonStyle {
|
active: &ButtonStyle {
|
||||||
font: fonts::FONT_SATOSHI_REGULAR_38,
|
font: fonts::FONT_SATOSHI_REGULAR_38,
|
||||||
text_color: $color,
|
text_color: GREY_DARK,
|
||||||
button_color: BG,
|
button_color: GREY_SUPER_DARK,
|
||||||
icon_color: $color,
|
icon_color: GREY_DARK,
|
||||||
background_color: BG,
|
background_color: GREY_SUPER_DARK,
|
||||||
},
|
},
|
||||||
disabled: &ButtonStyle {
|
disabled: &ButtonStyle {
|
||||||
font: fonts::FONT_SATOSHI_REGULAR_38,
|
font: fonts::FONT_SATOSHI_REGULAR_38,
|
||||||
@ -307,6 +307,32 @@ pub const fn menu_item_title_yellow() -> ButtonStyleSheet {
|
|||||||
pub const fn menu_item_title_red() -> ButtonStyleSheet {
|
pub const fn menu_item_title_red() -> ButtonStyleSheet {
|
||||||
menu_item_title!(RED)
|
menu_item_title!(RED)
|
||||||
}
|
}
|
||||||
|
pub const fn button_select_word() -> ButtonStyleSheet {
|
||||||
|
ButtonStyleSheet {
|
||||||
|
normal: &ButtonStyle {
|
||||||
|
font: fonts::FONT_SATOSHI_EXTRALIGHT_46,
|
||||||
|
text_color: GREY_EXTRA_LIGHT,
|
||||||
|
button_color: BG,
|
||||||
|
icon_color: GREY_EXTRA_LIGHT,
|
||||||
|
background_color: BG,
|
||||||
|
},
|
||||||
|
active: &ButtonStyle {
|
||||||
|
font: fonts::FONT_SATOSHI_EXTRALIGHT_46,
|
||||||
|
text_color: GREY_DARK,
|
||||||
|
button_color: GREY_SUPER_DARK,
|
||||||
|
icon_color: GREY_DARK,
|
||||||
|
background_color: GREY_SUPER_DARK,
|
||||||
|
},
|
||||||
|
// unused
|
||||||
|
disabled: &ButtonStyle {
|
||||||
|
font: fonts::FONT_SATOSHI_EXTRALIGHT_46,
|
||||||
|
text_color: BG,
|
||||||
|
button_color: BG,
|
||||||
|
icon_color: BG,
|
||||||
|
background_color: BG,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Result constants
|
// Result constants
|
||||||
pub const RESULT_PADDING: i16 = 6;
|
pub const RESULT_PADDING: i16 = 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user