From fe03a2c2c054dd0bd80c22a2ce88582b40879c1d Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Sun, 5 Oct 2025 00:24:23 +0800 Subject: [PATCH] =?UTF-8?q?improve:=E4=B8=BB=E9=A2=98=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ink Canvas/MainWindow_cs/MW_BoardIcons.cs | 21 ++++++++++-------- ...vasForClass.csproj.AssemblyReference.cache | Bin 38044 -> 38181 bytes 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Ink Canvas/MainWindow_cs/MW_BoardIcons.cs b/Ink Canvas/MainWindow_cs/MW_BoardIcons.cs index 37baf9a8..6fd1d1e0 100644 --- a/Ink Canvas/MainWindow_cs/MW_BoardIcons.cs +++ b/Ink Canvas/MainWindow_cs/MW_BoardIcons.cs @@ -166,7 +166,7 @@ namespace Ink_Canvas var titleText = new TextBlock { Text = "背景设置", - Foreground = new SolidColorBrush(Colors.White), + Foreground = (SolidColorBrush)Application.Current.FindResource("FloatBarForeground"), Padding = new Thickness(0, 5, 0, 0), FontSize = 11, FontWeight = FontWeights.Bold, @@ -198,7 +198,7 @@ namespace Ink_Canvas var modeTitle = new TextBlock { Text = "白板模式", - Foreground = new SolidColorBrush(Color.FromRgb(0x17, 0x25, 0x54)), + Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground"), FontSize = 10, FontWeight = FontWeights.Bold, HorizontalAlignment = HorizontalAlignment.Center, @@ -328,7 +328,7 @@ namespace Ink_Canvas var colorTitle = new TextBlock { Text = "背景颜色", - Foreground = new SolidColorBrush(Color.FromRgb(0x17, 0x25, 0x54)), + Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground"), FontSize = 10, FontWeight = FontWeights.Bold, HorizontalAlignment = HorizontalAlignment.Center, @@ -378,7 +378,7 @@ namespace Ink_Canvas // 先创建所有滑块控件 // R滑块和文本框 var rPanel = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(10, 0, 10, 5) }; - var rLabel = new TextBlock { Text = "R:", Width = 20, VerticalAlignment = VerticalAlignment.Center }; + var rLabel = new TextBlock { Text = "R:", Width = 20, VerticalAlignment = VerticalAlignment.Center, Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground") }; var rSlider = new Slider { Minimum = 0, @@ -393,12 +393,13 @@ namespace Ink_Canvas Text = currentBackgroundColor.R.ToString(), Width = 30, VerticalAlignment = VerticalAlignment.Center, - TextAlignment = TextAlignment.Right + TextAlignment = TextAlignment.Right, + Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground") }; // G滑块和文本框 var gPanel = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(10, 0, 10, 5) }; - var gLabel = new TextBlock { Text = "G:", Width = 20, VerticalAlignment = VerticalAlignment.Center }; + var gLabel = new TextBlock { Text = "G:", Width = 20, VerticalAlignment = VerticalAlignment.Center, Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground") }; var gSlider = new Slider { Minimum = 0, @@ -413,12 +414,13 @@ namespace Ink_Canvas Text = currentBackgroundColor.G.ToString(), Width = 30, VerticalAlignment = VerticalAlignment.Center, - TextAlignment = TextAlignment.Right + TextAlignment = TextAlignment.Right, + Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground") }; // B滑块和文本框 var bPanel = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(10, 0, 10, 5) }; - var bLabel = new TextBlock { Text = "B:", Width = 20, VerticalAlignment = VerticalAlignment.Center }; + var bLabel = new TextBlock { Text = "B:", Width = 20, VerticalAlignment = VerticalAlignment.Center, Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground") }; var bSlider = new Slider { Minimum = 0, @@ -433,7 +435,8 @@ namespace Ink_Canvas Text = currentBackgroundColor.B.ToString(), Width = 30, VerticalAlignment = VerticalAlignment.Center, - TextAlignment = TextAlignment.Right + TextAlignment = TextAlignment.Right, + Foreground = (SolidColorBrush)Application.Current.FindResource("TextForeground") }; // 现在添加事件处理程序 diff --git a/Ink Canvas/obj/Debug/net472/InkCanvasForClass.csproj.AssemblyReference.cache b/Ink Canvas/obj/Debug/net472/InkCanvasForClass.csproj.AssemblyReference.cache index c8c2dfbd497b829755ee6211820ad2e2d43c9d13..57d842b8b7d92d5308ee26301638a87ff9085d80 100644 GIT binary patch delta 70 zcmbQUl4B~nPN5rP?War*kO`k`FUd8TkDE=&SuZ6ghmjGefZ>7T XjqeIqIY4T;%1rbO^o$LR4J{b}mk1Gb delta 23 fcmZ3wifPVDCJr`6Lk0#0#>B~nPN5rP?WX_$OSlGi