generated from GarandPLG/rust-flake-template
Remove selected check in CellWidget::get_color
This commit is contained in:
1 parent
0a8b3562f6
commit
a04264c08b
1 file changed
+1
-5
@@ -91,15 +91,11 @@ impl CellWidget {
|
||||
return Color::LightYellow;
|
||||
}
|
||||
|
||||
if !self.selected {
|
||||
return match self.structure {
|
||||
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<'_>> {
|
||||
|
||||
Reference in new issue
Block a user