Use all themes in multi_window example

This commit is contained in:
Héctor Ramón Jiménez 2024-06-14 03:15:14 +02:00
parent 20945e3f90
commit 7f13fab058
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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(),
}
}