mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
216 lines
11 KiB
XML
216 lines
11 KiB
XML
<Styles xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:ui="using:FluentAvalonia.UI.Controls">
|
|
|
|
<Styles.Resources>
|
|
<!-- Unified corner radius tokens used across settings and widget panels -->
|
|
<CornerRadius x:Key="DesignCornerRadiusXl">32</CornerRadius>
|
|
<CornerRadius x:Key="DesignCornerRadiusLg">28</CornerRadius>
|
|
<CornerRadius x:Key="DesignCornerRadiusMd">20</CornerRadius>
|
|
<CornerRadius x:Key="DesignCornerRadiusSm">14</CornerRadius>
|
|
<CornerRadius x:Key="DesignCornerRadiusXs">12</CornerRadius>
|
|
</Styles.Resources>
|
|
|
|
<Style Selector="TextBlock">
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="Button">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveButtonBorderBrush}" />
|
|
<Setter Property="CornerRadius" Value="20" />
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="Padding" Value="16,10" />
|
|
<Setter Property="Transitions">
|
|
<Transitions>
|
|
<TransformOperationsTransition Property="RenderTransform" Duration="{StaticResource FluttermotionToken.Duration.Fast}" />
|
|
<DoubleTransition Property="Opacity" Duration="{StaticResource FluttermotionToken.Duration.Fast}" />
|
|
<BrushTransition Property="Background" Duration="{StaticResource FluttermotionToken.Duration.Fast}" />
|
|
</Transitions>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style Selector="Button:pointerover">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonHoverBackgroundBrush}" />
|
|
<Setter Property="RenderTransform" Value="scale(1.015)" />
|
|
</Style>
|
|
|
|
<Style Selector="Button:pressed">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonPressedBackgroundBrush}" />
|
|
<Setter Property="RenderTransform" Value="scale(0.985)" />
|
|
</Style>
|
|
|
|
<Style Selector="ComboBox">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveButtonBorderBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="ComboBox:pointerover">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonHoverBackgroundBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="TextBox">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveButtonBorderBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="NumericUpDown">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveButtonBorderBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="ui|NumberBox">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveButtonBorderBrush}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="CheckBox">
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="ToggleSwitch">
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope Border.settings-expander-shell">
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusSm}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveGlassPanelBorderBrush}" />
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="Padding" Value="10,8" />
|
|
<Setter Property="Margin" Value="0,0,0,10" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope Button">
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusSm}" />
|
|
<Setter Property="MinHeight" Value="34" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope ComboBox">
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusSm}" />
|
|
<Setter Property="MinHeight" Value="34" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope TextBox">
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusSm}" />
|
|
<Setter Property="MinHeight" Value="34" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope ComboBoxItem">
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusXs}" />
|
|
<Setter Property="Padding" Value="10,6" />
|
|
<Setter Property="Margin" Value="4,2" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope ComboBoxItem:pointerover">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonHoverBackgroundBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope ComboBoxItem:selected">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveNavItemSelectedBackgroundBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope ui|NumberBox">
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusSm}" />
|
|
<Setter Property="MinHeight" Value="34" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope NumericUpDown">
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusSm}" />
|
|
<Setter Property="MinHeight" Value="34" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope RadioButton">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonBackgroundBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveButtonBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="{DynamicResource DesignCornerRadiusXs}" />
|
|
<Setter Property="Padding" Value="10,6" />
|
|
<Setter Property="MinHeight" Value="34" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope RadioButton:pointerover">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveButtonHoverBackgroundBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope RadioButton:checked">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveNavItemSelectedBackgroundBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector=".settings-scope ui|NavigationView, .settings-scope ui|NavigationViewItem, .settings-scope ui|SettingsExpander, .settings-scope ui|InfoBar, .settings-scope ListBoxItem">
|
|
<Setter Property="Foreground" Value="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</Style>
|
|
|
|
<Style Selector="Button.swatch-button">
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="CornerRadius" Value="16" />
|
|
<Setter Property="Opacity" Value="0.88" />
|
|
</Style>
|
|
|
|
<Style Selector="Button.swatch-button.swatch-selected">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveNavItemSelectedBackgroundBrush}" />
|
|
<Setter Property="Opacity" Value="1" />
|
|
<Setter Property="RenderTransform" Value="scale(1.05)" />
|
|
</Style>
|
|
|
|
<Style Selector="Border.glass-panel">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveGlassPanelBackgroundBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveGlassPanelBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1.2" />
|
|
<Setter Property="CornerRadius" Value="28" />
|
|
<Setter Property="Opacity" Value="{DynamicResource AdaptiveGlassPanelOpacity}" />
|
|
<Setter Property="BoxShadow" Value="0 4 12 #1A000000" />
|
|
</Style>
|
|
|
|
<Style Selector="Border.glass-strong">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveGlassStrongBackgroundBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveGlassStrongBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1.5" />
|
|
<Setter Property="CornerRadius" Value="32" />
|
|
<Setter Property="Opacity" Value="{DynamicResource AdaptiveGlassStrongOpacity}" />
|
|
<Setter Property="BoxShadow" Value="0 8 24 #26000000" />
|
|
</Style>
|
|
|
|
<Style Selector="Border.glass-island">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveDockGlassBackgroundBrush}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource AdaptiveDockGlassBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1.5" />
|
|
<Setter Property="CornerRadius" Value="36" />
|
|
<Setter Property="Opacity" Value="{DynamicResource AdaptiveGlassStrongOpacity}" />
|
|
<Setter Property="BoxShadow" Value="0 12 32 #33000000" />
|
|
<Setter Property="Transitions">
|
|
<Transitions>
|
|
<ThicknessTransition Property="Padding" Duration="{StaticResource FluttermotionToken.Duration.Slow}" Easing="QuarticEaseOut" />
|
|
</Transitions>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style Selector="Border.mica-strong">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveGlassStrongBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="CornerRadius" Value="36" />
|
|
<Setter Property="Opacity" Value="{DynamicResource AdaptiveGlassStrongOpacity}" />
|
|
<Setter Property="BoxShadow" Value="0 8 22 #2A000000" />
|
|
</Style>
|
|
|
|
<Style Selector="Border.glass-overlay">
|
|
<Setter Property="Background" Value="{DynamicResource AdaptiveGlassOverlayBackgroundBrush}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="CornerRadius" Value="0" />
|
|
<Setter Property="Opacity" Value="{DynamicResource AdaptiveGlassOverlayOpacity}" />
|
|
</Style>
|
|
|
|
</Styles>
|