mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 08:04:26 +08:00
58 lines
2.6 KiB
XML
58 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="860" Height="620"
|
|
MinWidth="600" MinHeight="500"
|
|
WindowStartupLocation="CenterScreen"
|
|
SystemDecorations="Full"
|
|
ExtendClientAreaToDecorationsHint="True"
|
|
ExtendClientAreaChromeHints="NoChrome"
|
|
ExtendClientAreaTitleBarHeightHint="-1"
|
|
Background="Transparent"
|
|
TransparencyLevelHint="Mica"
|
|
Title="融合桌面组件库">
|
|
|
|
<Panel>
|
|
<!-- 背景磨砂效果 -->
|
|
<Border Background="{DynamicResource AdaptiveSurfaceLowBrush}"
|
|
Opacity="0.85" />
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
|
<!-- 自定义标题栏 -->
|
|
<Border Background="Transparent"
|
|
IsHitTestVisible="True"
|
|
Padding="20,16">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<StackPanel Spacing="6" VerticalAlignment="Center">
|
|
<TextBlock Text="融合桌面组件库"
|
|
FontWeight="SemiBold"
|
|
FontSize="20"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
<TextBlock Text="将精美组件放置在您的系统桌面上(负一屏)"
|
|
Opacity="0.6"
|
|
FontSize="13"
|
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}" />
|
|
</StackPanel>
|
|
|
|
<Button Grid.Column="1"
|
|
Classes="accent"
|
|
Width="36" Height="36"
|
|
Padding="0"
|
|
CornerRadius="18"
|
|
BorderThickness="0"
|
|
Background="{DynamicResource AdaptiveButtonHoverBackgroundBrush}"
|
|
Click="OnCloseClick">
|
|
<fi:SymbolIcon Symbol="Dismiss" FontSize="18" />
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- 组件库控件 -->
|
|
<controls:FusedDesktopComponentLibraryControl x:Name="LibraryControl"
|
|
Grid.Row="1" />
|
|
</Grid>
|
|
</Panel>
|
|
</Window>
|