mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
Replace and refine icon sources across settings pages and controls: many FAFontIconSource glyphs were updated to specific Seagull Fluent Icons codepoints, some FASymbolIconSource usages were replaced with FAFontIconSource, and a number of symbol-to-Symbol enum mappings were adjusted (e.g. "Bell" -> AlertOn, "Shield" -> ShieldLock). Also clarified a comment in SettingsWindow and fixed a trailing newline in StudySettingsPage. Changes standardize icon visuals and bridge FluentIcons glyphs into FluentAvalonia icon sources.
84 lines
4.3 KiB
XML
84 lines
4.3 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LanMountainDesktop.ViewModels"
|
|
xmlns:controls="using:LanMountainDesktop.Controls"
|
|
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
|
xmlns:fi="using:FluentIcons.Avalonia"
|
|
x:Class="LanMountainDesktop.Views.SettingsPages.PrivacySettingsPage"
|
|
x:DataType="vm:PrivacySettingsPageViewModel">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<StackPanel Classes="settings-page-container settings-page-animated">
|
|
<controls:IconText Icon="Info"
|
|
Text="{Binding PrivacyHeader}"
|
|
Margin="0,0,0,4" />
|
|
|
|
<ui:FASettingsExpander Header="{Binding CrashUploadHeader}"
|
|
Description="{Binding CrashUploadDescription}">
|
|
<ui:FASettingsExpander.IconSource>
|
|
<ui:FAFontIconSource Glyph="󰶜" FontFamily="avares://fluenticons.resources.avalonia/Assets#Seagull Fluent Icons" />
|
|
</ui:FASettingsExpander.IconSource>
|
|
<ui:FASettingsExpander.Footer>
|
|
<ToggleSwitch IsChecked="{Binding UploadAnonymousCrashData}" />
|
|
</ui:FASettingsExpander.Footer>
|
|
</ui:FASettingsExpander>
|
|
|
|
<ui:FASettingsExpander Header="{Binding UsageUploadHeader}"
|
|
Description="{Binding UsageUploadDescription}">
|
|
<ui:FASettingsExpander.IconSource>
|
|
<ui:FAFontIconSource Glyph="󰞤" FontFamily="avares://fluenticons.resources.avalonia/Assets#Seagull Fluent Icons" />
|
|
</ui:FASettingsExpander.IconSource>
|
|
<ui:FASettingsExpander.Footer>
|
|
<ToggleSwitch IsChecked="{Binding UploadAnonymousUsageData}" />
|
|
</ui:FASettingsExpander.Footer>
|
|
</ui:FASettingsExpander>
|
|
|
|
<Border Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
|
CornerRadius="8"
|
|
Padding="16"
|
|
Margin="0,16,0,0">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<StackPanel Grid.Column="0">
|
|
<TextBlock Text="{Binding TelemetryIdHeader}"
|
|
FontWeight="SemiBold"
|
|
FontSize="14" />
|
|
<TextBlock Text="{Binding TelemetryIdDescription}"
|
|
FontSize="12"
|
|
Opacity="0.7"
|
|
Margin="0,4,0,8" />
|
|
<TextBox x:Name="TelemetryIdTextBox"
|
|
Text="{Binding TelemetryId}"
|
|
IsReadOnly="True"
|
|
FontFamily="Consolas"
|
|
FontSize="12"
|
|
Focusable="False"
|
|
IsTabStop="False"
|
|
HorizontalAlignment="Stretch" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
Margin="0,16,0,0"
|
|
Spacing="4">
|
|
<TextBlock Text="{Binding PrivacyPolicyHintPrefix}"
|
|
FontSize="13"
|
|
VerticalAlignment="Center" />
|
|
<Button Content="{Binding ViewPrivacyPolicyText}"
|
|
Command="{Binding ViewPrivacyPolicyCommand}"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Padding="0"
|
|
FontSize="13"
|
|
Foreground="{DynamicResource SystemAccentColor}"
|
|
Cursor="Hand">
|
|
<Button.Styles>
|
|
<Style Selector="Button:pointerover /template/ ContentPresenter">
|
|
<Setter Property="TextBlock.Foreground" Value="{DynamicResource SystemAccentColorDark1}" />
|
|
</Style>
|
|
</Button.Styles>
|
|
</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</UserControl>
|