diff options
author | 2024-07-28 13:15:04 +0200 | |
---|---|---|
committer | 2024-07-28 13:15:04 +0200 | |
commit | 4dc7b9b9619010b50ec6df837bd945ff0f675781 (patch) | |
tree | 1bcb61f5bf633508f0eae760e5f986c92258b6aa /examples | |
parent | ddcf02f9d0377afe6a35dbbb09a29b4bd52efe2e (diff) | |
download | iced-4dc7b9b9619010b50ec6df837bd945ff0f675781.tar.gz iced-4dc7b9b9619010b50ec6df837bd945ff0f675781.tar.bz2 iced-4dc7b9b9619010b50ec6df837bd945ff0f675781.zip |
Use dark background for inline code in `markdown` widget
Diffstat (limited to 'examples')
-rw-r--r-- | examples/markdown/src/main.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs index db40d0b9..efe5b324 100644 --- a/examples/markdown/src/main.rs +++ b/examples/markdown/src/main.rs @@ -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(); } |