diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/changelog/src/main.rs | 8 | ||||
-rw-r--r-- | examples/markdown/src/main.rs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/changelog/src/main.rs b/examples/changelog/src/main.rs index a6528ce9..f3b9894f 100644 --- a/examples/changelog/src/main.rs +++ b/examples/changelog/src/main.rs @@ -280,7 +280,7 @@ impl Generator { .font(Font::MONOSPACE); let description = - markdown::view(&self.theme(), description) + markdown(description, self.theme()) .map(Message::UrlClicked); let labels = @@ -344,12 +344,12 @@ impl Generator { } else { container( scrollable( - markdown::view( + markdown( + preview, markdown::Settings::with_text_size( 12, - &self.theme(), + self.theme(), ), - preview, ) .map(Message::UrlClicked), ) diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs index 29625d79..96541342 100644 --- a/examples/markdown/src/main.rs +++ b/examples/markdown/src/main.rs @@ -164,11 +164,11 @@ impl Markdown { }; let preview = markdown::view_with( + items, + &self.theme, &MarkdownViewer { images: &self.images, }, - &self.theme, - items, ); row![ |