mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
0.3.0
自习组件加入
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<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="300"
|
||||
d:DesignHeight="150"
|
||||
x:Class="LanMontainDesktop.Views.Components.StudyEnvironmentWidget">
|
||||
<Border x:Name="RootBorder"
|
||||
Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
||||
BorderBrush="{DynamicResource AdaptiveButtonBorderBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="18"
|
||||
Padding="14,10">
|
||||
<Grid ColumnDefinitions="*,Auto"
|
||||
ColumnSpacing="10">
|
||||
<StackPanel Spacing="2"
|
||||
VerticalAlignment="Center">
|
||||
<TextBlock x:Name="StatusTitleTextBlock"
|
||||
Text="环境状态"
|
||||
FontSize="11"
|
||||
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
||||
<TextBlock x:Name="StatusValueTextBlock"
|
||||
Text="安静"
|
||||
FontSize="20"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1"
|
||||
Spacing="1"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center">
|
||||
<TextBlock x:Name="NoiseValueTextBlock"
|
||||
Text="--"
|
||||
FontSize="22"
|
||||
FontWeight="SemiBold"
|
||||
TextAlignment="Right"
|
||||
HorizontalAlignment="Right"
|
||||
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
||||
<TextBlock x:Name="NoiseSubValueTextBlock"
|
||||
Text=""
|
||||
FontSize="12"
|
||||
TextAlignment="Right"
|
||||
HorizontalAlignment="Right"
|
||||
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}"
|
||||
IsVisible="False" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user