mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-19 16:06:35 +08:00
Merge pull request #504 from irihitech/icon
extract icon resources & resolve AOT issue
This commit is contained in:
14
src/Semi.Avalonia/Icons/IconPatch.axaml
Normal file
14
src/Semi.Avalonia/Icons/IconPatch.axaml
Normal file
@@ -0,0 +1,14 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<StreamGeometry x:Key="SemiIconCaretDown">
|
||||
m17.55 15.66-4.8 5.48a1 1 0 0 1-1.5 0l-4.8-5.48A1 1 0 0 1 7.2 14h9.6a1 1 0 0 1 .75 1.66Z
|
||||
</StreamGeometry>
|
||||
<StreamGeometry x:Key="SemiIconCaretUp">
|
||||
m6.45 8.34 4.8-5.48a1 1 0 0 1 1.5 0l4.8 5.48A1 1 0 0 1 16.8 10H7.2a1 1 0 0 1-.75-1.66Z
|
||||
</StreamGeometry>
|
||||
<StreamGeometry x:Key="SemiIconCheckBoxIndeterminate">
|
||||
M5 12.5c0-.83.67-1.5 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 5 12.5Z
|
||||
</StreamGeometry>
|
||||
<StreamGeometry x:Key="SemiIconCheckBoxTick">
|
||||
M17.41 7.3c.66.51.78 1.45.28 2.11l-6.5 8.5a1.5 1.5 0 0 1-2.37.01l-3.5-4.5a1.5 1.5 0 1 1 2.36-1.84L10 14.54l5.32-6.95a1.5 1.5 0 0 1 2.1-.28Z
|
||||
</StreamGeometry>
|
||||
</ResourceDictionary>
|
||||
6
src/Semi.Avalonia/Icons/_index.axaml
Normal file
6
src/Semi.Avalonia/Icons/_index.axaml
Normal file
@@ -0,0 +1,6 @@
|
||||
<ResourceDictionary x:Class="Semi.Avalonia.Icons" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Icons/Icon.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Icons/IconPatch.axaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
5
src/Semi.Avalonia/Icons/_index.axaml.cs
Normal file
5
src/Semi.Avalonia/Icons/_index.axaml.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Semi.Avalonia;
|
||||
|
||||
public class Icons : ResourceDictionary;
|
||||
@@ -10,7 +10,8 @@
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Base.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/_index.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Locale/zh-cn.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Icons/_index.axaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Styles.Resources>
|
||||
</Styles>
|
||||
</Styles>
|
||||
@@ -15,6 +15,7 @@
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Base.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/_index.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Locale/zh-cn.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Icons/_index.axaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Styles.Resources>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<StaticResource x:Key="SemiIconCaretDown" ResourceKey="SemiIconCaretdown" />
|
||||
<StaticResource x:Key="SemiIconCaretUp" ResourceKey="SemiIconCaretup" />
|
||||
<StaticResource x:Key="SemiIconCheckBoxIndeterminate" ResourceKey="SemiIconCheckboxIndeterminate" />
|
||||
<StaticResource x:Key="SemiIconCheckBoxTick" ResourceKey="SemiIconCheckboxTick" />
|
||||
</ResourceDictionary>
|
||||
@@ -1,8 +1,6 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/Palette.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/Icon.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/IconPatch.axaml" />
|
||||
<!-- Controls -->
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/AdornerLayer.axaml" />
|
||||
<ResourceInclude Source="avares://Semi.Avalonia/Themes/Shared/AutoCompleteBox.axaml" />
|
||||
|
||||
Reference in New Issue
Block a user