idk
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2025-07-14 12:54:32 -05:00
parent 89721b947d
commit 47dea95ba6

View file

@ -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();