Make UI theme aware

This commit is contained in:
Joshua Askharoun
2021-04-26 16:10:23 -05:00
parent 9efbc08745
commit c1cbe70f1b
2 changed files with 7 additions and 4 deletions
+2 -3
View File
@@ -8,8 +8,7 @@
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
mc:Ignorable="d"
Title="Zune Modding Helper" Height="450" Width="800"
Loaded="Window_Loaded"
Background="#F0F0F0">
Loaded="Window_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
@@ -57,7 +56,7 @@
Grid.RowSpan="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4"/>
</Grid>
<Border x:Name="ProgressBorder" Padding="8" Margin="8" Background="White" Visibility="Collapsed" Grid.RowSpan="2">
<Border x:Name="ProgressBorder" Padding="8" Margin="8" Visibility="Collapsed" Grid.RowSpan="2">
<Grid>
<StackPanel Margin="50,8,50,8" VerticalAlignment="Center" HorizontalAlignment="Stretch">
<TextBlock x:Name="ProgressDesc" Text="Preparing..." FontSize="14" FontWeight="SemiBold"
+5 -1
View File
@@ -1,4 +1,5 @@
using MahApps.Metro.Controls;
using ControlzEx.Theming;
using MahApps.Metro.Controls;
using OwlCore.AbstractUI.ViewModels;
using System;
using System.Collections.Generic;
@@ -26,6 +27,9 @@ namespace ZuneModdingHelper
public MainWindow()
{
InitializeComponent();
ThemeManager.Current.ThemeSyncMode = ThemeSyncMode.SyncWithAppMode;
ThemeManager.Current.SyncTheme();
}
private void Window_Loaded(object sender, RoutedEventArgs e)