mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-30 20:02:34 +00:00
25 lines
699 B
Rust
25 lines
699 B
Rust
use crate::ui::{
|
|
component::text::TextStyle,
|
|
display::{Color, Font},
|
|
geometry::Offset,
|
|
};
|
|
|
|
use super::super::{
|
|
component::ButtonStyleSheet,
|
|
theme::{BG, BLACK, FG, WHITE},
|
|
};
|
|
|
|
pub const BLD_BG: Color = BLACK;
|
|
pub const BLD_FG: Color = WHITE;
|
|
|
|
pub fn bld_button_default() -> ButtonStyleSheet {
|
|
ButtonStyleSheet::new(BG, FG, false, false, None, Offset::zero())
|
|
}
|
|
|
|
pub fn bld_button_cancel() -> ButtonStyleSheet {
|
|
ButtonStyleSheet::new(FG, BG, false, false, None, Offset::zero())
|
|
}
|
|
|
|
pub const TEXT_NORMAL: TextStyle = TextStyle::new(Font::NORMAL, BLD_FG, BLD_BG, BLD_FG, BLD_FG);
|
|
pub const TEXT_BOLD: TextStyle = TextStyle::new(Font::NORMAL, BLD_FG, BLD_BG, BLD_FG, BLD_FG);
|