Files
LanMountainDesktop/LanMountainDesktop/Views/FusedDesktopComponentLibraryWindow.axaml
2026-05-25 10:16:00 +08:00

62 lines
2.6 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:LanMountainDesktop.Views"
xmlns:fi="using:FluentIcons.Avalonia"
x:Class="LanMountainDesktop.Views.FusedDesktopComponentLibraryWindow"
Width="740"
Height="500"
MinWidth="600"
MinHeight="440"
CanResize="True"
WindowStartupLocation="CenterScreen"
WindowDecorations="None"
ExtendClientAreaToDecorationsHint="True"
Background="Transparent"
Title="Add Component">
<Grid x:Name="RootGrid"
Classes="settings-scope"
Background="Transparent">
<Border x:Name="PanelShell"
Classes="surface-translucent-strong"
Width="720"
MaxWidth="720"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="0"
CornerRadius="{DynamicResource DesignCornerRadiusLg}"
ClipToBounds="True">
<Grid RowDefinitions="Auto,*">
<Border Height="64"
Padding="24,0,24,0"
Background="Transparent"
PointerPressed="OnWindowTitleBarPointerPressed">
<Grid ColumnDefinitions="*,Auto">
<TextBlock VerticalAlignment="Center"
FontSize="22"
FontWeight="SemiBold"
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
Text="添加小组件" />
<Button Grid.Column="1"
Width="32"
Height="32"
Padding="0"
Background="Transparent"
BorderThickness="0"
Click="OnCloseClick"
VerticalAlignment="Center">
<fi:FluentIcon Icon="Dismiss"
IconVariant="Regular"
FontSize="16" />
</Button>
</Grid>
</Border>
<controls:FusedDesktopComponentLibraryControl x:Name="LibraryControl"
Grid.Row="1"
Margin="22,0,22,22" />
</Grid>
</Border>
</Grid>
</Window>