From 567027e08980bdb6ef3694f3779b8982d486b818 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Wed, 23 Apr 2025 21:23:19 +0800
Subject: [PATCH 1/2] feat: add AssemblyInfo for ColorPicker, DataGrid, and
TreeDataGrid.
---
demo/Semi.Avalonia.Demo/App.axaml | 6 +++---
.../ColorPickerSemiTheme.axaml | 17 +++++++++++++++++
.../ColorPickerSemiTheme.axaml.cs | 7 +++++++
src/Semi.Avalonia.DataGrid/AssemblyInfo.cs | 3 +++
.../DataGridSemiTheme.axaml | 17 +++++++++++++++++
.../DataGridSemiTheme.axaml.cs | 7 +++++++
src/Semi.Avalonia.TreeDataGrid/AssemblyInfo.cs | 3 +++
.../TreeDataGridSemiTheme.axaml | 17 +++++++++++++++++
.../TreeDataGridSemiTheme.axaml.cs | 7 +++++++
9 files changed, 81 insertions(+), 3 deletions(-)
create mode 100644 src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml
create mode 100644 src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml.cs
create mode 100644 src/Semi.Avalonia.DataGrid/AssemblyInfo.cs
create mode 100644 src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml
create mode 100644 src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml.cs
create mode 100644 src/Semi.Avalonia.TreeDataGrid/AssemblyInfo.cs
create mode 100644 src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml
create mode 100644 src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml.cs
diff --git a/demo/Semi.Avalonia.Demo/App.axaml b/demo/Semi.Avalonia.Demo/App.axaml
index 3f18920..168ed28 100644
--- a/demo/Semi.Avalonia.Demo/App.axaml
+++ b/demo/Semi.Avalonia.Demo/App.axaml
@@ -11,9 +11,9 @@
-
-
-
+
+
+
diff --git a/src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml b/src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml
new file mode 100644
index 0000000..42887da
--- /dev/null
+++ b/src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml.cs b/src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml.cs
new file mode 100644
index 0000000..20fbfed
--- /dev/null
+++ b/src/Semi.Avalonia.ColorPicker/ColorPickerSemiTheme.axaml.cs
@@ -0,0 +1,7 @@
+using Avalonia.Styling;
+
+namespace Semi.Avalonia.ColorPicker;
+
+public class ColorPickerSemiTheme : Styles
+{
+}
\ No newline at end of file
diff --git a/src/Semi.Avalonia.DataGrid/AssemblyInfo.cs b/src/Semi.Avalonia.DataGrid/AssemblyInfo.cs
new file mode 100644
index 0000000..5b968af
--- /dev/null
+++ b/src/Semi.Avalonia.DataGrid/AssemblyInfo.cs
@@ -0,0 +1,3 @@
+using Avalonia.Metadata;
+
+[assembly: XmlnsDefinition("https://irihi.tech/semi", "Semi.Avalonia.DataGrid")]
\ No newline at end of file
diff --git a/src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml b/src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml
new file mode 100644
index 0000000..dffe25f
--- /dev/null
+++ b/src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml.cs b/src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml.cs
new file mode 100644
index 0000000..4ed8a2d
--- /dev/null
+++ b/src/Semi.Avalonia.DataGrid/DataGridSemiTheme.axaml.cs
@@ -0,0 +1,7 @@
+using Avalonia.Styling;
+
+namespace Semi.Avalonia.DataGrid;
+
+public class DataGridSemiTheme : Styles
+{
+}
\ No newline at end of file
diff --git a/src/Semi.Avalonia.TreeDataGrid/AssemblyInfo.cs b/src/Semi.Avalonia.TreeDataGrid/AssemblyInfo.cs
new file mode 100644
index 0000000..93f1ad2
--- /dev/null
+++ b/src/Semi.Avalonia.TreeDataGrid/AssemblyInfo.cs
@@ -0,0 +1,3 @@
+using Avalonia.Metadata;
+
+[assembly: XmlnsDefinition("https://irihi.tech/semi", "Semi.Avalonia.TreeDataGrid")]
\ No newline at end of file
diff --git a/src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml b/src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml
new file mode 100644
index 0000000..802d367
--- /dev/null
+++ b/src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml.cs b/src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml.cs
new file mode 100644
index 0000000..518e8af
--- /dev/null
+++ b/src/Semi.Avalonia.TreeDataGrid/TreeDataGridSemiTheme.axaml.cs
@@ -0,0 +1,7 @@
+using Avalonia.Styling;
+
+namespace Semi.Avalonia.TreeDataGrid;
+
+public class TreeDataGridSemiTheme : Styles
+{
+}
\ No newline at end of file
From 77ee768962b829bb76fd264cf136f7ea9f1c9f90 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Wed, 23 Apr 2025 21:30:04 +0800
Subject: [PATCH 2/2] feat: update README to use SemiTheme components for
ColorPicker, DataGrid, and TreeDataGrid.
---
README.md | 6 +++---
README_CN.md | 6 +++---
demo/Semi.Avalonia.Demo/App.axaml | 5 +----
demo/Semi.Avalonia.Demo/Pages/Overview.axaml.cs | 8 +++-----
4 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/README.md b/README.md
index a831b75..68a9ba1 100644
--- a/README.md
+++ b/README.md
@@ -48,9 +48,9 @@ dotnet add package Semi.Avalonia.TreeDataGrid
```xaml
-
-
-
+
+
+
```
diff --git a/README_CN.md b/README_CN.md
index 7033b88..ce4ac0a 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -48,9 +48,9 @@ dotnet add package Semi.Avalonia.TreeDataGrid
```xaml
-
-
-
+
+
+
```
diff --git a/demo/Semi.Avalonia.Demo/App.axaml b/demo/Semi.Avalonia.Demo/App.axaml
index 168ed28..8ef2cca 100644
--- a/demo/Semi.Avalonia.Demo/App.axaml
+++ b/demo/Semi.Avalonia.Demo/App.axaml
@@ -7,8 +7,6 @@
xmlns:semi="https://irihi.tech/semi"
xmlns:viewModels="clr-namespace:Semi.Avalonia.Demo.ViewModels">
-
-
@@ -18,8 +16,7 @@
-
+
diff --git a/demo/Semi.Avalonia.Demo/Pages/Overview.axaml.cs b/demo/Semi.Avalonia.Demo/Pages/Overview.axaml.cs
index 2f43e32..c8b89e3 100644
--- a/demo/Semi.Avalonia.Demo/Pages/Overview.axaml.cs
+++ b/demo/Semi.Avalonia.Demo/Pages/Overview.axaml.cs
@@ -14,8 +14,6 @@ public partial class Overview : UserControl
public string MainStyle { get; set; } =
"""
-
-
""";
@@ -25,7 +23,7 @@ public partial class Overview : UserControl
public string ColorPickerStyle { get; set; } =
"""
-
+
""";
@@ -34,7 +32,7 @@ public partial class Overview : UserControl
public string DataGridStyle { get; set; } =
"""
-
+
""";
@@ -43,7 +41,7 @@ public partial class Overview : UserControl
public string TreeDataGridStyle { get; set; } =
"""
-
+
""";
}
\ No newline at end of file