parent
89721b947d
commit
47dea95ba6
1 changed files with 4 additions and 4 deletions
|
@ -9,12 +9,14 @@ use cosmic::{
|
||||||
Background, Border, Color, ContentFit, Font, Length, Shadow,
|
Background, Border, Color, ContentFit, Font, Length, Shadow,
|
||||||
Vector,
|
Vector,
|
||||||
},
|
},
|
||||||
|
iced_core::text::Span,
|
||||||
iced_widget::{
|
iced_widget::{
|
||||||
rich_text,
|
rich_text,
|
||||||
scrollable::{
|
scrollable::{
|
||||||
scroll_to, AbsoluteOffset, Direction, Scrollbar,
|
scroll_to, AbsoluteOffset, Direction, Scrollbar,
|
||||||
},
|
},
|
||||||
span, stack,
|
span, stack,
|
||||||
|
text::Rich,
|
||||||
},
|
},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
widget::{
|
widget::{
|
||||||
|
@ -565,9 +567,7 @@ pub(crate) fn slide_view(
|
||||||
.chars()
|
.chars()
|
||||||
.map(
|
.map(
|
||||||
|c| -> cosmic::iced_core::text::Span<
|
|c| -> cosmic::iced_core::text::Span<
|
||||||
'_,
|
Message,
|
||||||
(),
|
|
||||||
Font,
|
|
||||||
> {
|
> {
|
||||||
span(format!("{}\n", c))
|
span(format!("{}\n", c))
|
||||||
.size(font_size)
|
.size(font_size)
|
||||||
|
@ -580,7 +580,7 @@ pub(crate) fn slide_view(
|
||||||
.padding(10)
|
.padding(10)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.collect();
|
.collect::<Vec<Span<Message>>>();
|
||||||
rich_text(chars).center().into()
|
rich_text(chars).center().into()
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue