generated from GarandPLG/rust-flake-template
Remove selected check in CellWidget::get_color
This commit is contained in:
@@ -91,15 +91,11 @@ impl CellWidget {
|
|||||||
return Color::LightYellow;
|
return Color::LightYellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !self.selected {
|
match self.structure {
|
||||||
return match self.structure {
|
CellStructure::Base(base) => base.get_color(),
|
||||||
CellStructure::Base(base) => base.get_color(),
|
CellStructure::Tunnel(tunnel) => tunnel.get_color(),
|
||||||
CellStructure::Tunnel(tunnel) => tunnel.get_color(),
|
CellStructure::Stone(stone) => stone.get_color(),
|
||||||
CellStructure::Stone(stone) => stone.get_color(),
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Color::White
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_text_area(&self) -> Vec<Line<'_>> {
|
fn get_text_area(&self) -> Vec<Line<'_>> {
|
||||||
|
|||||||
Reference in New Issue
Block a user