80 lines
3.9 KiB
XML
80 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:helpers="using:FluidExplorer.Helpers">
|
|
|
|
<!--
|
|
设计原则(克制):
|
|
1. 颜色全部使用 WinUI 内置主题资源,深浅色/强调色自动跟随系统,不写死任何色值。
|
|
2. 布局尺寸对齐资源管理器:工具栏 48、地址栏 40、详情行 30、状态栏 26。
|
|
3. 动画只保留 WinUI 控件自带的那一套(悬停/选中/展开/对话框),不额外叠加。
|
|
-->
|
|
|
|
<helpers:BoolToVisibilityConverter x:Key="BoolToVisibility" />
|
|
<helpers:StringToVisibilityConverter x:Key="StringToVisibility" />
|
|
<helpers:CountToVisibilityConverter x:Key="CountToVisibility" />
|
|
<helpers:InverseBoolConverter x:Key="InverseBool" />
|
|
<helpers:KindToVisibilityConverter x:Key="KindToVisibility" />
|
|
<helpers:JobStateTextConverter x:Key="JobStateText" />
|
|
<helpers:JobProgressTextConverter x:Key="JobProgressText" />
|
|
<helpers:JobPauseGlyphConverter x:Key="JobPauseGlyph" />
|
|
|
|
<x:Double x:Key="ToolbarHeight">48</x:Double>
|
|
<x:Double x:Key="AddressBarHeight">40</x:Double>
|
|
<x:Double x:Key="DetailRowHeight">30</x:Double>
|
|
<x:Double x:Key="StatusBarHeight">26</x:Double>
|
|
|
|
<!-- 工具栏按钮:资源管理器同款 32×32、4px 圆角、悬停用系统浅色填充 -->
|
|
<Style x:Key="ToolbarButtonStyle" TargetType="Button" BasedOn="{StaticResource DefaultButtonStyle}">
|
|
<Setter Property="Width" Value="32" />
|
|
<Setter Property="Height" Value="32" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
<Style x:Key="ToolbarToggleStyle" TargetType="ToggleButton" BasedOn="{StaticResource DefaultToggleButtonStyle}">
|
|
<Setter Property="Width" Value="32" />
|
|
<Setter Property="Height" Value="32" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
<!-- 图标字体:Segoe Fluent Icons = Windows 11 系统自带图标字体 -->
|
|
<Style x:Key="GlyphIconStyle" TargetType="FontIcon">
|
|
<Setter Property="FontFamily" Value="{StaticResource SymbolThemeFontFamily}" />
|
|
<Setter Property="FontSize" Value="16" />
|
|
</Style>
|
|
|
|
<Style x:Key="StatusBarTextStyle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Foreground" Value="{ThemeResource TextFillColorSecondaryBrush}" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
|
|
<Style x:Key="PaneHintTextStyle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Foreground" Value="{ThemeResource TextFillColorTertiaryBrush}" />
|
|
<Setter Property="TextWrapping" Value="Wrap" />
|
|
</Style>
|
|
|
|
<!-- 详情视图列头 -->
|
|
<Style x:Key="ColumnHeaderButtonStyle" TargetType="Button" BasedOn="{StaticResource DefaultButtonStyle}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Padding" Value="8,0" />
|
|
<Setter Property="Height" Value="28" />
|
|
<Setter Property="CornerRadius" Value="4" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Foreground" Value="{ThemeResource TextFillColorSecondaryBrush}" />
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|