summaryrefslogtreecommitdiffstats
path: root/examples/markdown/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/markdown/src/main.rs')
-rw-r--r--examples/markdown/src/main.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs
index 173cb389..db40d0b9 100644
--- a/examples/markdown/src/main.rs
+++ b/examples/markdown/src/main.rs
@@ -28,8 +28,11 @@ impl Markdown {
(
Self {
content: text_editor::Content::with_text(INITIAL_CONTENT),
- items: markdown::parse(INITIAL_CONTENT, theme.palette())
- .collect(),
+ items: markdown::parse(
+ INITIAL_CONTENT,
+ theme.extended_palette(),
+ )
+ .collect(),
theme,
},
widget::focus_next(),
@@ -46,7 +49,7 @@ impl Markdown {
if is_edit {
self.items = markdown::parse(
&self.content.text(),
- self.theme.palette(),
+ self.theme.extended_palette(),
)
.collect();
}