From 1fe4df37162b5f42b315a0be3783508e47a8a255 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Wed, 1 Jan 2025 21:52:24 +0800 Subject: [PATCH] feat: add basic Variables. --- src/Semi.Avalonia/Index.axaml | 4 +- src/Semi.Avalonia/SemiTheme.axaml | 5 +- src/Semi.Avalonia/Tokens/Variables.axaml | 64 +++++++++++++++++++++ src/Semi.Avalonia/Tokens/Variables.axaml.cs | 5 ++ 4 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 src/Semi.Avalonia/Tokens/Variables.axaml create mode 100644 src/Semi.Avalonia/Tokens/Variables.axaml.cs diff --git a/src/Semi.Avalonia/Index.axaml b/src/Semi.Avalonia/Index.axaml index 013498e..c76abf6 100644 --- a/src/Semi.Avalonia/Index.axaml +++ b/src/Semi.Avalonia/Index.axaml @@ -1,4 +1,5 @@ - @@ -14,6 +15,7 @@ + diff --git a/src/Semi.Avalonia/SemiTheme.axaml b/src/Semi.Avalonia/SemiTheme.axaml index 8d158b8..20cb78b 100644 --- a/src/Semi.Avalonia/SemiTheme.axaml +++ b/src/Semi.Avalonia/SemiTheme.axaml @@ -1,4 +1,6 @@ - @@ -14,6 +16,7 @@ + diff --git a/src/Semi.Avalonia/Tokens/Variables.axaml b/src/Semi.Avalonia/Tokens/Variables.axaml new file mode 100644 index 0000000..c155e99 --- /dev/null +++ b/src/Semi.Avalonia/Tokens/Variables.axaml @@ -0,0 +1,64 @@ + + + 24 + 32 + 40 + 8 + 12 + 16 + 20 + 24 + + + 0 + 1 + 1 + 0 + 1 + 1 + 3 + 3 + 6 + 12 + 999 + + + 0 + 2 + 4 + 8 + 12 + 16 + 20 + 24 + 32 + 40 + + + 0 + 2 + 4 + 8 + 12 + 16 + 20 + 24 + 32 + 40 + + + 12 + 14 + 16 + 18 + 20 + 24 + 28 + 32 + 200 + 400 + 600 + \ No newline at end of file diff --git a/src/Semi.Avalonia/Tokens/Variables.axaml.cs b/src/Semi.Avalonia/Tokens/Variables.axaml.cs new file mode 100644 index 0000000..27ac62c --- /dev/null +++ b/src/Semi.Avalonia/Tokens/Variables.axaml.cs @@ -0,0 +1,5 @@ +using Avalonia.Controls; + +namespace Semi.Avalonia.Tokens; + +public class Variables : ResourceDictionary; \ No newline at end of file