Remove selected check in CellWidget::get_color

This commit is contained in:
2026-04-19 20:06:11 +02:00
parent 0a8b3562f6
commit a04264c08b
+4 -8
View File
@@ -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<Line<'_>> {