Use dark background for inline code in markdown widget

This commit is contained in:
Héctor Ramón Jiménez 2024-07-28 13:15:04 +02:00
parent ddcf02f9d0
commit 4dc7b9b961
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 10 additions and 13 deletions

View file

@ -28,11 +28,8 @@ impl Markdown {
(
Self {
content: text_editor::Content::with_text(INITIAL_CONTENT),
items: markdown::parse(
INITIAL_CONTENT,
theme.extended_palette(),
)
.collect(),
items: markdown::parse(INITIAL_CONTENT, &theme.palette())
.collect(),
theme,
},
widget::focus_next(),
@ -49,7 +46,7 @@ impl Markdown {
if is_edit {
self.items = markdown::parse(
&self.content.text(),
self.theme.extended_palette(),
&self.theme.palette(),
)
.collect();
}