rework networking indicator dot
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user