diff --git a/AutoTrackR2/Assets/BRTE.png b/AutoTrackR2/Assets/BRTE.png new file mode 100644 index 0000000..77d5194 Binary files /dev/null and b/AutoTrackR2/Assets/BRTE.png differ diff --git a/AutoTrackR2/AutoTrackR2.csproj b/AutoTrackR2/AutoTrackR2.csproj index 37311bc..1a9ea2c 100644 --- a/AutoTrackR2/AutoTrackR2.csproj +++ b/AutoTrackR2/AutoTrackR2.csproj @@ -31,6 +31,7 @@ <None Remove="Assets\WRITH.png" /> <None Remove="Assets\ZAP.png" /> <None Remove="Assets\DMC.png" /> + <None Remove="Assets\BRTE.png" /> <None Remove="config.ini" /> <None Remove="Fonts\Orbitron-Bold.ttf" /> <None Remove="Fonts\Roboto-Regular.ttf" /> @@ -113,6 +114,9 @@ <Resource Include="Assets\DMC.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Resource> + <Resource Include="Assets\BRTE.png"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Resource> <Resource Include="config.ini" /> <Resource Include="Fonts\Orbitron-Bold.ttf"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> diff --git a/AutoTrackR2/MainWindow.xaml.cs b/AutoTrackR2/MainWindow.xaml.cs index f6bde94..1da0c4c 100644 --- a/AutoTrackR2/MainWindow.xaml.cs +++ b/AutoTrackR2/MainWindow.xaml.cs @@ -35,12 +35,24 @@ namespace AutoTrackR2 // Create a pack URI for the resource Uri uri = new Uri($"pack://application:,,,/AutoTrackR2;component{imagePath}", UriKind.Absolute); + Debug.WriteLine($"Attempting to load logo from: {uri}"); + + // Check if the resource exists + var resourceInfo = Application.GetResourceStream(uri); + if (resourceInfo == null) + { + Debug.WriteLine($"Resource not found: {uri}"); + return; + } + Logo.Source = new BitmapImage(uri); + Debug.WriteLine($"Successfully loaded logo: {uri}"); } catch (Exception ex) { // Log the error or handle it appropriately Debug.WriteLine($"Error loading logo image: {ex.Message}"); + Debug.WriteLine($"Stack trace: {ex.StackTrace}"); // Optionally set a default logo or handle the error } } diff --git a/AutoTrackR2/themes.json b/AutoTrackR2/themes.json index 10e2656..42dbd26 100644 --- a/AutoTrackR2/themes.json +++ b/AutoTrackR2/themes.json @@ -250,7 +250,7 @@ "AltText": "#FF3333" }, "Logo": { - "Path": "/Assets/Blightveil.png", + "Path": "/Assets/BlightVeil.png", "Primary": "#8B4AC6" } }, @@ -330,5 +330,18 @@ "Path": "/Assets/DMC.png", "Primary": "#FF0000" } + }, + "BRTE": { + "Colors": { + "Accent": "#FF4500", + "Button": "#1A0A00", + "Background": "#0A0500", + "Text": "#FFFFFF", + "AltText": "#FF8C42" + }, + "Logo": { + "Path": "/Assets/BRTE.png", + "Primary": "#FF4500" + } } }