feat: rename to PinCode, add styles for size.
This commit is contained in:
33
src/Ursa.Themes.Semi/Styles/PinCode.axaml
Normal file
33
src/Ursa.Themes.Semi/Styles/PinCode.axaml
Normal file
@@ -0,0 +1,33 @@
|
||||
<Styles xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="https://irihi.tech/ursa"
|
||||
xmlns:theme="https://irihi.tech/ursa/themes/semi">
|
||||
<Design.PreviewWith>
|
||||
<Border Padding="20">
|
||||
<!-- Add Controls for Previewer Here -->
|
||||
</Border>
|
||||
</Design.PreviewWith>
|
||||
|
||||
<!-- Add Styles Here -->
|
||||
<Style Selector="u|PinCode">
|
||||
<Style Selector="^ u|PinCodeItem:nth-last-child(n+2)">
|
||||
<Setter Property="Margin" Value="0 0 8 0"></Setter>
|
||||
</Style>
|
||||
</Style>
|
||||
<Style Selector="u|PinCode.Small">
|
||||
<Style Selector="^ u|PinCodeItem">
|
||||
<Setter Property="theme:ClassHelper.Classes" Value="Small"></Setter>
|
||||
<Style Selector="^:nth-last-child(n+2)">
|
||||
<Setter Property="Margin" Value="0 0 6 0"></Setter>
|
||||
</Style>
|
||||
</Style>
|
||||
</Style>
|
||||
<Style Selector="u|PinCode.Large">
|
||||
<Style Selector="^ u|PinCodeItem">
|
||||
<Setter Property="theme:ClassHelper.Classes" Value="Large"></Setter>
|
||||
<Style Selector="^:nth-last-child(n+2)">
|
||||
<Setter Property="Margin" Value="0 0 12 0"></Setter>
|
||||
</Style>
|
||||
</Style>
|
||||
</Style>
|
||||
</Styles>
|
||||
Reference in New Issue
Block a user