mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 17:24:27 +08:00
fix.我又改了一下融合桌面的设置窗口。
This commit is contained in:
@@ -111,26 +111,30 @@
|
|||||||
<ScrollViewer Grid.Column="1"
|
<ScrollViewer Grid.Column="1"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
HorizontalScrollBarVisibility="Disabled">
|
HorizontalScrollBarVisibility="Disabled">
|
||||||
<StackPanel Margin="24,16,20,16"
|
<StackPanel Margin="16,8,12,8"
|
||||||
Spacing="0">
|
Spacing="0">
|
||||||
|
|
||||||
<!-- 有选中组件时的显示 -->
|
<!-- 有选中组件时的显示 -->
|
||||||
<Panel IsVisible="{Binding SelectedComponent, Converter={x:Static converters:ObjectConverters.IsNotNull}}">
|
<Panel IsVisible="{Binding SelectedComponent, Converter={x:Static converters:ObjectConverters.IsNotNull}}">
|
||||||
|
|
||||||
<!-- 组件标题 - 在右侧内容区顶部 -->
|
<!-- 组件展示面板 - 有独立背景色,与窗口背景形成层级分界 -->
|
||||||
|
<Border Classes="surface-translucent-panel"
|
||||||
|
CornerRadius="{DynamicResource DesignCornerRadiusLg}"
|
||||||
|
Padding="20">
|
||||||
|
<StackPanel Spacing="16">
|
||||||
|
<!-- 组件标题 -->
|
||||||
<TextBlock FontSize="28"
|
<TextBlock FontSize="28"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
|
Foreground="{DynamicResource AdaptiveTextPrimaryBrush}"
|
||||||
Text="{Binding SelectedComponent.DisplayName}"
|
Text="{Binding SelectedComponent.DisplayName}"/>
|
||||||
Margin="0,0,0,16"/>
|
|
||||||
|
|
||||||
<!-- 固定大小的预览卡片 - 与窗口背景有色差 -->
|
<!-- 固定大小的预览卡片 -->
|
||||||
<Border CornerRadius="{DynamicResource DesignCornerRadiusSm}"
|
<Border CornerRadius="{DynamicResource DesignCornerRadiusSm}"
|
||||||
Background="{DynamicResource AdaptiveSurfaceRaisedBrush}"
|
Background="{DynamicResource AdaptiveSurfaceBaseBrush}"
|
||||||
BorderBrush="{DynamicResource AdaptiveGlassPanelBorderBrush}"
|
BorderBrush="{DynamicResource AdaptiveGlassPanelBorderBrush}"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
Width="420"
|
Width="420"
|
||||||
Height="320"
|
Height="300"
|
||||||
HorizontalAlignment="Center">
|
HorizontalAlignment="Center">
|
||||||
<Grid Margin="16">
|
<Grid Margin="16">
|
||||||
<!-- 预览图片 -->
|
<!-- 预览图片 -->
|
||||||
@@ -184,11 +188,10 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<!-- "添加小组件"按钮 - 在预览卡片正下方居中,使用主题强调色 -->
|
<!-- "添加小组件"按钮 - 在面板内居中,使用主题强调色 -->
|
||||||
<Button HorizontalAlignment="Center"
|
<Button HorizontalAlignment="Center"
|
||||||
Classes="accent"
|
Classes="accent"
|
||||||
Padding="24,10"
|
Padding="24,10"
|
||||||
Margin="0,16,0,0"
|
|
||||||
Tag="{Binding SelectedComponent.ComponentId}"
|
Tag="{Binding SelectedComponent.ComponentId}"
|
||||||
Click="OnAddComponentClick">
|
Click="OnAddComponentClick">
|
||||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||||
@@ -196,6 +199,8 @@
|
|||||||
<TextBlock Text="添加小组件" FontWeight="SemiBold"/>
|
<TextBlock Text="添加小组件" FontWeight="SemiBold"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<!-- 空状态 -->
|
<!-- 空状态 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user