chore: simplify colours
This commit is contained in:
parent
cf03e89a50
commit
1f28d97443
10
src/ui.rs
10
src/ui.rs
|
@ -56,12 +56,6 @@ pub fn render_ui(
|
||||||
let black = KAGAYAKI.get("BLACK").unwrap();
|
let black = KAGAYAKI.get("BLACK").unwrap();
|
||||||
let black = egui::Color32::from_rgb(black.0, black.1, black.2);
|
let black = egui::Color32::from_rgb(black.0, black.1, black.2);
|
||||||
|
|
||||||
let blue = KAGAYAKI.get("BLUE").unwrap();
|
|
||||||
let blue = egui::Color32::from_rgb(blue.0, blue.1, blue.2);
|
|
||||||
|
|
||||||
let yellow = KAGAYAKI.get("YELLOW").unwrap();
|
|
||||||
let yellow = egui::Color32::from_rgb(yellow.0, yellow.1, yellow.2);
|
|
||||||
|
|
||||||
egui::Window::new("Login")
|
egui::Window::new("Login")
|
||||||
.anchor(egui::Align2::CENTER_CENTER, egui::Vec2::new(0., 0.))
|
.anchor(egui::Align2::CENTER_CENTER, egui::Vec2::new(0., 0.))
|
||||||
.resizable(false)
|
.resizable(false)
|
||||||
|
@ -141,11 +135,11 @@ pub fn render_ui(
|
||||||
ui.add(health_bar);
|
ui.add(health_bar);
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
|
|
||||||
ui.label(egui::RichText::new("Stamina").color(yellow));
|
ui.label(egui::RichText::new("Stamina").color(purple));
|
||||||
ui.add(stamina_bar);
|
ui.add(stamina_bar);
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
|
|
||||||
ui.label(egui::RichText::new("Mana").color(blue));
|
ui.label(egui::RichText::new("Mana").color(purple));
|
||||||
ui.add(mana_bar);
|
ui.add(mana_bar);
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue