rework networking indicator dot

This commit is contained in:
2025-04-20 07:33:34 +01:00
parent 6079a72f47
commit d789b0f62d
5 changed files with 31 additions and 30 deletions
+1 -14
View File
@@ -1,7 +1,4 @@
use crate::util::consts::{
colours,
game::{EXE_ENHANCED, EXE_LEGACY},
};
use crate::util::consts::game::{EXE_ENHANCED, EXE_LEGACY};
use std::{
path::Path,
time::{Duration, Instant},
@@ -44,16 +41,6 @@ impl From<bool> for BlockedStatus {
}
}
impl From<BlockedStatus> for eframe::egui::Color32 {
fn from(value: BlockedStatus) -> Self {
match value {
BlockedStatus::Blocked => colours::RED,
BlockedStatus::Failed => colours::YELLOW,
BlockedStatus::Unblocked => colours::GREEN,
}
}
}
impl BlockedStatus {
pub fn to_color32(self) -> eframe::egui::Color32 {
self.into()