theme::Theme,
time,
widget::{column, container, row, text, vertical_slider, vertical_space},
- window, Alignment, {Application, Command, Element, Length, Point, Subscription},
+ window, Alignment, Color, {Application, Command, Element, Length, Point, Subscription},
};
use itertools::Itertools;
}
fn theme(&self) -> Theme {
- Theme::Dark
+ Theme::custom(iced::theme::Palette {
+ background: Color::from_rgb8(0x15, 0x15, 0x15),
+ text: Color::from_rgb8(0xD7, 0xD0, 0xC7),
+ primary: Color::from_rgb8(0x9B, 0x64, 0xFB),
+ success: Color::from_rgb8(0x42, 0x71, 0x7B),
+ danger: Color::from_rgb8(0xD2, 0x3D, 0x3D),
+ })
}
}
) -> Vec<Geometry> {
vec![self.life_cache.draw(bounds.size(), |frame| {
let background = Path::rectangle(Point::ORIGIN, frame.size());
- frame.fill(&background, Color::from_rgb8(0x10, 0x10, 0x10));
+ frame.fill(&background, Color::from_rgb8(0x30, 0x30, 0x30));
frame.with_save(|frame| {
frame.scale(Cell::SIZE as f32);
frame.fill_rectangle(
Point::new(x.0 as f32, x.1 as f32),
Size::UNIT,
- Color::WHITE,
+ Color::from_rgb8(0xD7, 0xD0, 0xC7),
);
})
});
) -> Vec<Geometry> {
vec![self.mask_cache.draw(bounds.size(), |frame| {
let background = Path::rectangle(Point::ORIGIN, frame.size());
- frame.fill(&background, Color::from_rgb8(0x10, 0x10, 0x10));
+ frame.fill(&background, Color::from_rgb8(0x30, 0x30, 0x30));
frame.with_save(|frame| {
frame.scale(Cell::SIZE as f32);
Point::new(x.0 as f32, x.1 as f32),
Size::UNIT,
if self.hits.contains(&Cell { i: x.1, j: x.0 }) {
- Color::from_rgb8(0xFF, 0xFF, 0xFF)
+ Color::from_rgb8(0x42, 0x71, 0x7B)
} else {
- Color::from_rgb8(0xDD, 0xDD, 0xDD)
+ Color::from_rgb8(0xD7, 0xD0, 0xC7)
},
);
})