fix compile for markdown feature

This commit is contained in:
wiiznokes 2024-11-27 20:15:25 +01:00
parent a6db807c1b
commit 88e7d7e063

View file

@ -1471,9 +1471,9 @@ impl iced_widget::text_editor::Catalog for Theme {
impl iced_widget::markdown::Catalog for Theme {
fn code_block<'a>() -> <Self as iced_container::Catalog>::Class<'a> {
Container::custom(|_| iced_container::Style {
background: Some(color!(0x111111).into()),
background: Some(iced::color!(0x111111).into()),
text_color: Some(Color::WHITE),
border: border::rounded(2),
border: iced::border::rounded(2),
..iced_container::Style::default()
})
}