128 lines
8.9 KiB
XML
128 lines
8.9 KiB
XML
<Application x:Class="JiangsuEarthquake.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:JiangsuEarthquake"
|
|
StartupUri="MainWindow.xaml">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml" />
|
|
<!--<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />-->
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.DatePicker.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TimePicker.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.RadioButton.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ListBox.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.DataGrid.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Blue.xaml" />
|
|
<!--<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.LightBlue.xaml" />-->
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDark.xaml"/>
|
|
<!--<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDark.xaml"/>-->
|
|
<!--<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/BaseDark.xaml"/>-->
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
|
|
<!--<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>-->
|
|
|
|
<ResourceDictionary Source="/JiangsuEarthquake;component/ImageDictionary.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
|
|
<!--字体-->
|
|
<FontFamily x:Key="DigitalDisplay">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/#方正楷体简体</FontFamily>
|
|
<FontFamily x:Key="Iconfont">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/#iconfont</FontFamily>
|
|
<FontFamily x:Key="Alimamashuheiti">
|
|
/JiangsuEarthquake;component/Assets/Fonts/alimamashuheiti.ttf#阿里妈妈数黑体 Bold</FontFamily>
|
|
<FontFamily x:Key="SourceHanSansCNBold">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/SourceHanSansCN-Bold.ttf#思源黑体 CN Bold</FontFamily>
|
|
<FontFamily x:Key="SourceHanSansCNMedium">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/SourceHanSansCN-Medium.ttf#思源黑体 CN Medium</FontFamily>
|
|
<FontFamily x:Key="SourceHanSansCNRegular">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/SourceHanSansCN-Regular.ttf#思源黑体 CN</FontFamily>
|
|
<FontFamily x:Key="SourceHanSansCNLight">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/SourceHanSansCN-Light.ttf#思源黑体 CN Light</FontFamily>
|
|
<FontFamily x:Key="SourceHanSansCNNormal">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/SourceHanSansCN-Normal.ttf#思源黑体 CN Normal</FontFamily>
|
|
<FontFamily x:Key="DSDigitalBold">
|
|
pack://application:,,,/JiangsuEarthquake;component/Assets/Fonts/DS-DIGIB.TTF#DS-Digital Bold</FontFamily>
|
|
|
|
<!--控制按钮样式-->
|
|
<Style x:Key="ControlButtonStyle" TargetType="Button">
|
|
<Setter Property="Width" Value="40"/>
|
|
<Setter Property="Background" Value="#11FFFFFF"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontFamily" Value="{StaticResource DigitalDisplay}"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Grid Background="{TemplateBinding Background}">
|
|
<Border Name="root">
|
|
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="root" Property="Background" Value="#33FFFFFF"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--基础按钮样式-->
|
|
<Style x:Key="ButtonStyle" TargetType="Button">
|
|
<Style.Triggers>
|
|
<!--设置鼠标经过时的背景色变化-->
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Grid>
|
|
<Border x:Name="border" CornerRadius="8"/>
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
Margin="{TemplateBinding Padding}" RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#FF32658F" TargetName="border"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<!--设置按钮被禁用时的背景色变化-->
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Grid>
|
|
<Border x:Name="border" CornerRadius="8" BorderThickness="1" BorderBrush="White"/>
|
|
<ContentPresenter x:Name="contentPresenter" Focusable="False"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
Margin="{TemplateBinding Padding}" RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Background" Value="Transparent" TargetName="border"/>
|
|
<Setter Property="Opacity" Value="0.4"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|