From 1ade5a25d21f4c346f479eac932035f773035ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Cicho=C5=84?= Date: Wed, 2 Oct 2024 11:31:10 +0200 Subject: [PATCH] egui: add more layer names colors are assigned to in GUI --- src/bin/topola-egui/layers.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/topola-egui/layers.rs b/src/bin/topola-egui/layers.rs index 8549b9a..0dc5ad1 100644 --- a/src/bin/topola-egui/layers.rs +++ b/src/bin/topola-egui/layers.rs @@ -22,9 +22,9 @@ impl Layers { .map(|(i, color)| { let layername = board.mesadata().layer_layername(i); - if matches!(layername, Some("F.Cu")) { + if matches!(layername, Some("F.Cu") | Some("1")) { egui::Color32::from_rgb(255, 52, 52) - } else if matches!(layername, Some("B.Cu")) { + } else if matches!(layername, Some("B.Cu") | Some("2")) { egui::Color32::from_rgb(52, 52, 255) } else if matches!(layername, Some("In1.Cu")) { egui::Color32::from_rgb(127, 200, 127) @@ -42,9 +42,9 @@ impl Layers { .map(|(i, color)| { let layername = board.mesadata().layer_layername(i); - if matches!(layername, Some("F.Cu")) { + if matches!(layername, Some("F.Cu") | Some("1")) { egui::Color32::from_rgb(255, 100, 100) - } else if matches!(layername, Some("B.Cu")) { + } else if matches!(layername, Some("B.Cu") | Some("2")) { egui::Color32::from_rgb(100, 100, 255) } else if matches!(layername, Some("In1.Cu")) { egui::Color32::from_rgb(213, 236, 213)