Skip to content

Commit

Permalink
collapse if statement where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
reykjalin committed Mar 22, 2024
1 parent 30de7e9 commit 64f48de
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ impl eframe::App for TemplateApp {
} else {
egui::Color32::BLUE
}
} else if ui.ctx().style().visuals.dark_mode {
egui::Color32::LIGHT_RED
} else {
if ui.ctx().style().visuals.dark_mode {
egui::Color32::LIGHT_RED
} else {
egui::Color32::RED
}
egui::Color32::RED
},
..Default::default()
},
Expand Down

0 comments on commit 64f48de

Please sign in to comment.