summaryrefslogtreecommitdiffstats
path: root/examples/multi_window
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-14 03:15:14 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-14 03:15:14 +0200
commit7f13fab0582fe681b8546126245512bdc2338ead (patch)
tree19e0b339ec633ffa77ac6dad1ac5cf4355b25635 /examples/multi_window
parent20945e3f9013c663deeb71096c749bc7b90d462c (diff)
downloadiced-7f13fab0582fe681b8546126245512bdc2338ead.tar.gz
iced-7f13fab0582fe681b8546126245512bdc2338ead.tar.bz2
iced-7f13fab0582fe681b8546126245512bdc2338ead.zip
Use all themes in `multi_window` example
Diffstat (limited to 'examples/multi_window')
-rw-r--r--examples/multi_window/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/multi_window/src/main.rs b/examples/multi_window/src/main.rs
index 14e4e56b..ba764654 100644
--- a/examples/multi_window/src/main.rs
+++ b/examples/multi_window/src/main.rs
@@ -160,11 +160,7 @@ impl Window {
title: format!("Window_{}", count),
scale_input: "1.0".to_string(),
current_scale: 1.0,
- theme: if count % 2 == 0 {
- Theme::Light
- } else {
- Theme::Dark
- },
+ theme: Theme::ALL[count % Theme::ALL.len()].clone(),
input_id: text_input::Id::unique(),
}
}