mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 00:54:26 +08:00
0.2.8
天气组件、倒计时组件微调。引入浏览器组件。
This commit is contained in:
@@ -12,34 +12,46 @@
|
||||
CornerRadius="34"
|
||||
ClipToBounds="True"
|
||||
Padding="14">
|
||||
<Viewbox Stretch="Uniform">
|
||||
<Grid x:Name="LayoutRoot"
|
||||
Width="300"
|
||||
Height="300"
|
||||
RowDefinitions="Auto,Auto,Auto,Auto,Auto"
|
||||
RowSpacing="8">
|
||||
<TextBlock x:Name="TitleTextBlock"
|
||||
Grid.Row="0"
|
||||
Text="Holiday countdown"
|
||||
FontSize="24"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="#61697C"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,10,0,0" />
|
||||
<Grid x:Name="LayoutRoot"
|
||||
RowDefinitions="1.1*,2.3*,0.62*,0.78*,0.95*"
|
||||
RowSpacing="8">
|
||||
<TextBlock x:Name="TitleTextBlock"
|
||||
Grid.Row="0"
|
||||
Text="Holiday countdown"
|
||||
FontSize="24"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="#61697C"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Bottom"
|
||||
TextAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
MaxLines="1"
|
||||
Margin="8,0,8,0" />
|
||||
|
||||
<Viewbox Grid.Row="1"
|
||||
Stretch="Uniform"
|
||||
StretchDirection="DownOnly"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Margin="8,0,8,0">
|
||||
<TextBlock x:Name="CountTextBlock"
|
||||
Grid.Row="1"
|
||||
Text="0"
|
||||
FontFeatures="tnum"
|
||||
FontSize="120"
|
||||
FontSize="132"
|
||||
FontWeight="Bold"
|
||||
Foreground="#0A0A0A"
|
||||
HorizontalAlignment="Center" />
|
||||
HorizontalAlignment="Center"
|
||||
TextAlignment="Center" />
|
||||
</Viewbox>
|
||||
|
||||
<Canvas Grid.Row="2"
|
||||
Width="260"
|
||||
Height="40"
|
||||
HorizontalAlignment="Center">
|
||||
<Viewbox Grid.Row="2"
|
||||
Stretch="Uniform"
|
||||
StretchDirection="DownOnly"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Margin="14,0,14,0">
|
||||
<Canvas Width="260"
|
||||
Height="40">
|
||||
<Path Data="M 10,16 C 68,11 192,11 250,16"
|
||||
Stroke="#1A73F0"
|
||||
StrokeThickness="12"
|
||||
@@ -60,38 +72,46 @@
|
||||
Canvas.Top="27.5"
|
||||
Opacity="0.35" />
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
|
||||
<Grid Grid.Row="3"
|
||||
ColumnDefinitions="*,Auto,*"
|
||||
Margin="8,0,8,0"
|
||||
VerticalAlignment="Center">
|
||||
<Border Grid.Column="0"
|
||||
Height="2"
|
||||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
Background="#B0B9CB" />
|
||||
<TextBlock x:Name="DayUnitTextBlock"
|
||||
Grid.Column="1"
|
||||
Text="Days"
|
||||
FontSize="56"
|
||||
Foreground="#7D869A"
|
||||
FontWeight="Medium"
|
||||
VerticalAlignment="Center" />
|
||||
<Border Grid.Column="2"
|
||||
Height="2"
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Background="#B0B9CB" />
|
||||
</Grid>
|
||||
|
||||
<TextBlock x:Name="DateTextBlock"
|
||||
Grid.Row="4"
|
||||
Text="2024-10-01"
|
||||
FontSize="34"
|
||||
Foreground="#596177"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,2,0,8" />
|
||||
<Grid Grid.Row="3"
|
||||
ColumnDefinitions="*,Auto,*"
|
||||
Margin="8,0,8,0"
|
||||
VerticalAlignment="Center">
|
||||
<Border Grid.Column="0"
|
||||
Height="2"
|
||||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
Background="#B0B9CB" />
|
||||
<TextBlock x:Name="DayUnitTextBlock"
|
||||
Grid.Column="1"
|
||||
Text="Days"
|
||||
FontSize="52"
|
||||
Foreground="#7D869A"
|
||||
FontWeight="Medium"
|
||||
TextAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
MaxLines="1"
|
||||
VerticalAlignment="Center" />
|
||||
<Border Grid.Column="2"
|
||||
Height="2"
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Background="#B0B9CB" />
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
|
||||
<TextBlock x:Name="DateTextBlock"
|
||||
Grid.Row="4"
|
||||
Text="2024-10-01"
|
||||
FontSize="32"
|
||||
Foreground="#596177"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
TextWrapping="NoWrap"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
MaxLines="1"
|
||||
Margin="8,0,8,0" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user