aisop/src/SopHelper.Avalonia/Training/Styles.axaml

73 lines
3.2 KiB
XML

<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources>
<SolidColorBrush x:Key="Bg" Color="#101820" />
<SolidColorBrush x:Key="Panel" Color="#16222E" />
<SolidColorBrush x:Key="Line" Color="#2C4257" />
<SolidColorBrush x:Key="Fg" Color="#DCEBF5" />
<SolidColorBrush x:Key="Dim" Color="#8FAFC4" />
<SolidColorBrush x:Key="Accent" Color="#00B8D4" />
</Styles.Resources>
<Style Selector="Window">
<Setter Property="FontFamily" Value="Microsoft YaHei, Noto Sans CJK SC, sans-serif" />
<Setter Property="Background" Value="{StaticResource Bg}" />
<Setter Property="Foreground" Value="{StaticResource Fg}" />
</Style>
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="{StaticResource Fg}" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="13" />
</Style>
<Style Selector="TextBlock.Hint">
<Setter Property="Foreground" Value="{StaticResource Dim}" />
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="Margin" Value="0,6,0,12" />
<Setter Property="LineHeight" Value="21" />
</Style>
<Style Selector="Button">
<Setter Property="Foreground" Value="{StaticResource Fg}" />
<Setter Property="Background" Value="{StaticResource Panel}" />
<Setter Property="BorderBrush" Value="{StaticResource Line}" />
<Setter Property="Padding" Value="12,8" />
<Setter Property="Margin" Value="0,0,6,6" />
<Setter Property="Cursor" Value="Hand" />
</Style>
<Style Selector="TextBox">
<Setter Property="Foreground" Value="{StaticResource Fg}" />
<Setter Property="Background" Value="#101820" />
<Setter Property="BorderBrush" Value="{StaticResource Line}" />
<Setter Property="Padding" Value="7" />
<Setter Property="Margin" Value="0,4,0,10" />
<Setter Property="CaretBrush" Value="{StaticResource Accent}" />
</Style>
<Style Selector="TextBox.password">
<Setter Property="Foreground" Value="{StaticResource Fg}" />
<Setter Property="Background" Value="#101820" />
<Setter Property="BorderBrush" Value="{StaticResource Line}" />
<Setter Property="Padding" Value="7" />
<Setter Property="Margin" Value="0,4,0,10" />
</Style>
<Style Selector="TabControl">
<Setter Property="Background" Value="{StaticResource Panel}" />
<Setter Property="BorderBrush" Value="{StaticResource Line}" />
<Setter Property="Padding" Value="12" />
</Style>
<Style Selector="TabItem">
<Setter Property="Foreground" Value="{StaticResource Dim}" />
</Style>
<Style Selector="ListBox">
<Setter Property="Background" Value="#101820" />
<Setter Property="Foreground" Value="{StaticResource Fg}" />
<Setter Property="BorderBrush" Value="{StaticResource Line}" />
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
</Style>
<Style Selector="ListBoxItem">
<Setter Property="Padding" Value="10,8" />
</Style>
<Style Selector="ComboBox">
<Setter Property="Foreground" Value="{StaticResource Fg}" />
</Style>
<Style Selector="ComboBoxItem">
<Setter Property="Foreground" Value="{StaticResource Fg}" />
<Setter Property="Padding" Value="10,8" />
</Style>
</Styles>