mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
114 lines
6.2 KiB
XML
114 lines
6.2 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="320"
|
|
x:Class="LanMountainDesktop.Views.Components.IfengNewsSettingsWindow">
|
|
<Border Background="{DynamicResource AdaptiveBackgroundBrush}"
|
|
Padding="16">
|
|
<Grid RowDefinitions="Auto,Auto,*"
|
|
RowSpacing="10">
|
|
<TextBlock x:Name="TitleTextBlock"
|
|
Text="iFeng news settings"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
|
|
<TextBlock x:Name="DescriptionTextBlock"
|
|
Grid.Row="1"
|
|
Text="Configure channel, auto refresh and refresh interval."
|
|
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="ChannelLabelTextBlock"
|
|
Text="News channel"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
<ComboBox x:Name="ChannelComboBox"
|
|
HorizontalAlignment="Stretch"
|
|
MinWidth="0"
|
|
SelectionChanged="OnChannelSelectionChanged">
|
|
<ComboBoxItem x:Name="ChannelComprehensiveItem"
|
|
Tag="Comprehensive"
|
|
Content="Comprehensive" />
|
|
<ComboBoxItem x:Name="ChannelMainlandItem"
|
|
Tag="Mainland"
|
|
Content="China Mainland" />
|
|
<ComboBoxItem x:Name="ChannelTaiwanItem"
|
|
Tag="Taiwan"
|
|
Content="Taiwan" />
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<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="Frequency5mItem"
|
|
Tag="5"
|
|
Content="5 min" />
|
|
<ComboBoxItem x:Name="Frequency10mItem"
|
|
Tag="10"
|
|
Content="10 min" />
|
|
<ComboBoxItem x:Name="Frequency15mItem"
|
|
Tag="15"
|
|
Content="15 min" />
|
|
<ComboBoxItem x:Name="Frequency20mItem"
|
|
Tag="20"
|
|
Content="20 min" />
|
|
<ComboBoxItem x:Name="Frequency30mItem"
|
|
Tag="30"
|
|
Content="30 min" />
|
|
<ComboBoxItem x:Name="Frequency1hItem"
|
|
Tag="60"
|
|
Content="1 hour" />
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|