123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="BaseStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <!-- 基样式 -->
- <Style
- x:Key="LabelBaseStyle"
- BasedOn="{StaticResource BaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Padding" Value="0" />
- </Style>
- <!-- 默认样式 -->
- <Style BasedOn="{StaticResource LabelBaseStyle}" TargetType="{x:Type Label}" />
- <!-- 标题 源码行数:990-1104 -->
- <!-- 标题 -->
- <!-- 基样式 -->
- <Style
- x:Key="HBaseStyle"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontWeight" Value="{DynamicResource HFontWeight}" />
- <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
- <Setter Property="Margin" Value="{DynamicResource HMargin}" />
- </Style>
- <Style
- x:Key="h1"
- BasedOn="{StaticResource HBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H1FontSize}" />
- </Style>
- <Style
- x:Key="h2"
- BasedOn="{StaticResource HBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H2FontSize}" />
- </Style>
- <Style
- x:Key="h3"
- BasedOn="{StaticResource HBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H3FontSize}" />
- </Style>
- <Style
- x:Key="h4"
- BasedOn="{StaticResource HBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H4FontSize}" />
- </Style>
- <Style
- x:Key="h5"
- BasedOn="{StaticResource HBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H5FontSize}" />
- </Style>
- <Style
- x:Key="h6"
- BasedOn="{StaticResource HBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H6FontSize}" />
- </Style>
- <!-- 副标题 -->
- <!-- 基样式 -->
- <Style
- x:Key="SmallBaseStyle"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontWeight" Value="{DynamicResource SmallFontWeight}" />
- <Setter Property="Foreground" Value="{DynamicResource SmallForeground}" />
- <Setter Property="Margin" Value="{DynamicResource SmallMargin}" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- </Style>
- <Style
- x:Key="h1 small"
- BasedOn="{StaticResource SmallBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H1SmallFontSize}" />
- </Style>
- <Style
- x:Key="h2 small"
- BasedOn="{StaticResource SmallBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H2SmallFontSize}" />
- </Style>
- <Style
- x:Key="h3 small"
- BasedOn="{StaticResource SmallBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H3SmallFontSize}" />
- </Style>
- <Style
- x:Key="h4 small"
- BasedOn="{StaticResource SmallBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H4SmallFontSize}" />
- </Style>
- <Style
- x:Key="h5 small"
- BasedOn="{StaticResource SmallBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H5SmallFontSize}" />
- </Style>
- <Style
- x:Key="h6 small"
- BasedOn="{StaticResource SmallBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="FontSize" Value="{DynamicResource H6SmallFontSize}" />
- </Style>
- <!-- 语境 源码行数:1128-1215 -->
- <!-- 前景 -->
- <Style
- x:Key="text-muted"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Muted}" />
- </Style>
- <Style
- x:Key="text-primary"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Primary2}" />
- </Style>
- <Style
- x:Key="text-success"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Success}" />
- </Style>
- <Style
- x:Key="text-info"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Info}" />
- </Style>
- <Style
- x:Key="text-warning"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Warning}" />
- </Style>
- <Style
- x:Key="text-danger"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Danger}" />
- </Style>
- <!-- 背景 -->
- <Style
- x:Key="text bg-primary"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource Foreground-Primary1}" />
- <Setter Property="Background" Value="{DynamicResource Background-Primary2}" />
- </Style>
- <Style
- x:Key="text bg-success"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Background" Value="{DynamicResource Background-Success2}" />
- </Style>
- <Style
- x:Key="text bg-info"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Background" Value="{DynamicResource Background-Info2}" />
- </Style>
- <Style
- x:Key="text bg-warning"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Background" Value="{DynamicResource Background-Warning2}" />
- </Style>
- <Style
- x:Key="text bg-danger"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Background" Value="{DynamicResource Background-Danger2}" />
- </Style>
- <!-- code 源码行数:1336-1389 -->
- <!-- Label -->
- <Style
- x:Key="CodeBaseStyle"
- BasedOn="{x:Null}"
- TargetType="{x:Type Label}">
- <Setter Property="FontFamily" Value="Menlo, Monaco, Consolas,Courier New, monospace" />
- <Setter Property="FontSize" Value="{DynamicResource CodeFontSize}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Margin" Value="0" />
- <Setter Property="Padding" Value="{DynamicResource CodePadding}" />
- </Style>
- <!-- 代码 -->
- <Style
- x:Key="code"
- BasedOn="{StaticResource CodeBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="#c7254e" />
- <Setter Property="Background" Value="#f9f2f4" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Label}">
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"
- SnapsToDevicePixels="True">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 键盘 -->
- <Style
- x:Key="kbd"
- BasedOn="{StaticResource CodeBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="#fff" />
- <Setter Property="Background" Value="#333" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Label}">
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="3"
- SnapsToDevicePixels="True">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 代码块 -->
- <Style
- x:Key="pre"
- BasedOn="{StaticResource CodeBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="#333" />
- <Setter Property="Background" Value="#f5f5f5" />
- <Setter Property="BorderBrush" Value="#ccc" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Margin" Value="0,0,0,10" />
- <Setter Property="Padding" Value="9.5" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Label}">
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"
- SnapsToDevicePixels="True">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 辅助文本 源码行数:2690-2695 -->
- <Style
- x:Key="help-block"
- BasedOn="{StaticResource LabelBaseStyle}"
- TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="#737373" />
- </Style>
- </ResourceDictionary>
|