feat: use Classes instead of Themes.
This commit is contained in:
@@ -59,31 +59,23 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
|
||||
<Style Selector="^.FlatSquare">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="^.Plastic">
|
||||
<Setter Property="Padding" Value="4 0" />
|
||||
<Setter Property="HeaderBackground" Value="{DynamicResource DualBadgePlasticHeaderBackground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource DualBadgePlasticBackground}" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="^.ForTheBadge">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="Padding" Value="10 6" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="^:header-empty">
|
||||
<Setter Property="HeaderBackground" Value="{Binding Background, RelativeSource={RelativeSource Self}}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="FlatSquare"
|
||||
BasedOn="{StaticResource {x:Type u:DualBadge}}"
|
||||
TargetType="u:DualBadge">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme
|
||||
x:Key="Plastic"
|
||||
BasedOn="{StaticResource {x:Type u:DualBadge}}"
|
||||
TargetType="u:DualBadge">
|
||||
<Setter Property="Background">
|
||||
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
<ControlTheme
|
||||
x:Key="ForTheBadge"
|
||||
BasedOn="{StaticResource {x:Type u:DualBadge}}"
|
||||
TargetType="u:DualBadge">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="Padding" Value="6 6" />
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
@@ -1,13 +1,21 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultIconForeground">White</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultHeaderForeground">White</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultForeground">White</SolidColorBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgeDefaultHeaderBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF555B61" Offset="0" />
|
||||
<GradientStop Color="#FF41464C" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultForeground">White</SolidColorBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgeDefaultBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF5AC262" Offset="0" />
|
||||
<GradientStop Color="#FF3BB346" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgePlasticHeaderBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF555B61" Offset="0" />
|
||||
<GradientStop Color="#FF2E3238" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgePlasticBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF5AC262" Offset="0" />
|
||||
<GradientStop Color="#FF30953B" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</ResourceDictionary>
|
||||
@@ -1,14 +1,21 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultIconForeground">White</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultHeaderForeground">White</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultForeground">White</SolidColorBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgeDefaultHeaderBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF555B61" Offset="0" />
|
||||
<GradientStop Color="#FF41464C" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="DualBadgeDefaultForeground">White</SolidColorBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgeDefaultBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF5AC262" Offset="0" />
|
||||
<GradientStop Color="#FF3BB346" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="DualBadgePlasticHeaderBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF555B61" Offset="0" />
|
||||
<GradientStop Color="#FF2E3238" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
<LinearGradientBrush x:Key="DualBadgePlasticBackground" StartPoint="0%,0%" EndPoint="0%,100%">
|
||||
<GradientStop Color="#FF5AC262" Offset="0" />
|
||||
<GradientStop Color="#FF30953B" Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user