2026-03-04 11:28:59 +08:00
|
|
|
<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">
|
2026-03-04 13:04:54 +08:00
|
|
|
<Grid x:Name="LayoutGrid"
|
|
|
|
|
ColumnDefinitions="*,Auto"
|
2026-03-04 11:28:59 +08:00
|
|
|
ColumnSpacing="10">
|
2026-03-04 13:04:54 +08:00
|
|
|
<StackPanel x:Name="LeftStatusStack"
|
|
|
|
|
Spacing="2"
|
2026-03-04 11:28:59 +08:00
|
|
|
VerticalAlignment="Center">
|
|
|
|
|
<TextBlock x:Name="StatusTitleTextBlock"
|
2026-03-04 13:04:54 +08:00
|
|
|
Text="Environment"
|
2026-03-04 11:28:59 +08:00
|
|
|
FontSize="11"
|
2026-03-04 13:04:54 +08:00
|
|
|
MaxLines="1"
|
|
|
|
|
TextTrimming="CharacterEllipsis"
|
2026-03-04 11:28:59 +08:00
|
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
|
|
|
<TextBlock x:Name="StatusValueTextBlock"
|
2026-03-04 13:04:54 +08:00
|
|
|
Text="Quiet"
|
2026-03-04 11:28:59 +08:00
|
|
|
FontSize="20"
|
|
|
|
|
FontWeight="SemiBold"
|
2026-03-04 13:04:54 +08:00
|
|
|
MaxLines="1"
|
|
|
|
|
TextTrimming="CharacterEllipsis"
|
2026-03-04 11:28:59 +08:00
|
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1"
|
|
|
|
|
Spacing="1"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
|
<TextBlock x:Name="NoiseValueTextBlock"
|
|
|
|
|
Text="--"
|
|
|
|
|
FontSize="22"
|
|
|
|
|
FontWeight="SemiBold"
|
2026-03-04 13:04:54 +08:00
|
|
|
MaxLines="1"
|
|
|
|
|
TextTrimming="CharacterEllipsis"
|
2026-03-04 11:28:59 +08:00
|
|
|
TextAlignment="Right"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
|
|
|
<TextBlock x:Name="NoiseSubValueTextBlock"
|
|
|
|
|
Text=""
|
|
|
|
|
FontSize="12"
|
2026-03-04 13:04:54 +08:00
|
|
|
MaxLines="1"
|
|
|
|
|
TextTrimming="CharacterEllipsis"
|
2026-03-04 11:28:59 +08:00
|
|
|
TextAlignment="Right"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}"
|
|
|
|
|
IsVisible="False" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</UserControl>
|