summaryrefslogtreecommitdiffstats
path: root/examples/editor
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 01:21:42 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 01:21:42 +0200
commitff78e97ad7df4db3b2a97b94e99854f2f9e3021a (patch)
treea6cc540fcd92dad26155022f95f1d52e0473e509 /examples/editor
parent93d6f748f69fc4ccf6c18f95c5f16b369c776da0 (diff)
downloadiced-ff78e97ad7df4db3b2a97b94e99854f2f9e3021a.tar.gz
iced-ff78e97ad7df4db3b2a97b94e99854f2f9e3021a.tar.bz2
iced-ff78e97ad7df4db3b2a97b94e99854f2f9e3021a.zip
Introduce more themes to `iced_highlighter`
Diffstat (limited to 'examples/editor')
-rw-r--r--examples/editor/src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs
index d513090f..f49ca6e8 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -230,7 +230,11 @@ impl Application for Editor {
}
fn theme(&self) -> Theme {
- Theme::Dark
+ if self.theme.is_dark() {
+ Theme::Dark
+ } else {
+ Theme::Light
+ }
}
}