]> git.huck.website - cellseq.git/commitdiff
fixed: display issues
authorHuck Boles <huck@huck.website>
Sat, 8 Jul 2023 23:40:54 +0000 (18:40 -0500)
committerHuck Boles <huck@huck.website>
Sat, 8 Jul 2023 23:40:54 +0000 (18:40 -0500)
src/display.rs
src/map.rs
src/mask.rs

index 8e50f6419798ebef9b804766a6bab74e87bc6bf1..b39114738e9ffea9a2285cf3ccbaf43071d8df65 100644 (file)
@@ -205,7 +205,7 @@ fn midi_vals<'a>(message: ControlMessage) -> Element<'a, Message> {
                 button("-").on_press(Message::ChannelChange(
                     message.info.channel.saturating_sub(1)
                 )),
-                text(format!("{}", message.info.channel)),
+                text(format!("{}", message.info.channel + 1)),
                 button("+").on_press(Message::ChannelChange(
                     message.info.channel.saturating_add(1)
                 )),
index 7398984a837da3367c247c4b718ca6eb7ce1ac5b..488a5c7a0f2824330e34caee7a7f5faee1b4bfe0 100644 (file)
@@ -168,7 +168,7 @@ impl Program<Message> for Map {
     ) -> Vec<Geometry> {
         vec![self.life_cache.draw(bounds.size(), |frame| {
             let background = Path::rectangle(Point::ORIGIN, frame.size());
-            frame.fill(&background, Color::from_rgb8(0x2E, 0x26, 0x2D));
+            frame.fill(&background, Color::from_rgb8(0x10, 0x10, 0x10));
 
             frame.with_save(|frame| {
                 frame.scale(Cell::SIZE as f32);
index e5b28ff2ccaa37e8bbced0646d6b71b3247eb735..191720e7a5dfbe188b0dcb97aa81d25f1321a844 100644 (file)
@@ -102,7 +102,7 @@ impl Program<Message> for Mask {
     ) -> Vec<Geometry> {
         vec![self.mask_cache.draw(bounds.size(), |frame| {
             let background = Path::rectangle(Point::ORIGIN, frame.size());
-            frame.fill(&background, Color::from_rgb8(0x26, 0x26, 0x2E));
+            frame.fill(&background, Color::from_rgb8(0x10, 0x10, 0x10));
 
             frame.with_save(|frame| {
                 frame.scale(Cell::SIZE as f32);
@@ -115,9 +115,9 @@ impl Program<Message> for Mask {
                             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, 0x00, 0x00)
+                                Color::from_rgb8(0xFF, 0xFF, 0xFF)
                             } else {
-                                Color::WHITE
+                                Color::from_rgb8(0xDD, 0xDD, 0xDD)
                             },
                         );
                     })