Use ranges properly

This commit is contained in:
Greg Hellings
2024-10-16 15:59:39 -05:00
parent 0904dce763
commit 37d80eda28
2 changed files with 23 additions and 11 deletions
+6
View File
@@ -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{