From 0d9f740f32c2baa44b046750ec0815626bba29c5 Mon Sep 17 00:00:00 2001 From: Dork Normalize <nope> Date: Sun, 6 Apr 2025 21:50:27 -0700 Subject: [PATCH] Fix logo paths --- AutoTrackR2/ConfigPage.xaml.cs | 9 +++++--- AutoTrackR2/themes.json | 38 +++++++++++++++++----------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/AutoTrackR2/ConfigPage.xaml.cs b/AutoTrackR2/ConfigPage.xaml.cs index 72db98f..9a48ef7 100644 --- a/AutoTrackR2/ConfigPage.xaml.cs +++ b/AutoTrackR2/ConfigPage.xaml.cs @@ -135,9 +135,12 @@ public partial class ConfigPage : UserControl if (theme == null) return; // Update the logo - if (theme.Logo != null && theme.Logo.LogoPath != null) + if (theme.Logo != null && theme.Logo.Path != null) { - ChangeLogo(theme.Logo.LogoPath, Colors.Transparent); + ChangeLogo(theme.Logo.Path, + theme.Logo.Primary != null + ? (Color) ColorConverter.ConvertFromString(theme.Logo.Primary) + : Colors.Transparent); } // Update the colors @@ -437,6 +440,6 @@ public class ThemeColors public class ThemeLogo { - public string? LogoPath { get; set; } + public string? Path { get; set; } public string? Primary { get; set; } // Optional: null if not used } diff --git a/AutoTrackR2/themes.json b/AutoTrackR2/themes.json index 0d2c96d..57f41ee 100644 --- a/AutoTrackR2/themes.json +++ b/AutoTrackR2/themes.json @@ -57,7 +57,7 @@ }, "Logo": { "Path": "/Assets/GN.png", - "primary": "#FF0000" + "Primary": "#FF0000" } }, "NW": { @@ -70,7 +70,7 @@ }, "Logo": { "Path": "/Assets/NW.png", - "primary": "#01DDDA" + "Primary": "#01DDDA" } }, "D3VL": { @@ -83,7 +83,7 @@ }, "Logo": { "Path": "/Assets/D3VL.png", - "primary": "#CC0000" + "Primary": "#CC0000" } }, "HIT": { @@ -108,7 +108,7 @@ }, "Logo": { "Path": "/Assets/WRITH.png", - "primary": "#ff0000" + "Primary": "#ff0000" } }, "Cinderborn": { @@ -121,7 +121,7 @@ }, "Logo": { "Path": "/Assets/cinderborn.png", - "primary": "#FF4500" + "Primary": "#FF4500" } }, "EMP": { @@ -134,7 +134,7 @@ }, "Logo": { "Path": "/Assets/EMP.png", - "primary": "#F3BD9B" + "Primary": "#F3BD9B" } }, "AVS": { @@ -147,7 +147,7 @@ }, "Logo": { "Path": "/Assets/AVSQN.png", - "primary": "#00BFFF" + "Primary": "#00BFFF" } }, "HEX": { @@ -160,7 +160,7 @@ }, "Logo": { "Path": "/Assets/HEX.png", - "primary": "#00FF00" + "Primary": "#00FF00" } }, "Mammon": { @@ -173,7 +173,7 @@ }, "Logo": { "Path": "/Assets/MAMMON.png", - "primary": "#FFD700" + "Primary": "#FFD700" } }, "Shadow Moses": { @@ -186,7 +186,7 @@ }, "Logo": { "Path": "/Assets/ShadowMoses.png", - "primary": "#FF69B4" + "Primary": "#FF69B4" } }, "Mongrel Squad": { @@ -199,7 +199,7 @@ }, "Logo": { "Path": "/Assets/BOBGREL.png", - "primary": "#00BFFF" + "Primary": "#00BFFF" } }, "Feezy": { @@ -212,7 +212,7 @@ }, "Logo": { "Path": "/Assets/chibifox.png", - "primary": "#FFA500" + "Primary": "#FFA500" } }, "NMOS": { @@ -225,7 +225,7 @@ }, "Logo": { "Path": "/Assets/NMOS.png", - "primary": "#EAB787" + "Primary": "#EAB787" } }, "Rakk": { @@ -238,7 +238,7 @@ }, "Logo": { "Path": "/Assets/RACKETEERS.png", - "primary": "#FF00FF" + "Primary": "#FF00FF" } }, "Blightveil": { @@ -251,7 +251,7 @@ }, "Logo": { "Path": "/Assets/Blightveil.png", - "primary": "#8B4AC6" + "Primary": "#8B4AC6" } }, "Gankhub": { @@ -276,7 +276,7 @@ }, "Logo": { "Path": "/Assets/IP.png", - "primary": "#FF0000" + "Primary": "#FF0000" } }, "Shadow Guardian": { @@ -289,7 +289,7 @@ }, "Logo": { "Path": "/Assets/shadowguard.png", - "primary": "#8B0000" + "Primary": "#8B0000" } }, "VOX": { @@ -302,7 +302,7 @@ }, "Logo": { "Path": "/Assets/VOX.png", - "primary": "#FFD700" + "Primary": "#FFD700" } }, "Zap": { @@ -315,7 +315,7 @@ }, "Logo": { "Path": "/Assets/ZAP.png", - "primary": "#FFD700" + "Primary": "#FFD700" } } } \ No newline at end of file