Sheas-Cealer/App.axaml
2025-06-06 10:37:43 +08:00

47 lines
2.1 KiB
XML

<Application x:Class="Sheas_Cealer_Nix.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
RequestedThemeVariant="Default">
<Application.Styles>
<FluentTheme>
<FluentTheme.Palettes>
<ColorPaletteResources x:Key="Light" Accent="Red" />
<ColorPaletteResources x:Key="Dark" Accent="Red" />
</FluentTheme.Palettes>
</FluentTheme>
<Style Selector="Window">
<Setter Property="Title" Value="Sheas Cealer Nix" />
</Style>
<Style Selector="Button">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
</Application.Styles>
<!--<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Inherit" PrimaryColor="Red" SecondaryColor="Orange" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style x:Key="CommonWindow" TargetType="{x:Type Window}">
<Setter Property="AutomationProperties.Name" Value="Sheas Cealer" />
<Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" />
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}" />
</Style>
<Style BasedOn="{StaticResource MaterialDesignFilledTextBox}" TargetType="{x:Type TextBox}" />
<Style BasedOn="{StaticResource MaterialDesignRaisedButton}" TargetType="{x:Type Button}">
<Setter Property="Height" Value="Auto" />
<Setter Property="Width" Value="Auto" />
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBackground}" />
</Style>
</ResourceDictionary>
</Application.Resources>-->
</Application>