This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -2,13 +2,16 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFluent.Controls">
<!--<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/WPFluent;component/Themes/Dark.xaml"/>
</ResourceDictionary.MergedDictionaries>-->
<Style x:Key="DefaultFluentWindowExStyle" TargetType="{x:Type controls:FluentWindowEx}">
<Setter Property="Background" Value="{DynamicResource WindowBackground}" />
<Setter Property="Background" Value="{DynamicResource ApplicationBackgroundColorBrush}" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="Foreground" Value="{DynamicResource WindowForeground}" />
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
<Setter Property="Height" Value="600" />
<Setter Property="Margin" Value="0" />
<Setter Property="MinHeight" Value="320" />
@@ -26,7 +29,7 @@
Icon="{Binding Icon,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}"
Title="{Binding Title,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:FluentWindowEx}}" />
<AdornerDecorator>
<controls:ClientAreaBorder Background="{DynamicResource WindowBackground}" BorderBrush="Transparent">
<controls:ClientAreaBorder Background="{DynamicResource ApplicationBackgroundColorBrush}" BorderBrush="Transparent">
<ContentPresenter x:Name="ContentPresenter" TextElement.Foreground="{TemplateBinding Foreground}" />
</controls:ClientAreaBorder>
</AdornerDecorator>
@@ -36,5 +39,5 @@
</Setter>
<Setter Property="UseLayoutRounding" Value="True" />
</Style>
<Style BasedOn="{StaticResource DefaultFluentWindowExStyle}" TargetType="{x:Type controls:FluentWindowEx}" />
<Style TargetType="{x:Type controls:FluentWindowEx}" BasedOn="{StaticResource DefaultFluentWindowExStyle}"/>
</ResourceDictionary>