fix: 修复启动隐藏与深色主题界面问题
修复托盘退出卡死、启动隐藏闪窗和隐藏实例再次启动无法唤醒的问题。 统一深色主题资源与控件模板,补齐卡片、内置图标、右键菜单和弹窗背景样式。 验证:dotnet build PersonalToolbox.sln;dotnet run --project tests\PersonalToolbox.Tests\PersonalToolbox.Tests.csproj。
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
<Window x:Class="PersonalToolbox.Views.ToolEditorWindow"
|
||||
<Window x:Class="PersonalToolbox.Views.ToolEditorWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="编辑工具"
|
||||
Width="560"
|
||||
Height="620"
|
||||
MinWidth="520"
|
||||
Background="{DynamicResource AppBackgroundBrush}"
|
||||
Foreground="{DynamicResource PrimaryTextBrush}"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Grid Margin="18">
|
||||
<Grid Margin="18"
|
||||
Background="{DynamicResource AppBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -158,17 +161,18 @@
|
||||
<Border Width="42"
|
||||
Height="30"
|
||||
CornerRadius="6"
|
||||
Background="{StaticResource IconBackgroundBrush}">
|
||||
Background="{DynamicResource IconBackgroundBrush}">
|
||||
<TextBlock x:Name="IconPreviewTextBlock"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="{StaticResource PrimaryBrush}" />
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="18"
|
||||
Foreground="{DynamicResource PrimaryBrush}" />
|
||||
</Border>
|
||||
<TextBlock x:Name="IconNameTextBlock"
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{StaticResource SecondaryTextBrush}" />
|
||||
Foreground="{DynamicResource SecondaryTextBrush}" />
|
||||
<Button Content="选择图标"
|
||||
Width="88"
|
||||
Margin="12,0,0,0"
|
||||
|
||||
Reference in New Issue
Block a user