From 7e6a234f9b25bea2d74c6537cdbf19706a604eaf Mon Sep 17 00:00:00 2001 From: grimsace Date: Thu, 12 Mar 2026 09:11:48 -0500 Subject: [PATCH] swapped colors for locked doors and normal doors --- src/exporter.rs | 4 ++-- src/main.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/exporter.rs b/src/exporter.rs index 4d16eca..43b5270 100644 --- a/src/exporter.rs +++ b/src/exporter.rs @@ -14,8 +14,8 @@ const GRID: (u8, u8, u8, u8) = (130, 130, 130, 255); const ROOM: (u8, u8, u8, u8) = (70, 120, 160, 255); const CORRIDOR: (u8, u8, u8, u8) = (210, 190, 120, 255); const BLACK: (u8, u8, u8, u8) = (0, 0, 0, 255); -const OPEN_DOOR: (u8, u8, u8, u8) = (220, 70, 70, 255); -const LOCKED_DOOR: (u8, u8, u8, u8) = (80, 200, 120, 255); +const OPEN_DOOR: (u8, u8, u8, u8) = (80, 200, 120, 255); +const LOCKED_DOOR: (u8, u8, u8, u8) = (220, 70, 70, 255); const ARCHWAY: (u8, u8, u8, u8) = (70, 130, 220, 255); const WHITE: (u8, u8, u8, u8) = (255, 255, 255, 255); diff --git a/src/main.rs b/src/main.rs index a43316d..79a929a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -140,8 +140,8 @@ impl eframe::App for DungeonApp { draw_legend_entry(ui, Color32::from_rgb(70, 120, 160), "Rooms"); draw_legend_entry(ui, Color32::from_rgb(210, 190, 120), "Corridors"); draw_legend_entry(ui, Color32::BLACK, "Walls"); - draw_legend_entry(ui, Color32::from_rgb(220, 70, 70), "Doors"); - draw_legend_entry(ui, Color32::from_rgb(80, 200, 120), "Locked Doors"); + draw_legend_entry(ui, Color32::from_rgb(80, 200, 120), "Doors"); + draw_legend_entry(ui, Color32::from_rgb(220, 70, 70), "Locked Doors"); draw_legend_entry(ui, Color32::from_rgb(70, 130, 220), "Archways"); } }); @@ -618,9 +618,9 @@ fn draw_layout( } else if door.archway { Color32::from_rgb(70, 130, 220) } else if door.locked { - Color32::from_rgb(80, 200, 120) - } else { Color32::from_rgb(220, 70, 70) + } else { + Color32::from_rgb(80, 200, 120) }; let style = if colorblind_mode { if door.archway {