Repository navigation
Expand file tree
/
Copy pathApp.xaml
More file actions
52 lines (47 loc) · 2.92 KB
/
Copy pathApp.xaml
File metadata and controls
52 lines (47 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Application x:Class="tools.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:tools"
xmlns:hc="https://handyorg.github.io/handycontrol"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- HandyControl 主题 (Light) -->
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
<!-- 默认语言资源 (中文) - 会在运行时根据系统语言替换 -->
<ResourceDictionary Source="/Localization/Strings.zh-CN.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!-- 全局颜色资源 -->
<Color x:Key="PrimaryColor">#00D4FF</Color>
<Color x:Key="SecondaryColor">#7B2FFF</Color>
<Color x:Key="BackgroundColor">#202020</Color>
<Color x:Key="SurfaceColor">#2D2D2D</Color>
<Color x:Key="TextPrimaryColor">#FFFFFF</Color>
<Color x:Key="TextSecondaryColor">#AAFFFFFF</Color>
<!-- 全局画刷资源 -->
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource PrimaryColor}"/>
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource SecondaryColor}"/>
<SolidColorBrush x:Key="BackgroundBrush" Color="{StaticResource BackgroundColor}"/>
<SolidColorBrush x:Key="SurfaceBrush" Color="{StaticResource SurfaceColor}"/>
<SolidColorBrush x:Key="TextPrimaryBrush" Color="{StaticResource TextPrimaryColor}"/>
<SolidColorBrush x:Key="TextSecondaryBrush" Color="{StaticResource TextSecondaryColor}"/>
<!-- 渐变画刷 -->
<LinearGradientBrush x:Key="AccentGradientBrush" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="{StaticResource PrimaryColor}" Offset="0"/>
<GradientStop Color="{StaticResource SecondaryColor}" Offset="1"/>
</LinearGradientBrush>
<!-- 全局字体样式 -->
<Style x:Key="HeaderTextStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="24"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}"/>
</Style>
<Style x:Key="BodyTextStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="14"/>
<Setter Property="Foreground" Value="{StaticResource TextSecondaryBrush}"/>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>