summaryrefslogtreecommitdiffstats
path: root/examples/editor
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-13 15:17:04 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-13 15:17:04 +0200
commit52b36a9574f45138363a4bfc6394c6da03baa433 (patch)
tree48f21800c631fde2187a9c2315ca3c7f8cf08200 /examples/editor
parentd502c9f16fc78bf6b5253152751480c5b5e5999c (diff)
downloadiced-52b36a9574f45138363a4bfc6394c6da03baa433.tar.gz
iced-52b36a9574f45138363a4bfc6394c6da03baa433.tar.bz2
iced-52b36a9574f45138363a4bfc6394c6da03baa433.zip
Use `Theme::Dark` in `editor` example
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 50989ac5..2a70b34c 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -1,5 +1,5 @@
use iced::widget::{container, text_editor};
-use iced::{Element, Font, Sandbox, Settings};
+use iced::{Element, Font, Sandbox, Settings, Theme};
pub fn main() -> iced::Result {
Editor::run(Settings::default())
@@ -46,4 +46,8 @@ impl Sandbox for Editor {
.padding(20)
.into()
}
+
+ fn theme(&self) -> Theme {
+ Theme::Dark
+ }
}