From 1f28d9744346f1d771b5b984bbba6def6c7a05e1 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 20 Mar 2024 13:50:12 +0000 Subject: [PATCH] chore: simplify colours --- src/ui.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index b5eae99..7c76359 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -56,12 +56,6 @@ pub fn render_ui( let black = KAGAYAKI.get("BLACK").unwrap(); 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") .anchor(egui::Align2::CENTER_CENTER, egui::Vec2::new(0., 0.)) .resizable(false) @@ -141,11 +135,11 @@ pub fn render_ui( ui.add(health_bar); ui.end_row(); - ui.label(egui::RichText::new("Stamina").color(yellow)); + ui.label(egui::RichText::new("Stamina").color(purple)); ui.add(stamina_bar); ui.end_row(); - ui.label(egui::RichText::new("Mana").color(blue)); + ui.label(egui::RichText::new("Mana").color(purple)); ui.add(mana_bar); ui.end_row(); });