mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
219 lines
12 KiB
XML
219 lines
12 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
|
xmlns:fi="using:FluentIcons.Avalonia"
|
|
xmlns:ic="using:FluentIcons.Avalonia.Fluent"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600"
|
|
x:Class="LanMountainDesktop.Views.SettingsPages.ColorSettingsPage">
|
|
<StackPanel x:Name="ColorSettingsPanel"
|
|
MaxWidth="920"
|
|
Spacing="16">
|
|
<TextBlock x:Name="ColorPanelTitleTextBlock"
|
|
IsVisible="False"
|
|
FontSize="24"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Text="Color" />
|
|
|
|
<TextBlock x:Name="ColorPanelSubtitleTextBlock"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="Adjust theme mode and accent colors. The desktop shell will reuse these colors consistently." />
|
|
|
|
<Border Classes="settings-expander-shell">
|
|
<ui:SettingsExpander x:Name="ThemeModeSettingsExpander"
|
|
Header="日夜模式"
|
|
Description="切换应用的浅色或深色主题。">
|
|
<ui:SettingsExpander.IconSource>
|
|
<ic:SymbolIconSource Symbol="DarkTheme"
|
|
IconVariant="Regular" />
|
|
</ui:SettingsExpander.IconSource>
|
|
<ui:SettingsExpander.Footer>
|
|
<ToggleSwitch x:Name="NightModeToggleSwitch"
|
|
OffContent="Day"
|
|
OnContent="Night" />
|
|
</ui:SettingsExpander.Footer>
|
|
</ui:SettingsExpander>
|
|
</Border>
|
|
|
|
<Border Classes="settings-expander-shell">
|
|
<ui:SettingsExpander x:Name="ThemeColorSettingsExpander"
|
|
Header="主题色"
|
|
Description="选择应用的主题点缀色。">
|
|
<ui:SettingsExpander.IconSource>
|
|
<ic:SymbolIconSource Symbol="Color"
|
|
IconVariant="Regular" />
|
|
</ui:SettingsExpander.IconSource>
|
|
|
|
<ui:SettingsExpanderItem>
|
|
<ui:SettingsExpanderItem.Footer>
|
|
<StackPanel Spacing="12">
|
|
<TextBlock x:Name="RecommendedColorsLabelTextBlock"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Text="Recommended Colors" />
|
|
<WrapPanel ItemWidth="72"
|
|
ItemHeight="56"
|
|
Orientation="Horizontal">
|
|
<Button x:Name="RecommendedColorButton1"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="RecommendedColorSwatch1"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="RecommendedColorButton2"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="RecommendedColorSwatch2"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="RecommendedColorButton3"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="RecommendedColorSwatch3"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="RecommendedColorButton4"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="RecommendedColorSwatch4"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="RecommendedColorButton5"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="RecommendedColorSwatch5"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="RecommendedColorButton6"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="RecommendedColorSwatch6"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
</ui:SettingsExpanderItem.Footer>
|
|
</ui:SettingsExpanderItem>
|
|
|
|
<ui:SettingsExpanderItem>
|
|
<ui:SettingsExpanderItem.Footer>
|
|
<StackPanel Spacing="12">
|
|
<Grid ColumnDefinitions="*,Auto"
|
|
ColumnSpacing="10">
|
|
<TextBlock x:Name="SystemMonetColorsLabelTextBlock"
|
|
VerticalAlignment="Center"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Text="System Monet Colors" />
|
|
<Button x:Name="RefreshMonetColorsButton"
|
|
Grid.Column="1"
|
|
Padding="10,6"
|
|
Content="Refresh" />
|
|
</Grid>
|
|
|
|
<WrapPanel ItemWidth="72"
|
|
ItemHeight="56"
|
|
Orientation="Horizontal">
|
|
<Button x:Name="MonetColorButton1"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="MonetColorSwatch1"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="MonetColorButton2"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="MonetColorSwatch2"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="MonetColorButton3"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="MonetColorSwatch3"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="MonetColorButton4"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="MonetColorSwatch4"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="MonetColorButton5"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="MonetColorSwatch5"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
<Button x:Name="MonetColorButton6"
|
|
Width="68"
|
|
Height="50"
|
|
Padding="8">
|
|
<Border x:Name="MonetColorSwatch6"
|
|
Width="26"
|
|
Height="26"
|
|
CornerRadius="12"
|
|
BorderThickness="0" />
|
|
</Button>
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
</ui:SettingsExpanderItem.Footer>
|
|
</ui:SettingsExpanderItem>
|
|
</ui:SettingsExpander>
|
|
</Border>
|
|
|
|
<Border Classes="settings-expander-shell"
|
|
Padding="16,14">
|
|
<TextBlock x:Name="ThemeColorStatusTextBlock"
|
|
Foreground="{DynamicResource AdaptiveTextMutedBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="Theme color is ready." />
|
|
</Border>
|
|
</StackPanel>
|
|
</UserControl>
|
|
|