This commit is contained in:
Assistant 2020-02-17 23:26:54 -07:00
parent afebb611e3
commit e45e88b371
4 changed files with 9 additions and 7 deletions

View file

@ -71,7 +71,6 @@ namespace ModAssistant
Themes.ApplyWindowsTheme();
return;
}
MessageBox.Show("gothere");
try
{
Themes.ApplyTheme(savedTheme, false);
@ -101,7 +100,7 @@ namespace ModAssistant
{
MainWindow.Instance.MainText = string.Format((string)Application.Current.FindResource("Themes:ThemeSet"), theme);
}
LoadWaifu(theme);
LoadWaifus(theme);
ReloadIcons();
}
else
@ -199,7 +198,11 @@ namespace ModAssistant
return dictionary;
}
private static void LoadWaifu(string name)
/// <summary>
/// Loads the waifus from the Themes folder if they exist.
/// </summary>
/// <param name="name">Theme's name.</param>
private static void LoadWaifus(string name)
{
string location = Path.Combine(Environment.CurrentDirectory, "Themes");
BitmapImage background = null;
@ -214,7 +217,6 @@ namespace ModAssistant
}
MainWindow.Instance.BackgroundImage.ImageSource = background;
MainWindow.Instance.SideImage.ImageSource = sidebar;
}
/// <summary>

View file

@ -74,7 +74,7 @@
<SolidColorBrush x:Key="OptionsIconColor" Color="{DynamicResource ResourceKey=StandardIcon}" />
<!--Background and Side image settings.-->
<Stretch x:Key="BackGroundImageStretch">UniformToFill</Stretch> <!-- Fill, None, Uniform, UniformToFill -->
<Stretch x:Key="BackgroundImageStretch">UniformToFill</Stretch> <!-- Fill, None, Uniform, UniformToFill -->
<AlignmentY x:Key="SideImageYPosition">Bottom</AlignmentY> <!-- Bottom, Center, Top -->
</ResourceDictionary>

View file

@ -62,7 +62,7 @@
<SolidColorBrush x:Key="OptionsIconColor" Color="White"/>
<!-- Background and Side image settings. -->
<Stretch x:Key="BackGroundImageStretch">UniformToFill</Stretch> <!-- Fill, None, Uniform, UniformToFill -->
<Stretch x:Key="BackgroundImageStretch">UniformToFill</Stretch> <!-- Fill, None, Uniform, UniformToFill -->
<AlignmentY x:Key="SideImageYPosition">Bottom</AlignmentY> <!-- Bottom, Center, Top -->
</ResourceDictionary>

View file

@ -73,7 +73,7 @@
<SolidColorBrush x:Key="OptionsIconColor" Color="#4E3BCE" />
<!--Background and Side image settings.-->
<Stretch x:Key="BackGroundImageStretch">UniformToFill</Stretch> <!-- Fill, None, Uniform, UniformToFill -->
<Stretch x:Key="BackgroundImageStretch">UniformToFill</Stretch> <!-- Fill, None, Uniform, UniformToFill -->
<AlignmentY x:Key="SideImageYPosition">Bottom</AlignmentY> <!-- Bottom, Center, Top -->
</ResourceDictionary>