mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 08:04:26 +08:00
88 lines
4.7 KiB
XML
88 lines
4.7 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"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="420"
|
|
d:DesignHeight="300"
|
|
x:Class="LanMountainDesktop.Views.Components.WeatherWidgetSettingsWindow">
|
|
<Border Background="{DynamicResource AdaptiveBackgroundBrush}"
|
|
Padding="16">
|
|
<Grid RowDefinitions="Auto,Auto,*"
|
|
RowSpacing="10">
|
|
<TextBlock x:Name="TitleTextBlock"
|
|
Text="Weather widget settings"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
|
|
<TextBlock x:Name="DescriptionTextBlock"
|
|
Grid.Row="1"
|
|
Text="Configure auto refresh and refresh interval for all weather widgets."
|
|
FontSize="12"
|
|
TextWrapping="Wrap"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
|
|
<ScrollViewer Grid.Row="2"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<StackPanel Spacing="10"
|
|
Margin="0,0,6,0">
|
|
<Border Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
|
BorderBrush="{DynamicResource AdaptiveButtonBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="12"
|
|
Padding="12">
|
|
<StackPanel Spacing="6">
|
|
<TextBlock x:Name="AutoRefreshLabelTextBlock"
|
|
Text="Auto refresh"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
<CheckBox x:Name="AutoRefreshCheckBox"
|
|
Content="Enable auto refresh"
|
|
Checked="OnAutoRefreshChanged"
|
|
Unchecked="OnAutoRefreshChanged" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border x:Name="FrequencyCardBorder"
|
|
Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
|
BorderBrush="{DynamicResource AdaptiveButtonBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="12"
|
|
Padding="12"
|
|
IsVisible="False">
|
|
<StackPanel Spacing="6">
|
|
<TextBlock x:Name="FrequencyLabelTextBlock"
|
|
Text="Refresh interval"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
<ComboBox x:Name="FrequencyComboBox"
|
|
HorizontalAlignment="Stretch"
|
|
MinWidth="0"
|
|
SelectionChanged="OnFrequencySelectionChanged">
|
|
<ComboBoxItem x:Name="Frequency10mItem"
|
|
Tag="10"
|
|
Content="10 min" />
|
|
<ComboBoxItem x:Name="Frequency12mItem"
|
|
Tag="12"
|
|
Content="12 min" />
|
|
<ComboBoxItem x:Name="Frequency15mItem"
|
|
Tag="15"
|
|
Content="15 min" />
|
|
<ComboBoxItem x:Name="Frequency30mItem"
|
|
Tag="30"
|
|
Content="30 min" />
|
|
<ComboBoxItem x:Name="Frequency1hItem"
|
|
Tag="60"
|
|
Content="1 hour" />
|
|
<ComboBoxItem x:Name="Frequency3hItem"
|
|
Tag="180"
|
|
Content="3 hours" />
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|