Use ranges properly
This commit is contained in:
@@ -17,9 +17,15 @@ pub fn widget(cell: &Cell) -> iced::Element<Message> {
|
||||
|
||||
button(text(display))
|
||||
.style(|theme: &Theme, status| {
|
||||
// Get the current theme's palette
|
||||
let palette = theme.palette();
|
||||
|
||||
// Create a default border, since we need to set off the cells
|
||||
// TODO: Figure out how to get this out of the theme?
|
||||
let mut border = Border::default().color(LIGHT_GRAY);
|
||||
border.width = 1.0;
|
||||
|
||||
// Return a style based on the status
|
||||
match status {
|
||||
button::Status::Active => {
|
||||
button::Style{
|
||||
|
||||
Reference in New Issue
Block a user