mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 08:04:26 +08:00
changed.调整了桌面组件库的UI
This commit is contained in:
@@ -108,7 +108,7 @@
|
|||||||
Click="OnFindMoreComponentsClick">
|
Click="OnFindMoreComponentsClick">
|
||||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||||
<fi:FluentIcon Icon="Globe" IconVariant="Regular" FontSize="14"/>
|
<fi:FluentIcon Icon="Globe" IconVariant="Regular" FontSize="14"/>
|
||||||
<TextBlock Text="查找更多组件" FontSize="12"/>
|
<TextBlock Text="查找更多小组件" FontSize="12"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -132,6 +132,7 @@
|
|||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
|
||||||
Text="{Binding SelectedComponent.DisplayName}"
|
Text="{Binding SelectedComponent.DisplayName}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
TextTrimming="CharacterEllipsis"/>
|
TextTrimming="CharacterEllipsis"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1"
|
<TextBlock Grid.Row="1"
|
||||||
@@ -141,6 +142,7 @@
|
|||||||
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}"
|
Foreground="{DynamicResource AdaptiveTextSecondaryBrush}"
|
||||||
Opacity="0.82"
|
Opacity="0.82"
|
||||||
Text="{Binding SelectedComponent.Description}"
|
Text="{Binding SelectedComponent.Description}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
TextWrapping="Wrap"
|
TextWrapping="Wrap"
|
||||||
TextTrimming="CharacterEllipsis"/>
|
TextTrimming="CharacterEllipsis"/>
|
||||||
|
|
||||||
@@ -176,7 +178,7 @@
|
|||||||
Click="OnAddComponentClick">
|
Click="OnAddComponentClick">
|
||||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||||
<fi:FluentIcon Icon="Add" IconVariant="Regular" FontSize="16"/>
|
<fi:FluentIcon Icon="Add" IconVariant="Regular" FontSize="16"/>
|
||||||
<TextBlock Text="添加" FontWeight="SemiBold"/>
|
<TextBlock Text="添加小组件" FontWeight="SemiBold"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<Window xmlns="https://github.com/avaloniaui"
|
<Window xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:controls="using:LanMountainDesktop.Views"
|
xmlns:controls="using:LanMountainDesktop.Views"
|
||||||
|
xmlns:fi="using:FluentIcons.Avalonia"
|
||||||
x:Class="LanMountainDesktop.Views.FusedDesktopComponentLibraryWindow"
|
x:Class="LanMountainDesktop.Views.FusedDesktopComponentLibraryWindow"
|
||||||
Width="740"
|
Width="740"
|
||||||
Height="500"
|
Height="500"
|
||||||
@@ -25,38 +26,35 @@
|
|||||||
Padding="0"
|
Padding="0"
|
||||||
CornerRadius="{DynamicResource DesignCornerRadiusLg}"
|
CornerRadius="{DynamicResource DesignCornerRadiusLg}"
|
||||||
ClipToBounds="True">
|
ClipToBounds="True">
|
||||||
<Grid RowDefinitions="Auto,*,Auto">
|
<Grid RowDefinitions="Auto,*">
|
||||||
<Border Height="64"
|
<Border Height="64"
|
||||||
Padding="24,0,24,0"
|
Padding="24,0,24,0"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
PointerPressed="OnWindowTitleBarPointerPressed">
|
PointerPressed="OnWindowTitleBarPointerPressed">
|
||||||
<TextBlock VerticalAlignment="Center"
|
<Grid ColumnDefinitions="*,Auto">
|
||||||
FontSize="22"
|
<TextBlock VerticalAlignment="Center"
|
||||||
FontWeight="SemiBold"
|
FontSize="22"
|
||||||
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
|
FontWeight="SemiBold"
|
||||||
Text="添加小组件" />
|
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>
|
</Border>
|
||||||
|
|
||||||
<controls:FusedDesktopComponentLibraryControl x:Name="LibraryControl"
|
<controls:FusedDesktopComponentLibraryControl x:Name="LibraryControl"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Margin="22,0,22,8" />
|
Margin="22,0,22,22" />
|
||||||
|
|
||||||
<Border Grid.Row="2"
|
|
||||||
Padding="24,16,24,22"
|
|
||||||
BorderBrush="{DynamicResource AdaptiveGlassPanelBorderBrush}"
|
|
||||||
BorderThickness="0,1,0,0">
|
|
||||||
<Button x:Name="CloseWindowButton"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
MinHeight="32"
|
|
||||||
Padding="16,7"
|
|
||||||
Background="{DynamicResource AdaptiveButtonBackgroundBrush}"
|
|
||||||
BorderThickness="0"
|
|
||||||
Click="OnCloseClick">
|
|
||||||
<TextBlock HorizontalAlignment="Center"
|
|
||||||
FontSize="14"
|
|
||||||
Text="关闭" />
|
|
||||||
</Button>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user