Retune shell theme toward Windows 11 styling
This commit is contained in:
+32
-29
@@ -51,7 +51,7 @@
|
||||
<Setter Property="IsHitTestVisible" Value="False"/>
|
||||
<Setter Property="Effect">
|
||||
<Setter.Value>
|
||||
<BlurEffect Radius="15" KernelType="Gaussian"/>
|
||||
<BlurEffect Radius="8" KernelType="Gaussian"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</DataTrigger>
|
||||
@@ -59,7 +59,7 @@
|
||||
<Setter Property="IsHitTestVisible" Value="False"/>
|
||||
<Setter Property="Effect">
|
||||
<Setter.Value>
|
||||
<BlurEffect Radius="15" KernelType="Gaussian"/>
|
||||
<BlurEffect Radius="8" KernelType="Gaussian"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</DataTrigger>
|
||||
@@ -89,16 +89,19 @@
|
||||
AutomationProperties.Name="Primary navigation">
|
||||
<ui:NavigationView.Resources>
|
||||
<Style TargetType="ui:NavigationViewItem">
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="{DynamicResource ControlFillColorSecondaryBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ControlStrokeColorDefaultBrush}"/>
|
||||
<Setter Property="Background" Value="{DynamicResource QuietRowBackgroundBrush}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderSubtleBrush}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsActive" Value="True">
|
||||
<Setter Property="Background" Value="{DynamicResource ControlFillColorSecondaryBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ControlStrokeColorDefaultBrush}"/>
|
||||
<Setter Property="Background" Value="{DynamicResource SoftSelectionBackgroundBrush}"/>
|
||||
<Setter Property="BorderThickness" Value="3,0,0,0"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource AccentFillColorDefaultBrush}"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
@@ -151,7 +154,7 @@
|
||||
</ui:NavigationView.FooterMenuItems>
|
||||
|
||||
<ui:NavigationView.ContentOverlay>
|
||||
<Grid x:Name="MainContent" Margin="10,0,10,10">
|
||||
<Grid x:Name="MainContent" Margin="12,0,12,12">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
@@ -174,18 +177,18 @@
|
||||
|
||||
<!-- Shell Login Popup -->
|
||||
<Border x:Name="ElevationWarningCard"
|
||||
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}"
|
||||
Background="{DynamicResource CardSurfaceBrush}"
|
||||
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"
|
||||
Padding="26"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="24"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
MinWidth="420"
|
||||
MaxWidth="560"
|
||||
IsHitTestVisible="True">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="18" ShadowDepth="0" Opacity="0.35"/>
|
||||
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Opacity="0.18"/>
|
||||
</Border.Effect>
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,16">
|
||||
@@ -266,7 +269,7 @@
|
||||
</Grid>
|
||||
|
||||
<!-- Status Bar -->
|
||||
<Border Grid.Row="2" Background="{DynamicResource CardBackgroundFillColorSecondaryBrush}" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}" Padding="10,3">
|
||||
<Border Grid.Row="2" Background="{DynamicResource SolidBackgroundFillColorBaseBrush}" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource BorderSubtleBrush}" Padding="12,4">
|
||||
<Border.Resources>
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
@@ -297,18 +300,18 @@
|
||||
Visibility="Collapsed"
|
||||
AutomationProperties.Name="Performance introduction overlay">
|
||||
<Border x:Name="PerformanceIntroCard"
|
||||
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}"
|
||||
Background="{DynamicResource CardSurfaceBrush}"
|
||||
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"
|
||||
Padding="26"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="24"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
MinWidth="360"
|
||||
MaxWidth="560"
|
||||
Opacity="1">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="18" ShadowDepth="0" Opacity="0.35"/>
|
||||
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Opacity="0.18"/>
|
||||
</Border.Effect>
|
||||
<StackPanel>
|
||||
<TextBlock x:Name="PerformanceIntroTitle"
|
||||
@@ -360,18 +363,18 @@
|
||||
Panel.ZIndex="960"
|
||||
Background="{DynamicResource OverlayBrush}"
|
||||
AutomationProperties.Name="Unsaved settings dialog">
|
||||
<Border Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}"
|
||||
<Border Background="{DynamicResource CardSurfaceBrush}"
|
||||
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"
|
||||
Padding="26"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="24"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
MinWidth="420"
|
||||
MaxWidth="560"
|
||||
IsHitTestVisible="True">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="18" ShadowDepth="0" Opacity="0.35"/>
|
||||
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Opacity="0.18"/>
|
||||
</Border.Effect>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Unsaved Settings"
|
||||
@@ -414,10 +417,10 @@
|
||||
AutomationProperties.LiveSetting="Polite">
|
||||
|
||||
<!-- Loading Popup -->
|
||||
<Border Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}"
|
||||
<Border Background="{DynamicResource CardSurfaceBrush}"
|
||||
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="30"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
@@ -428,8 +431,8 @@
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<!-- Application Icon -->
|
||||
<Border x:Name="LoadingIconBackground"
|
||||
Background="{DynamicResource ControlFillColorSecondaryBrush}"
|
||||
CornerRadius="10"
|
||||
Background="{DynamicResource QuietRowBackgroundBrush}"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="10"
|
||||
Margin="0,0,0,20"
|
||||
HorizontalAlignment="Center">
|
||||
|
||||
@@ -44,6 +44,23 @@ namespace ThreadPilot.Core.Tests
|
||||
dictionary => ThemeDictionaryPolicy.IsThreadPilotThemeDictionary(dictionary.Source?.OriginalString));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("Themes/FluentDark.xaml")]
|
||||
[InlineData("Themes/FluentLight.xaml")]
|
||||
public void ThemeDictionaries_DefineSharedVisualResourceKeys(string themePath)
|
||||
{
|
||||
var themeText = File.ReadAllText(GetRepositoryFilePath(themePath));
|
||||
|
||||
Assert.Contains("StandardCardCornerRadius", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("StandardCardPadding", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("StandardCardStyle", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("PageTitleTextStyle", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("PageSubtitleTextStyle", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("SectionTitleTextStyle", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("QuietRowBackgroundBrush", themeText, StringComparison.Ordinal);
|
||||
Assert.Contains("StatusPillBackgroundBrush", themeText, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private static ResourceDictionary CreateDictionaryWithSource(Uri source)
|
||||
{
|
||||
var dictionary = new ResourceDictionary();
|
||||
@@ -56,5 +73,21 @@ namespace ThreadPilot.Core.Tests
|
||||
sourceField.SetValue(dictionary, source);
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
private static string GetRepositoryFilePath(string relativePath)
|
||||
{
|
||||
var directory = new DirectoryInfo(AppContext.BaseDirectory);
|
||||
while (directory != null && !File.Exists(Path.Combine(directory.FullName, "ThreadPilot.csproj")))
|
||||
{
|
||||
directory = directory.Parent;
|
||||
}
|
||||
|
||||
if (directory == null)
|
||||
{
|
||||
throw new InvalidOperationException("Repository root was not found.");
|
||||
}
|
||||
|
||||
return Path.Combine(directory.FullName, relativePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+79
-34
@@ -1,24 +1,25 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=PresentationFramework">
|
||||
xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=PresentationFramework"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
<!-- Theme values are self-contained so repeated Wpf.Ui theme replacement cannot leave stale card/control brushes. -->
|
||||
<Color x:Key="ApplicationBackgroundColor">#FF111318</Color>
|
||||
<Color x:Key="SolidBackgroundFillColorBase">#FF0F1115</Color>
|
||||
<Color x:Key="CardBackgroundFillColorDefault">#FF1E2128</Color>
|
||||
<Color x:Key="CardBackgroundFillColorSecondary">#FF252933</Color>
|
||||
<Color x:Key="ControlFillColorDefault">#FF242832</Color>
|
||||
<Color x:Key="ControlFillColorSecondary">#FF2C313C</Color>
|
||||
<Color x:Key="ControlFillColorTertiary">#FF373D49</Color>
|
||||
<Color x:Key="ControlFillColorDisabled">#FF1B1F27</Color>
|
||||
<Color x:Key="ControlStrokeColorDefault">#FF3D4450</Color>
|
||||
<Color x:Key="ControlStrokeColorSecondary">#FF303743</Color>
|
||||
<Color x:Key="SurfaceStrokeColorDefault">#FF3D4450</Color>
|
||||
<Color x:Key="TextFillColorPrimary">#FFF4F7FB</Color>
|
||||
<Color x:Key="TextFillColorSecondary">#FFC1C8D3</Color>
|
||||
<Color x:Key="TextFillColorDisabled">#FF737B88</Color>
|
||||
<Color x:Key="SystemAccentColorPrimary">#FF5FA8FF</Color>
|
||||
<Color x:Key="SystemAccentColorSecondary">#FF3E84D8</Color>
|
||||
<Color x:Key="AccentFillColorDefault">#FF3E84D8</Color>
|
||||
<Color x:Key="ApplicationBackgroundColor">#FF202020</Color>
|
||||
<Color x:Key="SolidBackgroundFillColorBase">#FF202020</Color>
|
||||
<Color x:Key="CardBackgroundFillColorDefault">#FF2B2B2B</Color>
|
||||
<Color x:Key="CardBackgroundFillColorSecondary">#FF303030</Color>
|
||||
<Color x:Key="ControlFillColorDefault">#FF2B2B2B</Color>
|
||||
<Color x:Key="ControlFillColorSecondary">#FF333333</Color>
|
||||
<Color x:Key="ControlFillColorTertiary">#FF3A3A3A</Color>
|
||||
<Color x:Key="ControlFillColorDisabled">#FF282828</Color>
|
||||
<Color x:Key="ControlStrokeColorDefault">#FF3D3D3D</Color>
|
||||
<Color x:Key="ControlStrokeColorSecondary">#FF4A4A4A</Color>
|
||||
<Color x:Key="SurfaceStrokeColorDefault">#FF3D3D3D</Color>
|
||||
<Color x:Key="TextFillColorPrimary">#FFF3F3F3</Color>
|
||||
<Color x:Key="TextFillColorSecondary">#FFCFCFCF</Color>
|
||||
<Color x:Key="TextFillColorDisabled">#FF7A7A7A</Color>
|
||||
<Color x:Key="SystemAccentColorPrimary">#FF60CDFF</Color>
|
||||
<Color x:Key="SystemAccentColorSecondary">#FF4CC2FF</Color>
|
||||
<Color x:Key="AccentFillColorDefault">#FF0078D4</Color>
|
||||
<Color x:Key="TextOnAccentFillColorPrimary">#FFFFFFFF</Color>
|
||||
|
||||
<SolidColorBrush x:Key="ApplicationBackgroundBrush" Color="{StaticResource ApplicationBackgroundColor}"/>
|
||||
@@ -58,23 +59,37 @@
|
||||
<SolidColorBrush x:Key="InputBorderBrush" Color="{StaticResource ControlStrokeColorDefault}"/>
|
||||
<SolidColorBrush x:Key="InputHoverBorderBrush" Color="{StaticResource ControlStrokeColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="InputDisabledBackgroundBrush" Color="{StaticResource ControlFillColorDisabled}"/>
|
||||
|
||||
<CornerRadius x:Key="StandardCardCornerRadius">8</CornerRadius>
|
||||
<Thickness x:Key="StandardCardPadding">16</Thickness>
|
||||
<Thickness x:Key="CompactCardPadding">12</Thickness>
|
||||
<sys:Double x:Key="PageTitleFontSize">24</sys:Double>
|
||||
<sys:Double x:Key="PageSubtitleFontSize">14</sys:Double>
|
||||
<sys:Double x:Key="SectionTitleFontSize">16</sys:Double>
|
||||
<sys:Double x:Key="CaptionFontSize">12</sys:Double>
|
||||
|
||||
<SolidColorBrush x:Key="CardSurfaceBrush" Color="{StaticResource CardBackgroundFillColorDefault}"/>
|
||||
<SolidColorBrush x:Key="QuietRowBackgroundBrush" Color="{StaticResource ControlFillColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="QuietRowHoverBackgroundBrush" Color="{StaticResource ControlFillColorTertiary}"/>
|
||||
<SolidColorBrush x:Key="StatusPillBackgroundBrush" Color="{StaticResource ControlFillColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="StatusPillBorderBrush" Color="{StaticResource ControlStrokeColorDefault}"/>
|
||||
|
||||
<!-- State Colors (system-derived, soft contrast) -->
|
||||
<SolidColorBrush x:Key="InfoBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.14"/>
|
||||
<SolidColorBrush x:Key="InfoBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.28"/>
|
||||
<SolidColorBrush x:Key="InfoTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="InfoBackgroundBrush" Color="#FF243241"/>
|
||||
<SolidColorBrush x:Key="InfoBorderBrush" Color="#FF36516B"/>
|
||||
<SolidColorBrush x:Key="InfoTextBrush" Color="#FF8ACDFF"/>
|
||||
|
||||
<SolidColorBrush x:Key="SuccessBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.12"/>
|
||||
<SolidColorBrush x:Key="SuccessBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.26"/>
|
||||
<SolidColorBrush x:Key="SuccessTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="SuccessBackgroundBrush" Color="#FF26372A"/>
|
||||
<SolidColorBrush x:Key="SuccessBorderBrush" Color="#FF34543B"/>
|
||||
<SolidColorBrush x:Key="SuccessTextBrush" Color="#FF6CCB7F"/>
|
||||
|
||||
<SolidColorBrush x:Key="WarningBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.12"/>
|
||||
<SolidColorBrush x:Key="WarningBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.26"/>
|
||||
<SolidColorBrush x:Key="WarningTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="WarningBackgroundBrush" Color="#FF3A3120"/>
|
||||
<SolidColorBrush x:Key="WarningBorderBrush" Color="#FF5A4A24"/>
|
||||
<SolidColorBrush x:Key="WarningTextBrush" Color="#FFFFD66B"/>
|
||||
|
||||
<SolidColorBrush x:Key="ErrorBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.12"/>
|
||||
<SolidColorBrush x:Key="ErrorBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.26"/>
|
||||
<SolidColorBrush x:Key="ErrorTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="ErrorBackgroundBrush" Color="#FF3B2426"/>
|
||||
<SolidColorBrush x:Key="ErrorBorderBrush" Color="#FF623236"/>
|
||||
<SolidColorBrush x:Key="ErrorTextBrush" Color="#FFFF8A8A"/>
|
||||
|
||||
<SolidColorBrush x:Key="SoftSelectionBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.16"/>
|
||||
<SolidColorBrush x:Key="SoftSelectionBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.30"/>
|
||||
@@ -116,19 +131,27 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="StandardCardStyle" TargetType="Border">
|
||||
<Setter Property="Background" Value="{DynamicResource CardSurfaceBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderSubtleBrush}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource StandardCardCornerRadius}"/>
|
||||
<Setter Property="Padding" Value="{DynamicResource StandardCardPadding}"/>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="GroupBox">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
<Setter Property="Background" Value="{DynamicResource SurfaceBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
|
||||
<Setter Property="Background" Value="{DynamicResource CardSurfaceBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderSubtleBrush}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="Padding" Value="6"/>
|
||||
<Setter Property="Padding" Value="{DynamicResource CompactCardPadding}"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="GroupBox">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="10"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="{TemplateBinding Padding}">
|
||||
<DockPanel LastChildFill="True">
|
||||
<ContentPresenter ContentSource="Header"
|
||||
@@ -149,6 +172,28 @@
|
||||
<!-- Removed native implicit styles (TabControl, ComboBox, etc) to allow Wpf.Ui to style them fully -->
|
||||
|
||||
<!-- Preserved explicit font settings -->
|
||||
<Style x:Key="PageTitleTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource PageTitleFontSize}"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="PageSubtitleTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource PageSubtitleFontSize}"/>
|
||||
<Setter Property="FontWeight" Value="Normal"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
|
||||
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SectionTitleTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource SectionTitleFontSize}"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
|
||||
+77
-32
@@ -1,24 +1,25 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=PresentationFramework">
|
||||
xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=PresentationFramework"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
<!-- Theme values are self-contained so repeated Wpf.Ui theme replacement cannot leave stale card/control brushes. -->
|
||||
<Color x:Key="ApplicationBackgroundColor">#FFF3F4F6</Color>
|
||||
<Color x:Key="ApplicationBackgroundColor">#FFF3F3F3</Color>
|
||||
<Color x:Key="SolidBackgroundFillColorBase">#FFFFFFFF</Color>
|
||||
<Color x:Key="CardBackgroundFillColorDefault">#FFFFFFFF</Color>
|
||||
<Color x:Key="CardBackgroundFillColorSecondary">#FFF8F9FB</Color>
|
||||
<Color x:Key="CardBackgroundFillColorSecondary">#FFFAFAFA</Color>
|
||||
<Color x:Key="ControlFillColorDefault">#FFFFFFFF</Color>
|
||||
<Color x:Key="ControlFillColorSecondary">#FFF1F3F6</Color>
|
||||
<Color x:Key="ControlFillColorTertiary">#FFE8EBF0</Color>
|
||||
<Color x:Key="ControlFillColorDisabled">#FFEDEFF3</Color>
|
||||
<Color x:Key="ControlStrokeColorDefault">#FFD2D8E2</Color>
|
||||
<Color x:Key="ControlStrokeColorSecondary">#FFE4E8EF</Color>
|
||||
<Color x:Key="SurfaceStrokeColorDefault">#FFD2D8E2</Color>
|
||||
<Color x:Key="TextFillColorPrimary">#FF171A21</Color>
|
||||
<Color x:Key="TextFillColorSecondary">#FF5B6472</Color>
|
||||
<Color x:Key="TextFillColorDisabled">#FF9AA2AE</Color>
|
||||
<Color x:Key="SystemAccentColorPrimary">#FF2563EB</Color>
|
||||
<Color x:Key="SystemAccentColorSecondary">#FF1D4ED8</Color>
|
||||
<Color x:Key="AccentFillColorDefault">#FF2563EB</Color>
|
||||
<Color x:Key="ControlFillColorSecondary">#FFF6F6F6</Color>
|
||||
<Color x:Key="ControlFillColorTertiary">#FFEFEFEF</Color>
|
||||
<Color x:Key="ControlFillColorDisabled">#FFF2F2F2</Color>
|
||||
<Color x:Key="ControlStrokeColorDefault">#FFE5E5E5</Color>
|
||||
<Color x:Key="ControlStrokeColorSecondary">#FFDADADA</Color>
|
||||
<Color x:Key="SurfaceStrokeColorDefault">#FFE5E5E5</Color>
|
||||
<Color x:Key="TextFillColorPrimary">#FF1A1A1A</Color>
|
||||
<Color x:Key="TextFillColorSecondary">#FF5F5F5F</Color>
|
||||
<Color x:Key="TextFillColorDisabled">#FF9A9A9A</Color>
|
||||
<Color x:Key="SystemAccentColorPrimary">#FF0067C0</Color>
|
||||
<Color x:Key="SystemAccentColorSecondary">#FF005A9E</Color>
|
||||
<Color x:Key="AccentFillColorDefault">#FF0067C0</Color>
|
||||
<Color x:Key="TextOnAccentFillColorPrimary">#FFFFFFFF</Color>
|
||||
|
||||
<SolidColorBrush x:Key="ApplicationBackgroundBrush" Color="{StaticResource ApplicationBackgroundColor}"/>
|
||||
@@ -51,30 +52,44 @@
|
||||
|
||||
<SolidColorBrush x:Key="BorderBrush" Color="{StaticResource ControlStrokeColorDefault}"/>
|
||||
<SolidColorBrush x:Key="BorderSubtleBrush" Color="{StaticResource ControlStrokeColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="OverlayBrush" Color="#6618181B"/>
|
||||
<SolidColorBrush x:Key="OverlayBrush" Color="#66000000"/>
|
||||
<SolidColorBrush x:Key="SpinnerTrackBrush" Color="{StaticResource ControlStrokeColorDefault}"/>
|
||||
|
||||
<SolidColorBrush x:Key="InputBackgroundBrush" Color="{StaticResource ControlFillColorDefault}"/>
|
||||
<SolidColorBrush x:Key="InputBorderBrush" Color="{StaticResource ControlStrokeColorDefault}"/>
|
||||
<SolidColorBrush x:Key="InputHoverBorderBrush" Color="{StaticResource ControlStrokeColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="InputDisabledBackgroundBrush" Color="{StaticResource ControlFillColorDisabled}"/>
|
||||
|
||||
<CornerRadius x:Key="StandardCardCornerRadius">8</CornerRadius>
|
||||
<Thickness x:Key="StandardCardPadding">16</Thickness>
|
||||
<Thickness x:Key="CompactCardPadding">12</Thickness>
|
||||
<sys:Double x:Key="PageTitleFontSize">24</sys:Double>
|
||||
<sys:Double x:Key="PageSubtitleFontSize">14</sys:Double>
|
||||
<sys:Double x:Key="SectionTitleFontSize">16</sys:Double>
|
||||
<sys:Double x:Key="CaptionFontSize">12</sys:Double>
|
||||
|
||||
<SolidColorBrush x:Key="CardSurfaceBrush" Color="{StaticResource CardBackgroundFillColorDefault}"/>
|
||||
<SolidColorBrush x:Key="QuietRowBackgroundBrush" Color="{StaticResource ControlFillColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="QuietRowHoverBackgroundBrush" Color="{StaticResource ControlFillColorTertiary}"/>
|
||||
<SolidColorBrush x:Key="StatusPillBackgroundBrush" Color="{StaticResource ControlFillColorSecondary}"/>
|
||||
<SolidColorBrush x:Key="StatusPillBorderBrush" Color="{StaticResource ControlStrokeColorDefault}"/>
|
||||
|
||||
<!-- State Colors (system-derived, soft contrast) -->
|
||||
<SolidColorBrush x:Key="InfoBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.12"/>
|
||||
<SolidColorBrush x:Key="InfoBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.24"/>
|
||||
<SolidColorBrush x:Key="InfoTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="InfoBackgroundBrush" Color="#FFEFF6FC"/>
|
||||
<SolidColorBrush x:Key="InfoBorderBrush" Color="#FFCFE4F7"/>
|
||||
<SolidColorBrush x:Key="InfoTextBrush" Color="#FF005A9E"/>
|
||||
|
||||
<SolidColorBrush x:Key="SuccessBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.10"/>
|
||||
<SolidColorBrush x:Key="SuccessBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.22"/>
|
||||
<SolidColorBrush x:Key="SuccessTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="SuccessBackgroundBrush" Color="#FFEAF6ED"/>
|
||||
<SolidColorBrush x:Key="SuccessBorderBrush" Color="#FFC8E6D0"/>
|
||||
<SolidColorBrush x:Key="SuccessTextBrush" Color="#FF0F6C2F"/>
|
||||
|
||||
<SolidColorBrush x:Key="WarningBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.10"/>
|
||||
<SolidColorBrush x:Key="WarningBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.22"/>
|
||||
<SolidColorBrush x:Key="WarningTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="WarningBackgroundBrush" Color="#FFFFF4CE"/>
|
||||
<SolidColorBrush x:Key="WarningBorderBrush" Color="#FFE5C365"/>
|
||||
<SolidColorBrush x:Key="WarningTextBrush" Color="#FF7A4F00"/>
|
||||
|
||||
<SolidColorBrush x:Key="ErrorBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.10"/>
|
||||
<SolidColorBrush x:Key="ErrorBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.22"/>
|
||||
<SolidColorBrush x:Key="ErrorTextBrush" Color="{StaticResource TextFillColorPrimary}"/>
|
||||
<SolidColorBrush x:Key="ErrorBackgroundBrush" Color="#FFFDE7E9"/>
|
||||
<SolidColorBrush x:Key="ErrorBorderBrush" Color="#FFF3B7BE"/>
|
||||
<SolidColorBrush x:Key="ErrorTextBrush" Color="#FFC42B1C"/>
|
||||
|
||||
<SolidColorBrush x:Key="SoftSelectionBackgroundBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.12"/>
|
||||
<SolidColorBrush x:Key="SoftSelectionBorderBrush" Color="{StaticResource SystemAccentColorPrimary}" Opacity="0.24"/>
|
||||
@@ -116,19 +131,27 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="StandardCardStyle" TargetType="Border">
|
||||
<Setter Property="Background" Value="{DynamicResource CardSurfaceBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderSubtleBrush}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource StandardCardCornerRadius}"/>
|
||||
<Setter Property="Padding" Value="{DynamicResource StandardCardPadding}"/>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="GroupBox">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
<Setter Property="Background" Value="{DynamicResource SurfaceBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
|
||||
<Setter Property="Background" Value="{DynamicResource CardSurfaceBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderSubtleBrush}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="Padding" Value="6"/>
|
||||
<Setter Property="Padding" Value="{DynamicResource CompactCardPadding}"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="GroupBox">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="10"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="{TemplateBinding Padding}">
|
||||
<DockPanel LastChildFill="True">
|
||||
<ContentPresenter ContentSource="Header"
|
||||
@@ -148,6 +171,28 @@
|
||||
<!-- Preserved custom layouts/templates untouched -->
|
||||
<!-- Removed native implicit styles to allow Wpf.Ui to style them fully -->
|
||||
|
||||
<Style x:Key="PageTitleTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource PageTitleFontSize}"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="PageSubtitleTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource PageSubtitleFontSize}"/>
|
||||
<Setter Property="FontWeight" Value="Normal"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
|
||||
<Setter Property="TextWrapping" Value="Wrap"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SectionTitleTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="FontSize" Value="{DynamicResource SectionTitleFontSize}"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
||||
|
||||
@@ -26,17 +26,17 @@
|
||||
Background="{DynamicResource OverlayBrush}"
|
||||
Panel.ZIndex="10"
|
||||
AutomationProperties.Name="Unsaved settings dialog">
|
||||
<Border Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
||||
BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}"
|
||||
<Border Background="{DynamicResource CardSurfaceBrush}"
|
||||
BorderBrush="{DynamicResource BorderSubtleBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"
|
||||
Padding="26"
|
||||
CornerRadius="{DynamicResource StandardCardCornerRadius}"
|
||||
Padding="24"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
MinWidth="420"
|
||||
MaxWidth="560">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="18" ShadowDepth="0" Opacity="0.35"/>
|
||||
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Opacity="0.18"/>
|
||||
</Border.Effect>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Unsaved Settings"
|
||||
|
||||
Reference in New Issue
Block a user