mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-20 06:58:45 +00:00
chore(core): use smaller vectors for ShowInfoParams
[no changelog]
This commit is contained in:
parent
ec4fbecc1d
commit
6bf11ab29f
@ -8,7 +8,7 @@ use crate::{
|
|||||||
component::{
|
component::{
|
||||||
swipe_detect::SwipeSettings,
|
swipe_detect::SwipeSettings,
|
||||||
text::{
|
text::{
|
||||||
paragraphs::{Paragraph, ParagraphSource, ParagraphVecLong, VecExt},
|
paragraphs::{Paragraph, ParagraphSource, ParagraphVecShort, VecExt},
|
||||||
TextStyle,
|
TextStyle,
|
||||||
},
|
},
|
||||||
Component,
|
Component,
|
||||||
@ -330,7 +330,7 @@ pub struct ShowInfoParams {
|
|||||||
chunkify: bool,
|
chunkify: bool,
|
||||||
swipe_up: bool,
|
swipe_up: bool,
|
||||||
swipe_down: bool,
|
swipe_down: bool,
|
||||||
items: Vec<(TString<'static>, TString<'static>), 4>,
|
items: Vec<(TString<'static>, TString<'static>), 3>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ShowInfoParams {
|
impl ShowInfoParams {
|
||||||
@ -412,7 +412,7 @@ impl ShowInfoParams {
|
|||||||
pub fn into_layout(
|
pub fn into_layout(
|
||||||
self,
|
self,
|
||||||
) -> Result<impl Component<Msg = FlowMsg> + Swipable + MaybeTrace, Error> {
|
) -> Result<impl Component<Msg = FlowMsg> + Swipable + MaybeTrace, Error> {
|
||||||
let mut paragraphs = ParagraphVecLong::new();
|
let mut paragraphs = ParagraphVecShort::new();
|
||||||
let mut first: bool = true;
|
let mut first: bool = true;
|
||||||
for item in self.items {
|
for item in self.items {
|
||||||
// FIXME: padding:
|
// FIXME: padding:
|
||||||
|
Loading…
Reference in New Issue
Block a user