From a04264c08b231d099bb3142cda83d9d92ec9e514 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Sun, 19 Apr 2026 20:06:11 +0200 Subject: [PATCH] Remove selected check in CellWidget::get_color --- src/app/widgets/cell.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/app/widgets/cell.rs b/src/app/widgets/cell.rs index 31d6ab5..76a71d5 100644 --- a/src/app/widgets/cell.rs +++ b/src/app/widgets/cell.rs @@ -91,15 +91,11 @@ impl CellWidget { return Color::LightYellow; } - if !self.selected { - return match self.structure { - CellStructure::Base(base) => base.get_color(), - CellStructure::Tunnel(tunnel) => tunnel.get_color(), - CellStructure::Stone(stone) => stone.get_color(), - }; + match self.structure { + CellStructure::Base(base) => base.get_color(), + CellStructure::Tunnel(tunnel) => tunnel.get_color(), + CellStructure::Stone(stone) => stone.get_color(), } - - Color::White } fn get_text_area(&self) -> Vec> {