mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-31 02:48:44 +00:00
chore(core/eckhart): use checkmark insted of cross in brightness screen
[no changelog]
This commit is contained in:
parent
bb94843038
commit
32a4552be9
@ -11,6 +11,7 @@ use crate::{
|
||||
};
|
||||
|
||||
use super::super::{
|
||||
component::Button,
|
||||
constant::SCREEN,
|
||||
firmware::{Header, HeaderMsg},
|
||||
theme,
|
||||
@ -26,7 +27,10 @@ impl SetBrightnessScreen {
|
||||
const SLIDER_HEIGHT: i16 = 392;
|
||||
pub fn new(min: u16, max: u16, init_value: u16) -> Self {
|
||||
Self {
|
||||
header: Header::new(TR::brightness__title.into()).with_close_button(),
|
||||
header: Header::new(TR::brightness__title.into()).with_right_button(
|
||||
Button::with_icon(theme::ICON_CHECKMARK).styled(theme::button_header()),
|
||||
HeaderMsg::Cancelled,
|
||||
),
|
||||
slider: VerticalSlider::new(min, max, init_value),
|
||||
brightness: init_value as _,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user