feat: introduce Small class and IsReadOnly property.

This commit is contained in:
rabbitism
2024-03-05 16:47:33 +08:00
parent 2790066333
commit fdc6b2e156
7 changed files with 138 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa">
<Design.PreviewWith>
<Border Padding="20">
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<!-- Add Styles Here -->
<Style Selector="u|Breadcrumb.Small u|BreadcrumbItem /template/ ContentPresenter">
<Setter Property="FontSize" Value="12"></Setter>
</Style>
<Style Selector="u|Breadcrumb.Small u|BreadcrumbItem /template/ ContentPresenter#PART_IconPresenter">
<Setter Property="Margin" Value="0 0 2 0"></Setter>
</Style>
<Style Selector="u|Breadcrumb.Small u|BreadcrumbItem /template/ ContentPresenter#Separator">
<Setter Property="Margin" Value="2 0 0 0"></Setter>
</Style>
</Styles>

View File

@@ -4,6 +4,7 @@
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<StyleInclude Source="Breadcrumb.axaml" />
<StyleInclude Source="ButtonGroup.axaml" />
<StyleInclude Source="Skeleton.axaml" />
<StyleInclude Source="ToolBar.axaml"/>