fix(dashboard): 💄 Tweak accent color
This commit is contained in:
parent
8692c9450d
commit
fbcf06bbee
|
@ -1,24 +1,22 @@
|
|||
use egui::{self, Color32, Context, Rounding, Stroke, TextStyle, Visuals};
|
||||
|
||||
pub const ACCENT: Color32 = Color32::from_rgb(134, 171, 241);
|
||||
pub const ACCENT: Color32 = Color32::from_rgb(0, 76, 176);
|
||||
pub const BG: Color32 = Color32::from_rgb(30, 30, 30);
|
||||
pub const LIGHTER_BG: Color32 = Color32::from_rgb(36, 36, 36);
|
||||
pub const SECTION_BG: Color32 = Color32::from_rgb(36, 36, 36);
|
||||
pub const DARKER_BG: Color32 = Color32::from_rgb(26, 26, 26);
|
||||
pub const SEPARATOR_BG: Color32 = Color32::from_rgb(69, 69, 69);
|
||||
pub const SELECTED_BG: Color32 = Color32::from_rgb(0, 60, 128);
|
||||
pub const FG: Color32 = Color32::from_rgb(250, 250, 250);
|
||||
|
||||
pub const OK_GREEN: Color32 = Color32::GREEN;
|
||||
pub const KO_RED: Color32 = Color32::RED;
|
||||
|
||||
pub mod log_colors {
|
||||
use super::ACCENT;
|
||||
use egui::epaint::Color32;
|
||||
|
||||
pub const ERROR_LIGHT: Color32 = Color32::from_rgb(255, 50, 50);
|
||||
pub const WARNING_LIGHT: Color32 = Color32::from_rgb(205, 147, 9);
|
||||
pub const INFO_LIGHT: Color32 = ACCENT;
|
||||
pub const INFO_LIGHT: Color32 = Color32::from_rgb(134, 171, 241);
|
||||
pub const DEBUG_LIGHT: Color32 = Color32::LIGHT_GRAY;
|
||||
pub const EVENT_LIGHT: Color32 = Color32::GRAY;
|
||||
}
|
||||
|
@ -61,7 +59,7 @@ pub fn set_theme(ctx: &Context) {
|
|||
visuals.widgets.open.bg_fill = SEPARATOR_BG;
|
||||
visuals.widgets.open.rounding = rounding;
|
||||
|
||||
visuals.selection.bg_fill = SELECTED_BG;
|
||||
visuals.selection.bg_fill = ACCENT;
|
||||
visuals.selection.stroke = Stroke::new(1.0, FG);
|
||||
|
||||
visuals.widgets.noninteractive.bg_fill = BG;
|
||||
|
|
Loading…
Reference in New Issue