Fix default theme not applying to language selector dialog

This commit is contained in:
pizzaboxer 2024-07-09 20:41:43 +04:00
parent 55852d596f
commit 2f92917c61
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
2 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,11 @@
<ui:UiWindow x:Class="Bloxstrap.UI.Elements.Dialogs.LanguageSelectorDialog" <base:WpfUiWindow x:Class="Bloxstrap.UI.Elements.Dialogs.LanguageSelectorDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:local="clr-namespace:Bloxstrap.UI.Elements.Dialogs" xmlns:local="clr-namespace:Bloxstrap.UI.Elements.Dialogs"
xmlns:base="clr-namespace:Bloxstrap.UI.Elements.Base"
xmlns:resources="clr-namespace:Bloxstrap.Resources" xmlns:resources="clr-namespace:Bloxstrap.Resources"
mc:Ignorable="d" mc:Ignorable="d"
Title="Bloxstrap" Title="Bloxstrap"
@ -38,4 +39,4 @@
</StackPanel> </StackPanel>
</Border> </Border>
</Grid> </Grid>
</ui:UiWindow> </base:WpfUiWindow>

View File

@ -26,6 +26,7 @@ namespace Bloxstrap.UI.Elements.Dialogs
DataContext = viewModel; DataContext = viewModel;
InitializeComponent(); InitializeComponent();
ApplyTheme();
viewModel.CloseRequestEvent += (_, _) => Close(); viewModel.CloseRequestEvent += (_, _) => Close();
} }