fix: compile for markdown feature

This commit is contained in:
wiiznokes 2024-12-03 05:13:54 +01:00 committed by GitHub
parent 931165050d
commit b80d90e5ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()
})
}