You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
6.3 KiB
111 lines
6.3 KiB
3 years ago
|
<prism:PrismApplication x:Class="ECMonitor.App"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
|
xmlns:prism="http://prismlibrary.com/"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
<Application.Resources>
|
||
|
<ResourceDictionary>
|
||
|
<ResourceDictionary.MergedDictionaries>
|
||
|
<!-- This is the current way to setup your app's initial theme -->
|
||
|
<materialDesign:BundledTheme BaseTheme="Dark" PrimaryColor="Blue" SecondaryColor="Lime"
|
||
|
ColorAdjustment="{materialDesign:ColorAdjustment}" />
|
||
|
|
||
|
<!-- If you would prefer to use your own colors there is an option for that as well -->
|
||
|
<!--<materialDesign:CustomColorTheme BaseTheme="Light" PrimaryColor="Aqua" SecondaryColor="DarkGreen" />-->
|
||
|
|
||
|
<!-- You can also use the built in theme dictionaries as well
|
||
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
|
||
|
-->
|
||
|
|
||
|
<!-- Material Design,整体界面颜色 -->
|
||
|
<!--<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.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:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml" />
|
||
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
|
||
|
</ResourceDictionary.MergedDictionaries>
|
||
|
<!--PRIMARY-->
|
||
|
<SolidColorBrush x:Key="PrimaryBodyBrush" Color="#44494f" />
|
||
|
<SolidColorBrush x:Key="PrimaryBarBrush" Color="#40444d" />
|
||
|
<SolidColorBrush x:Key="PrimaryBackGroupBrush" Color="#40444d" />
|
||
|
<SolidColorBrush x:Key="PrimaryButtonBrush" Color="#4c8bb7" />
|
||
|
<SolidColorBrush x:Key="PrimaryFontBrush" Color="#FFFFFF" />
|
||
|
<SolidColorBrush x:Key="PrimaryBorderBrush" Color="Aqua" />
|
||
|
<Color x:Key="PageBodyColor">#44494f</Color>
|
||
|
<Color x:Key="PageBgColor">#40444d</Color>
|
||
|
<Color x:Key="PageBorderColor">#32363f</Color>
|
||
|
<SolidColorBrush x:Key="PageBodyBrush" Color="#44494f" />
|
||
|
<SolidColorBrush x:Key="PageBgBrush" Color="#40444d" />
|
||
|
<SolidColorBrush x:Key="PageBorderBrush" Color="#32363f" />
|
||
|
<Style x:Key="ECButtonStyle">
|
||
|
<Setter Property="Control.Margin" Value="0,0,10,0" />
|
||
|
<Setter Property="Control.Padding" Value="10,0,10,0" />
|
||
|
<Setter Property="Control.FontFamily" Value="微软雅黑" />
|
||
|
<Setter Property="Control.FontSize" Value="18" />
|
||
|
<Setter Property="Control.Width" Value="20" />
|
||
|
<Setter Property="Control.Height" Value="20" />
|
||
|
<Setter Property="Control.Background" Value="#4c8bb7" />
|
||
|
<Setter Property="Control.FontWeight" Value="Bold" />
|
||
|
<Setter Property="Control.BorderBrush" Value="Transparent" />
|
||
|
</Style>
|
||
|
<Style x:Key="ECChecketStyle">
|
||
|
<Setter Property="Control.Margin" Value="0,0,10,0" />
|
||
|
<Setter Property="Control.FontFamily" Value="微软雅黑" />
|
||
|
<Setter Property="Control.FontSize" Value="18" />
|
||
|
<Setter Property="Control.Foreground" Value="#FFFFFF" />
|
||
|
<Setter Property="Control.Padding" Value="5,15,5,5" />
|
||
|
</Style>
|
||
|
<Style x:Key="TopRightButtonStyle">
|
||
|
<Setter Property="Control.Margin" Value="5,0,10,0" />
|
||
|
<Setter Property="Control.FontFamily" Value="微软雅黑" />
|
||
|
<Setter Property="Control.FontSize" Value="18" />
|
||
|
<Setter Property="Control.Width" Value="20" />
|
||
|
<Setter Property="Control.Height" Value="20" />
|
||
|
<Setter Property="Control.Background" Value="Transparent" />
|
||
|
<Setter Property="Control.FontWeight" Value="Bold" />
|
||
|
<Setter Property="Control.BorderBrush" Value="Transparent" />
|
||
|
</Style>
|
||
|
<Style x:Key="TopButtonStyle">
|
||
|
<Setter Property="Control.Margin" Value="5,0,10,0" />
|
||
|
<Setter Property="Control.FontFamily" Value="微软雅黑" />
|
||
|
<Setter Property="Control.FontSize" Value="22" />
|
||
|
<Setter Property="Control.Width" Value="30" />
|
||
|
<Setter Property="Control.Height" Value="30" />
|
||
|
<Setter Property="Control.Background" Value="Transparent" />
|
||
|
<Setter Property="Control.FontWeight" Value="Bold" />
|
||
|
<Setter Property="Control.BorderBrush" Value="Transparent" />
|
||
|
</Style>
|
||
|
<Style x:Key="BottomRightButtonStyle">
|
||
|
<Setter Property="Control.Margin" Value="10,0,0,0" />
|
||
|
<Setter Property="Control.FontFamily" Value="微软雅黑" />
|
||
|
<Setter Property="Control.FontSize" Value="18" />
|
||
|
<Setter Property="Control.Width" Value="20" />
|
||
|
<Setter Property="Control.Height" Value="20" />
|
||
|
<Setter Property="Control.Background" Value="Transparent" />
|
||
|
<Setter Property="Control.FontWeight" Value="Bold" />
|
||
|
<Setter Property="Control.BorderBrush" Value="Transparent" />
|
||
|
</Style>
|
||
|
|
||
|
<Style x:Key="TopButtonImgStyle">
|
||
|
<Setter Property="Control.Width" Value="20" />
|
||
|
<Setter Property="Control.Height" Value="20" />
|
||
|
</Style>
|
||
|
<Style x:Key="ButtonImgStyle">
|
||
|
<Setter Property="Control.Width" Value="15" />
|
||
|
<Setter Property="Control.Height" Value="15" />
|
||
|
</Style>
|
||
|
<ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}">
|
||
|
<Border x:Name="Border" BorderThickness="0" CornerRadius="6" Margin="0,0,10,0" TextBlock.Foreground="White" Background="#4c8bb7">
|
||
|
<!--设置控件的边框,圆角,背景色,字体颜色-->
|
||
|
<ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
|
<!--显示控件的内容-->
|
||
|
</ContentPresenter>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
</ResourceDictionary>
|
||
|
</Application.Resources>
|
||
|
</prism:PrismApplication>
|