misc: remove unnecessary comments from XAML files.

This commit is contained in:
Zhang Dian
2025-04-29 20:37:56 +08:00
parent 44984b4f54
commit 2c44b4710c
68 changed files with 32 additions and 155 deletions

View File

@@ -1,20 +1,13 @@
<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>
<Setter Property="FontSize" Value="12" />
<Style Selector="^#PART_IconPresenter">
<Setter Property="Margin" Value="0 0 2 0"></Setter>
<Setter Property="Margin" Value="0 0 2 0" />
</Style>
<Style Selector="^#Separator">
<Setter Property="Margin" Value="2 0"></Setter>
<Setter Property="Margin" Value="2 0" />
</Style>
</Style>
</Styles>

View File

@@ -1,10 +1,8 @@
<Styles
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa">
<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 -->
<u:ButtonGroup Classes="Primary Solid">
<Button Content="Hello" />
<Button Content="Avalonia" />
@@ -14,7 +12,6 @@
</Border>
</Design.PreviewWith>
<!-- Add Styles Here -->
<Style Selector="u|ButtonGroup Button:nth-last-child(1) /template/ Rectangle#PART_Separator">
<Setter Property="IsVisible" Value="False" />
</Style>
@@ -126,5 +123,4 @@
<Setter Property="Background" Value="{DynamicResource ButtonGroupSolidDangerPressedBackground}" />
</Style>
</Style>
</Styles>

View File

@@ -1,33 +1,25 @@
<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"
xmlns:helpers="clr-namespace:Irihi.Avalonia.Shared.Helpers;assembly=Irihi.Avalonia.Shared">
<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>
<Setter Property="Margin" Value="0 0 8 0" />
</Style>
</Style>
<Style Selector="u|PinCode.Small">
<Style Selector="^ u|PinCodeItem">
<Setter Property="helpers:ClassHelper.Classes" Value="Small"></Setter>
<Setter Property="helpers:ClassHelper.Classes" Value="Small" />
<Style Selector="^:nth-last-child(n+2)">
<Setter Property="Margin" Value="0 0 6 0"></Setter>
<Setter Property="Margin" Value="0 0 6 0" />
</Style>
</Style>
</Style>
<Style Selector="u|PinCode.Large">
<Style Selector="^ u|PinCodeItem">
<Setter Property="helpers:ClassHelper.Classes" Value="Large"></Setter>
<Setter Property="helpers:ClassHelper.Classes" Value="Large" />
<Style Selector="^:nth-last-child(n+2)">
<Setter Property="Margin" Value="0 0 12 0"></Setter>
<Setter Property="Margin" Value="0 0 12 0" />
</Style>
</Style>
</Style>

View File

@@ -2,13 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa"
xmlns:iri="https://irihi.tech/shared">
<Design.PreviewWith>
<Border Padding="20">
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<!-- Add Styles Here -->
<Style Selector="u|Skeleton[IsActive=True][IsLoading=True] /template/ iri|PureRectangle#PART_ActiveBorder">
<Style.Animations>
<Animation

View File

@@ -1,21 +1,16 @@
<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>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa">
<Style Selector="u|TimeBox /template/ Border#PART_HourBorder:pointerover">
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}"/>
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}" />
</Style>
<Style Selector="u|TimeBox /template/ Border#PART_MinuteBorder:pointerover">
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}"/>
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}" />
</Style>
<Style Selector="u|TimeBox /template/ Border#PART_SecondBorder:pointerover">
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}"/>
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}" />
</Style>
<Style Selector="u|TimeBox /template/ Border#PART_MilliSecondBorder:pointerover">
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}"/>
<Setter Property="Background" Value="{DynamicResource TimeBoxPointeroverBackground}" />
</Style>
</Styles>

View File

@@ -1,26 +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>
<Style Selector="u|ToolBar Button">
<Setter Property="Theme" Value="{DynamicResource BorderlessButton}"></Setter>
<Setter Property="Theme" Value="{DynamicResource BorderlessButton}" />
<Setter Property="FontWeight" Value="Regular" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}"></Setter>
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
</Style>
<Style Selector="u|ToolBar CheckBox">
<Setter Property="Margin" Value="8 0" />
</Style>
<Style Selector="u|ToolBar ToggleButton">
<Setter Property="FontWeight" Value="Regular" />
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}"/>
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
</Style>
<Style Selector="u|ToolBar ComboBox">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="HorizontalAlignment" Value="Stretch" />
</Style>
<!-- Add Styles Here -->
</Styles>

View File

@@ -1,14 +1,7 @@
<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=":is(u|UrsaView)">
<Setter Property="Theme" Value="{DynamicResource {x:Type u:UrsaView}}"/>
<Setter Property="Theme" Value="{DynamicResource {x:Type u:UrsaView}}" />
</Style>
</Styles>

View File

@@ -1,18 +1,12 @@
<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>
<Style Selector=":is(u|UrsaWindow)[ExtendClientAreaToDecorationsHint=True] u|WindowNotificationManager">
<Style Selector="^:topright">
<Setter Property="Margin" Value="0 36 0 0"></Setter>
<Setter Property="Margin" Value="0 36 0 0" />
</Style>
</Style>
<Style Selector=":is(u|UrsaWindow)[ExtendClientAreaToDecorationsHint=True] u|WindowToastManager">
<Setter Property="Margin" Value="0 36 0 0"></Setter>
<Setter Property="Margin" Value="0 36 0 0" />
</Style>
</Styles>
</Styles>

View File

@@ -1,16 +1,10 @@
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Design.PreviewWith>
<Border Padding="20">
<!-- Add Controls for Previewer Here -->
</Border>
</Design.PreviewWith>
<StyleInclude Source="Breadcrumb.axaml" />
<StyleInclude Source="ButtonGroup.axaml" />
<StyleInclude Source="PinCode.axaml" />
<StyleInclude Source="Skeleton.axaml" />
<StyleInclude Source="ToolBar.axaml"/>
<StyleInclude Source="TimeBox.axaml"/>
<StyleInclude Source="ToolBar.axaml" />
<StyleInclude Source="TimeBox.axaml" />
<StyleInclude Source="UrsaView.axaml" />
<StyleInclude Source="UrsaWindow.axaml" />
<!-- Add Styles Here -->
</Styles>
</Styles>