diff options
| author | 2023-09-20 01:21:42 +0200 | |
|---|---|---|
| committer | 2023-09-20 01:21:42 +0200 | |
| commit | ff78e97ad7df4db3b2a97b94e99854f2f9e3021a (patch) | |
| tree | a6cc540fcd92dad26155022f95f1d52e0473e509 /examples/editor | |
| parent | 93d6f748f69fc4ccf6c18f95c5f16b369c776da0 (diff) | |
| download | iced-ff78e97ad7df4db3b2a97b94e99854f2f9e3021a.tar.gz iced-ff78e97ad7df4db3b2a97b94e99854f2f9e3021a.tar.bz2 iced-ff78e97ad7df4db3b2a97b94e99854f2f9e3021a.zip  | |
Introduce more themes to `iced_highlighter`
Diffstat (limited to '')
| -rw-r--r-- | examples/editor/src/main.rs | 6 | 
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 +        }      }  }  | 
