Skip to content

Commit

Permalink
Christmas Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Dec 21, 2024
1 parent 5505a72 commit 9269151
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions gamevault/Resources/Assets/Themes/ThemeChristmasDark.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:Int32 x:Key="Theme.SchemaVersion">1</system:Int32>
<!-- EDIT THEME HERE-->
<!-- A version number you can use to update your theme -->
<system:Int32 x:Key="Theme.Version">1</system:Int32>
<!-- Theme File Name Convention is Theme+YourThemeName+Dark/Light (e.g. ThemeOceanLight) -->
<system:String x:Key="Theme.Name">ThemeChristmasDark</system:String>
<!-- Ideally your GitHub Username -->
<system:String x:Key="Theme.Author">Phalcode</system:String>
<!-- Describe this theme -->
<system:String x:Key="Theme.Description">Celebrate a cozy and festive Christmas with us. We ho-ho-hope you love it!</system:String>
<!-- How the theme will be shown in UI -->
<system:String x:Key="Theme.DisplayName">Christmas (Dark)</system:String>

<!-- Text Color | On Realtime-Colors this is "Text" -->
<Color x:Key="GameVault.Colors.Foreground">#FFFFFFFF</Color>
<!-- Text Color on top of Primary Color -->
<Color x:Key="GameVault.Colors.Foreground2">#FFFFFFFF</Color>
<!-- Background Color (The one that takes most background space) | On Realtime-Colors this is
"Background" -->
<Color x:Key="GameVault.Colors.Background">#FF0C1600</Color>
<!-- Background Color (for cards and layouts) | On Realtime-Colors this is "Secondary" -->
<Color x:Key="GameVault.Colors.Background2">#FF550000</Color>
<!-- Primary / Accent Color | On Realtime-Colors this is "Primary" -->
<Color x:Key="GameVault.Colors.Accent">#FF005508</Color>
<!-- Primary Accent Color with 60% Opacity -->
<Color x:Key="GameVault.Colors.Accent2">#99005508</Color>
<!-- Primary Accent Color with 40% Opacity -->
<Color x:Key="GameVault.Colors.Accent3">#66005508</Color>
<!-- Primary Accent Color with 20% Opacity -->
<Color x:Key="GameVault.Colors.Accent4">#33005508</Color>
<!-- Border Colors | On Realtime-Colors this is "Accent" -->
<Color x:Key="GameVault.Colors.Border">#FFB39800</Color>
<!-- Blur Overlay Color | Usually White for Light Themes and Black for Dark Themes -->
<Color x:Key="GameVault.Colors.Blur">#00000000</Color>
</ResourceDictionary>
3 changes: 2 additions & 1 deletion gamevault/UserControls/SettingsUserControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ private async Task LoadThemes()
res.Source = new Uri("pack://application:,,,/gamevault;component/Resources/Assets/Themes/ThemeHalloweenDark.xaml");
ViewModel.Themes.Add(new ThemeItem() { DisplayName = (string)res["Theme.DisplayName"], Description = (string)res["Theme.Description"], Author = (string)res["Theme.Author"], IsPlus = true, Path = res.Source.OriginalString });


res.Source = new Uri("pack://application:,,,/gamevault;component/Resources/Assets/Themes/ThemeChristmasDark.xaml");
ViewModel.Themes.Add(new ThemeItem() { DisplayName = (string)res["Theme.DisplayName"], Description = (string)res["Theme.Description"], Author = (string)res["Theme.Author"], IsPlus = true, Path = res.Source.OriginalString });

if (Directory.Exists(AppFilePath.ThemesLoadDir))
{
Expand Down

0 comments on commit 9269151

Please sign in to comment.