mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
116 lines
5.5 KiB
XML
116 lines
5.5 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"
|
|
xmlns:local="using:LanMountainDesktop.Views.Components"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="640"
|
|
d:DesignHeight="320"
|
|
x:Class="LanMountainDesktop.Views.Components.StudyNoiseCurveWidget">
|
|
<Border x:Name="RootBorder"
|
|
Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
|
BorderBrush="{DynamicResource AdaptiveButtonBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="{DynamicResource DesignCornerRadiusComponent}"
|
|
Padding="14,12">
|
|
<Grid RowDefinitions="Auto,*"
|
|
RowSpacing="8">
|
|
<Grid Grid.Row="0"
|
|
ColumnDefinitions="Auto,*"
|
|
ColumnSpacing="8">
|
|
<Border x:Name="StatusBadgeBorder"
|
|
Padding="8,3"
|
|
CornerRadius="{DynamicResource DesignCornerRadiusXs}"
|
|
Background="#7A0E2235"
|
|
BorderBrush="#88FFFFFF"
|
|
BorderThickness="1"
|
|
VerticalAlignment="Center">
|
|
<TextBlock x:Name="StatusTextBlock"
|
|
Text="Quiet"
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
MaxLines="1"
|
|
TextTrimming="CharacterEllipsis"
|
|
Foreground="#FFFFFFFF"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
|
|
<TextBlock x:Name="RealtimeValueTextBlock"
|
|
Grid.Column="1"
|
|
Text="-- dB"
|
|
HorizontalAlignment="Right"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
|
|
VerticalAlignment="Center" />
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1"
|
|
RowDefinitions="*,Auto"
|
|
ColumnDefinitions="Auto,*"
|
|
RowSpacing="4"
|
|
ColumnSpacing="6">
|
|
<Grid Grid.Row="0"
|
|
Grid.Column="0"
|
|
RowDefinitions="Auto,*,*,*,Auto"
|
|
VerticalAlignment="Stretch">
|
|
<TextBlock x:Name="YTopTextBlock"
|
|
Grid.Row="0"
|
|
Text="100"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
<TextBlock x:Name="YUpperTextBlock"
|
|
Grid.Row="1"
|
|
Text="80"
|
|
VerticalAlignment="Center"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
<TextBlock x:Name="YMiddleTextBlock"
|
|
Grid.Row="2"
|
|
Text="60"
|
|
VerticalAlignment="Center"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
<TextBlock x:Name="YLowerTextBlock"
|
|
Grid.Row="3"
|
|
Text="40"
|
|
VerticalAlignment="Center"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
<TextBlock x:Name="YBottomTextBlock"
|
|
Grid.Row="4"
|
|
Text="20"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
</Grid>
|
|
|
|
<local:StudyNoiseCurveChartControl x:Name="ChartControl"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
MinHeight="64" />
|
|
|
|
<Grid Grid.Row="1"
|
|
Grid.Column="1"
|
|
ColumnDefinitions="Auto,*,Auto">
|
|
<TextBlock x:Name="XLeftTextBlock"
|
|
Text="-12s"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
<TextBlock x:Name="XCenterTextBlock"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Center"
|
|
Text="-6s"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
<TextBlock x:Name="XRightTextBlock"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Right"
|
|
Text="Now"
|
|
FontSize="10"
|
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}" />
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|