From 08dc3539e64c7bcb27668e23bc944cf613cd2616 Mon Sep 17 00:00:00 2001 From: jasonchenwork Date: Thu, 26 Jun 2025 14:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=9C=E9=96=89QR=20Content=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B4=85=E8=B7=91=E9=A6=AC=E7=87=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OverlayFormObj/OverlayForm.Labels.cs | 7 ++++--- PrimaryFormParts/PrimaryForm.QRCode.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OverlayFormObj/OverlayForm.Labels.cs b/OverlayFormObj/OverlayForm.Labels.cs index aa44781..bdc77bd 100644 --- a/OverlayFormObj/OverlayForm.Labels.cs +++ b/OverlayFormObj/OverlayForm.Labels.cs @@ -169,7 +169,7 @@ namespace OverlayFormObj string qrContent = serverAddress.Contains(":") ? String.Format("http://{0}/{1}/windows.html", serverAddress, randomFolderPath) : String.Format("http://{0}:{1}/{2}/windows.html", serverAddress, 9090, randomFolderPath); - Console.WriteLine("QR Content: " + qrContent); + // Console.WriteLine("QR Content: " + qrContent); string qrImagePath = Path.Combine(Application.StartupPath, "themes/superstar/_www", randomFolderPath, "qrcode.png"); if (!File.Exists(qrImagePath)) { @@ -474,7 +474,7 @@ namespace OverlayFormObj using (Font largeFont = new Font("微軟正黑體", 34, FontStyle.Bold)) using (Font secondLineFont = new Font("微軟正黑體", 34, FontStyle.Bold)) using (Brush whiteBrush = new SolidBrush(Color.White)) - using (Brush limeGreenBrush = new SolidBrush(Color.LimeGreen)) + using (Brush RedBrush = new SolidBrush(Color.Red)) using (Brush marqueeBrush = new SolidBrush(marqueeTextColor)) using (Brush backgroundBrush = new SolidBrush(Color.FromArgb(255, 0, 0, 0))) { @@ -500,7 +500,8 @@ namespace OverlayFormObj SizeF textSizeSecondLine = e.Graphics.MeasureString(displayText, secondLineFont); float centeredXPos = (this.Width - textSizeSecondLine.Width) / 2; e.Graphics.FillRectangle(backgroundBrush, centeredXPos, yPosition2, textSizeSecondLine.Width, textSizeSecondLine.Height); - e.Graphics.DrawString(displayText, secondLineFont, limeGreenBrush, new PointF(centeredXPos, yPosition2)); + // 系統公告塗色調整區域 + e.Graphics.DrawString(displayText, secondLineFont, RedBrush, new PointF(centeredXPos, yPosition2)); // 还原裁剪区域 e.Graphics.Clip = originalClip; diff --git a/PrimaryFormParts/PrimaryForm.QRCode.cs b/PrimaryFormParts/PrimaryForm.QRCode.cs index 1c83fbc..f9b3230 100644 --- a/PrimaryFormParts/PrimaryForm.QRCode.cs +++ b/PrimaryFormParts/PrimaryForm.QRCode.cs @@ -34,7 +34,7 @@ namespace DualScreenDemo string qrContent = serverAddress.Contains(":") ? String.Format("http://{0}/{1}/windows.html", serverAddress, randomFolderPath) : String.Format("http://{0}:{1}/{2}/windows.html", serverAddress, 9090, randomFolderPath); - Console.WriteLine("QR Content: " + qrContent); + // Console.WriteLine("QR Content: " + qrContent); string qrImagePath = Path.Combine(Application.StartupPath, "themes/superstar/_www", randomFolderPath, "qrcode.png");