Use all themes in multi_window example
This commit is contained in:
parent
20945e3f90
commit
7f13fab058
1 changed files with 1 additions and 5 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue