2022-12-13 12:44:38 +08:00
|
|
|
# Semi.Avalonia
|
|
|
|
|
2023-02-03 23:43:22 +08:00
|
|
|
[](https://www.nuget.org/packages/Semi.Avalonia/)
|
|
|
|
[](https://www.nuget.org/packages/Semi.Avalonia/)
|
|
|
|
|
2022-12-13 12:44:38 +08:00
|
|
|
Avalonia Theme inspired by Semi Design
|
|
|
|
|
2022-12-13 15:20:56 +08:00
|
|
|
> Semi.Avalonia is still in very early stage. Please don't use in production.
|
|
|
|
|
2023-02-03 23:43:22 +08:00
|
|
|
# How to Use
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
```bash
|
2023-03-05 20:46:25 +08:00
|
|
|
dotnet add package Semi.Avalonia --version 0.1.0-preview5.3
|
2023-02-03 23:43:22 +08:00
|
|
|
```
|
|
|
|
Include Semi Design Styles in application:
|
|
|
|
|
|
|
|
```xaml
|
|
|
|
<Application.Styles>
|
2023-02-13 12:12:03 +08:00
|
|
|
<StyleInclude Source="avares://Semi.Avalonia/Themes/Index.axaml" />
|
2023-02-03 23:43:22 +08:00
|
|
|
</Application.Styles>
|
|
|
|
```
|
|
|
|
|
|
|
|
That's all.
|
|
|
|
|
2023-02-13 12:12:03 +08:00
|
|
|
DataGrid and ColorPicker are distributed in separated packages. Please install if you need.
|
|
|
|
```bash
|
2023-02-19 18:25:44 +08:00
|
|
|
dotnet add package Semi.Avalonia.ColorPicker --version 0.1.0-preview5.2
|
|
|
|
dotnet add package Semi.Avalonia.DataGrid --version 0.1.0-preview5.2
|
2023-02-13 12:12:03 +08:00
|
|
|
```
|
|
|
|
```xaml
|
|
|
|
<Application.Styles>
|
|
|
|
<StyleInclude Source="avares://Semi.Avalonia.DataGrid/Index.axaml" />
|
|
|
|
<StyleInclude Source="avares://Semi.Avalonia.ColorPicker/Index.axaml" />
|
|
|
|
</Application.Styles>
|
|
|
|
```
|
2023-02-19 18:25:44 +08:00
|
|
|
|
|
|
|
## Demo
|
|
|
|
|
|
|
|
You can always download demo executable to play around with Semi Avalonia Themes.
|
|
|
|
https://github.com/irihitech/Semi.Avalonia/releases
|
|
|
|
|
2023-02-03 23:43:22 +08:00
|
|
|
## Version compatibility
|
|
|
|
|
2023-02-13 12:12:03 +08:00
|
|
|
| Semi Design Version | Avalonia Version|
|
|
|
|
|:--------------------|:---|
|
|
|
|
| 0.1.0-preview3 |11.0-preview4|
|
|
|
|
| 0.1.0-preview5.x |11.0-preview5|
|
2023-02-03 23:43:22 +08:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
* DataValidationErrors
|
|
|
|
* FocusAdorner
|
2022-12-13 15:20:56 +08:00
|
|
|
|
2023-03-17 20:37:23 +08:00
|
|
|
## Credits
|
|
|
|
|
|
|
|
[Semi Design](https://semi.design/)
|
|
|
|
|
|
|
|
[Avalonia](https://github.com/AvaloniaUI/Avalonia)
|
|
|
|
|
|
|
|
[FluentAvalonia](https://github.com/amwx/FluentAvalonia)
|
|
|
|
|
|
|
|
[Material Design Icons](https://pictogrammers.com/library/mdi/)
|
|
|
|
|
|
|
|
[CommunityToolKit](https://github.com/CommunityToolkit/dotnet)
|
|
|
|
|
2023-02-03 23:43:22 +08:00
|
|
|
## Screenshot
|
2022-12-13 15:20:56 +08:00
|
|
|
|
2023-02-03 23:43:22 +08:00
|
|
|
Light Mode
|
|
|
|

|
2022-12-13 15:20:56 +08:00
|
|
|
|
2023-02-03 23:43:22 +08:00
|
|
|
Dark Mode
|
|
|
|

|