feat: add Theme Selector.

This commit is contained in:
Zhang Dian
2024-10-16 20:36:13 +08:00
parent dc20007039
commit ec1028fcc8
4 changed files with 73 additions and 11 deletions

View File

@@ -1,11 +1,9 @@
<Application
x:Class="Ursa.Demo.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u-semi="https://irihi.tech/ursa/themes/semi"
RequestedThemeVariant="{x:Static semi:SemiTheme.Desert}"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:semi="https://irihi.tech/semi"
xmlns:demo="clr-namespace:Ursa.Demo">
xmlns:u-semi="https://irihi.tech/ursa/themes/semi">
<Application.Styles>
<semi:SemiTheme Locale="zh-CN" />
<u-semi:SemiTheme Locale="zh-CN" />