75 lines
3.7 KiB
XML
75 lines
3.7 KiB
XML
<Window x:Class="ThreadPilot.Views.SettingsWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:ThreadPilot.Views"
|
|
mc:Ignorable="d"
|
|
Title="ThreadPilot Settings"
|
|
Height="700" Width="900"
|
|
MinHeight="600" MinWidth="800"
|
|
WindowStartupLocation="CenterOwner"
|
|
ShowInTaskbar="False"
|
|
Icon="pack://application:,,,/assets/icons/ico.ico">
|
|
|
|
<Window.Resources>
|
|
<Style TargetType="Window">
|
|
<Setter Property="Background" Value="{DynamicResource AppBackgroundBrush}"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid>
|
|
<local:SettingsView x:Name="SettingsViewControl"/>
|
|
|
|
<Grid x:Name="UnsavedSettingsOverlay"
|
|
Visibility="Collapsed"
|
|
Background="{DynamicResource OverlayBrush}"
|
|
Panel.ZIndex="10"
|
|
AutomationProperties.Name="Unsaved settings dialog">
|
|
<Border Background="{DynamicResource CardSurfaceBrush}"
|
|
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
|
Padding="24"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
MinWidth="420"
|
|
MaxWidth="560">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Opacity="0.18"/>
|
|
</Border.Effect>
|
|
<StackPanel>
|
|
<TextBlock Text="Unsaved Settings"
|
|
FontSize="22"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Margin="0,0,0,10"/>
|
|
<TextBlock Text="You have unsaved changes. Save before closing, discard the changes, or cancel to keep editing."
|
|
TextWrapping="Wrap"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Margin="0,0,0,18"/>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="Cancel"
|
|
Click="UnsavedSettingsCancel_Click"
|
|
Background="{DynamicResource ControlFillColorDefaultBrush}"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Padding="16,8"
|
|
Margin="0,0,10,0"/>
|
|
<Button Content="Discard"
|
|
Click="UnsavedSettingsDiscard_Click"
|
|
Background="{DynamicResource ControlFillColorDefaultBrush}"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Padding="16,8"
|
|
Margin="0,0,10,0"/>
|
|
<Button Content="Save"
|
|
Click="UnsavedSettingsSave_Click"
|
|
Background="{DynamicResource AccentFillColorDefaultBrush}"
|
|
Foreground="{DynamicResource TextOnAccentFillColorPrimaryBrush}"
|
|
Padding="16,8"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|