From 9fb18e020e6da4fa5986ebf4436a270d42e6542d Mon Sep 17 00:00:00 2001
From: PrefacedCorg <1876568293@qq.com>
Date: Fri, 1 May 2026 23:03:20 +0800
Subject: [PATCH] =?UTF-8?q?```=20fix(ui):=20=E4=BF=AE=E5=A4=8D=E7=94=BB?=
=?UTF-8?q?=E5=B8=83=E7=95=8C=E9=9D=A2=E5=85=83=E7=B4=A0=E5=B8=83=E5=B1=80?=
=?UTF-8?q?=E5=92=8C=E9=97=B4=E8=B7=9D=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复背景设置面板的位置偏移问题,调整Margin值从-115,-360,-55,50到-189,-360,-55,50
- 为各个工具面板添加设计时可见性属性(d:Visibility="Visible")以便预览
- 修复多个堆叠面板的Spacing属性,将负值改为正值以正确显示元素间距
- 在各个工具菜单区域添加中文注释标识(如, 等)
- 调整了工具面板中的Spacing属性从-2到2,解决元素重叠问题
```
---
Ink Canvas/MainWindow.xaml | 347 ++++++++++++++++++-------------------
1 file changed, 168 insertions(+), 179 deletions(-)
diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml
index a91db569..89a6f0ab 100644
--- a/Ink Canvas/MainWindow.xaml
+++ b/Ink Canvas/MainWindow.xaml
@@ -1089,137 +1089,137 @@
Label="{i18n:I18n Key=Board_Background}"
IconGeometry="F0 M24,24z M0,0z M4.71815,3.98345C6.64142,2.23541 9.19629,1.17001 12,1.17001 17.9812,1.17001 22.83,6.01877 22.83,12 22.83,17.9813 17.9812,22.83 12,22.83 11.6262,22.83 11.2568,22.8111 10.8927,22.7741 5.8167,22.2586 1.77699,18.2377 1.2325,13.1703 1.22536,13.1039 1.21882,13.0373 1.21289,12.9705 1.20871,12.9234 1.20483,12.8762 1.20125,12.8289 1.18054,12.5553 1.17,12.2789 1.17,12 1.17,9.41057 2.07878,7.03339 3.59479,5.17001 3.9391,4.74681 4.31473,4.35011 4.71815,3.98345z M12,20.83C16.8767,20.83 20.83,16.8767 20.83,12 20.83,7.12334 16.8767,3.17001 12,3.17001L12,20.83z"
ButtonMouseUp="BoardChangeBackgroundColorBtn_MouseUp" />
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ Foreground="{DynamicResource TextForeground}"
+ FontSize="10" FontWeight="Bold"
+ HorizontalAlignment="Center"
+ Margin="0,4,0,8" />
+ Width="60" Height="30"
+ Background="#2563eb"
+ CornerRadius="4"
+ Margin="0,0,8,0"
+ MouseUp="WhiteboardModeBtn_MouseUp">
+ Foreground="White"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center" />
+ Width="60" Height="30"
+ Background="LightGray"
+ CornerRadius="4"
+ MouseUp="BlackboardModeBtn_MouseUp">
+ Foreground="Black"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center" />
+ Background="{DynamicResource SettingsPageBorderBrush}"
+ Margin="0,12,0,12" />
+ Foreground="{DynamicResource TextForeground}"
+ FontSize="10" FontWeight="Bold"
+ HorizontalAlignment="Center"
+ Margin="0,4,0,8" />
+ Width="100" Height="40"
+ BorderThickness="1"
+ BorderBrush="{DynamicResource SettingsPageBorderBrush}"
+ Background="White"
+ CornerRadius="4"
+ Margin="0,0,0,10"
+ HorizontalAlignment="Center" />
-
+ Foreground="{DynamicResource TextForeground}" />
+
+ Text="255" Width="30"
+ VerticalAlignment="Center"
+ TextAlignment="Right"
+ Foreground="{DynamicResource TextForeground}" />
-
+ Foreground="{DynamicResource TextForeground}" />
+
+ Text="255" Width="30"
+ VerticalAlignment="Center"
+ TextAlignment="Right"
+ Foreground="{DynamicResource TextForeground}" />
-
+ Foreground="{DynamicResource TextForeground}" />
+
+ Text="255" Width="30"
+ VerticalAlignment="Center"
+ TextAlignment="Right"
+ Foreground="{DynamicResource TextForeground}" />
+ Content="应用颜色"
+ Margin="0,10,0,0"
+ Padding="10,5,10,5"
+ Background="#2563eb"
+ Foreground="White"
+ BorderThickness="0"
+ HorizontalAlignment="Center"
+ Click="ApplyBackgroundColorBtn_Click" />
-
-
-
-
+
+
+
+
@@ -1234,18 +1234,11 @@
Label="{i18n:I18n Key=Board_Pen}"
IconGeometry="F1 M24,24z M0,0z M20.4786,1.42438C19.9985,1.23743 19.4847,1.15194 18.9698,1.17319 18.4549,1.19444 17.9499,1.32197 17.4869,1.54789 17.0368,1.76752 16.6358,2.07554 16.3083,2.45361L3.85516,14.9067 9.08243,20.134 21.5311,7.68529C21.9113,7.36382 22.223,6.96912 22.447,6.52438 22.6786,6.06462 22.8113,5.56167 22.8365,5.04763 22.8616,4.5336 22.7787,4.02012 22.593,3.54002 22.4073,3.05994 22.1232,2.62403 21.759,2.25988 21.3949,1.89574 20.9587,1.61132 20.4786,1.42438z M7.28056,21.1605L2.8286,16.7086 1.15912,22.83 7.28056,21.1605z"
ButtonMouseUp="PenIcon_Click" />
+
-
-
-
-
-
-
-
-
-
@@ -1560,17 +1553,10 @@
Label="{i18n:I18n Key=Board_Eraser}"
IconGeometry="F1 M24,24z M0,0z M15.6314,20.7262L22.7921,13.5655C24.3494,12.141,24.2819,9.81776,22.8105,8.34633L16.7793,2.31508C15.3547,0.757753,13.0315,0.825236,11.5601,2.29666L4.38099,9.47574 15.6314,20.7262z M14.2172,22.1404L2.96677,10.89 1.20761,12.6491C-0.34971,14.0737,-0.281711,16.3974,1.18971,17.8688L6.15089,22.83 13.5276,22.83 14.2172,22.1404z"
ButtonMouseUp="BoardEraserIcon_Click" />
+
-
-
-
-
-
-
-
-
-
+
-
+
@@ -1911,6 +1898,7 @@
Label="{i18n:I18n Key=Board_InsertImage}"
IconGeometry="F1 M24,24z M0,0z M19,3H5C3.9,3 3,3.9 3,5v14c0,1.1 0.9,2 2,2h14c1.1,0 2-0.9 2-2V5C21,3.9 20.1,3 19,3zM19,19H5V5h14V19z M17,7c-1.1,0-2,0.9-2,2s0.9,2 2,2 2-0.9 2-2S18.1,7 17,7zM7,17l2.5-3.01 1.96,2.36 2.54-3.21L17,17H7z"
ButtonMouseUp="InsertImageOptions_MouseUp" />
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+