chore: add avalonia Label demo.
This commit is contained in:
1 parent
528f3eaf95
commit
c78e8545b8
9 files changed
+164
-22
No files matched your search
@@ -57,6 +57,15 @@
|
||||
BasedOn="{StaticResource LabelDefault}"
|
||||
TargetType="Label" />
|
||||
|
||||
<ControlTheme x:Key="LabelDefault.Small"
|
||||
BasedOn="{StaticResource LabelDefault}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Height"
|
||||
Value="20" />
|
||||
<Setter Property="Padding"
|
||||
Value="6,0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelPrimary"
|
||||
BasedOn="{StaticResource LabelBaseStyle}"
|
||||
TargetType="Label">
|
||||
@@ -64,6 +73,15 @@
|
||||
Value="{DynamicResource PrimaryBrush}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelPrimary.Small"
|
||||
BasedOn="{StaticResource LabelPrimary}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Height"
|
||||
Value="20" />
|
||||
<Setter Property="Padding"
|
||||
Value="6,0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelSuccess"
|
||||
BasedOn="{StaticResource LabelBaseStyle}"
|
||||
TargetType="Label">
|
||||
@@ -71,6 +89,15 @@
|
||||
Value="{DynamicResource SuccessBrush}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelSuccess.Small"
|
||||
BasedOn="{StaticResource LabelSuccess}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Height"
|
||||
Value="20" />
|
||||
<Setter Property="Padding"
|
||||
Value="6,0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelInfo"
|
||||
BasedOn="{StaticResource LabelBaseStyle}"
|
||||
TargetType="Label">
|
||||
@@ -78,6 +105,15 @@
|
||||
Value="{DynamicResource InfoBrush}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelInfo.Small"
|
||||
BasedOn="{StaticResource LabelInfo}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Height"
|
||||
Value="20" />
|
||||
<Setter Property="Padding"
|
||||
Value="6,0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelWarning"
|
||||
BasedOn="{StaticResource LabelBaseStyle}"
|
||||
TargetType="Label">
|
||||
@@ -85,10 +121,28 @@
|
||||
Value="{DynamicResource WarningBrush}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelWarning.Small"
|
||||
BasedOn="{StaticResource LabelWarning}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Height"
|
||||
Value="20" />
|
||||
<Setter Property="Padding"
|
||||
Value="6,0" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelDanger"
|
||||
BasedOn="{StaticResource LabelBaseStyle}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource DangerBrush}" />
|
||||
</ControlTheme>
|
||||
|
||||
<ControlTheme x:Key="LabelDanger.Small"
|
||||
BasedOn="{StaticResource LabelDanger}"
|
||||
TargetType="Label">
|
||||
<Setter Property="Height"
|
||||
Value="20" />
|
||||
<Setter Property="Padding"
|
||||
Value="6,0" />
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
Reference in new issue
Block a user