mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
122 lines
5.3 KiB
XML
122 lines
5.3 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:fi="using:FluentIcons.Avalonia"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="280"
|
|
d:DesignHeight="280"
|
|
x:Class="LanMountainDesktop.Views.Components.RemovableStorageWidget">
|
|
|
|
<Border x:Name="RootBorder"
|
|
Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
|
BorderBrush="{DynamicResource AdaptiveButtonBorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="{DynamicResource DesignCornerRadiusComponent}"
|
|
Padding="14,12"
|
|
ClipToBounds="True">
|
|
<Grid>
|
|
<Border x:Name="AccentOrb"
|
|
Width="132"
|
|
Height="132"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Margin="0,-48,-48,0"
|
|
CornerRadius="66"
|
|
IsHitTestVisible="False" />
|
|
|
|
<Border x:Name="AccentGlow"
|
|
Height="76"
|
|
Margin="-18,0,-18,-34"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
CornerRadius="38"
|
|
Opacity="0.42"
|
|
IsHitTestVisible="False" />
|
|
|
|
<Grid x:Name="LayoutGrid"
|
|
RowDefinitions="Auto,*,Auto,Auto"
|
|
RowSpacing="10">
|
|
<Grid x:Name="HeaderGrid"
|
|
ColumnDefinitions="Auto,*"
|
|
ColumnSpacing="12">
|
|
<Border x:Name="IconBadge"
|
|
Width="44"
|
|
Height="44"
|
|
CornerRadius="22"
|
|
VerticalAlignment="Top">
|
|
<fi:FluentIcon x:Name="DriveIcon"
|
|
Icon="UsbStick"
|
|
IconVariant="Regular"
|
|
FontSize="24"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
|
|
<StackPanel x:Name="HeaderTextStack"
|
|
Grid.Column="1"
|
|
Spacing="2"
|
|
VerticalAlignment="Center">
|
|
<TextBlock x:Name="DriveNameTextBlock"
|
|
FontWeight="SemiBold"
|
|
TextWrapping="NoWrap"
|
|
TextTrimming="CharacterEllipsis" />
|
|
<TextBlock x:Name="DriveDetailTextBlock"
|
|
TextWrapping="NoWrap"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<TextBlock x:Name="StatusTextBlock"
|
|
Grid.Row="1"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="Wrap" />
|
|
|
|
<Button x:Name="OpenButton"
|
|
Grid.Row="2"
|
|
Height="42"
|
|
Padding="14,0"
|
|
CornerRadius="999"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Center"
|
|
Click="OnOpenClick">
|
|
<Grid ColumnDefinitions="Auto,*"
|
|
ColumnSpacing="8">
|
|
<fi:FluentIcon x:Name="OpenButtonIcon"
|
|
Icon="OpenFolder"
|
|
IconVariant="Regular"
|
|
FontSize="16"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock x:Name="OpenButtonTextBlock"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
VerticalAlignment="Center" />
|
|
</Grid>
|
|
</Button>
|
|
|
|
<Button x:Name="EjectButton"
|
|
Grid.Row="3"
|
|
Height="42"
|
|
Padding="14,0"
|
|
CornerRadius="999"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Center"
|
|
Click="OnEjectClick">
|
|
<Grid ColumnDefinitions="Auto,*"
|
|
ColumnSpacing="8">
|
|
<fi:FluentIcon x:Name="EjectButtonIcon"
|
|
Icon="ArrowEject"
|
|
IconVariant="Regular"
|
|
FontSize="16"
|
|
VerticalAlignment="Center" />
|
|
<TextBlock x:Name="EjectButtonTextBlock"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
VerticalAlignment="Center" />
|
|
</Grid>
|
|
</Button>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|