From e77f13a05faf0921beb02cb03c1ce50e10a88391 Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Thu, 7 Aug 2025 15:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=8C=E6=89=8B=E9=A1=AF=E7=A4=BA=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E8=88=87=E5=AD=97=E9=AB=94=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PrimaryFormParts/PrimaryForm.MultiPagePanel.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs b/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs index 7e7a6fd..7092535 100644 --- a/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs +++ b/PrimaryFormParts/PrimaryForm.MultiPagePanel.cs @@ -383,7 +383,7 @@ namespace DualScreenDemo // 歌手名稱設置點 string artistText = song.getArtist_A(IsSimplified); - + if (song.getB() != null) { artistText+="+"+ song.getArtist_B(IsSimplified); } string fullText = songText + statusText; int textLength = fullText.Length; @@ -466,13 +466,14 @@ namespace DualScreenDemo // 根據文字長度設置字體大小 int fold = 14; - if (artistText.Length > 6) - fold = 10; - else if (artistText.Length > 3) - fold = 12; + //if (artistText.Length > 6) + // fold = 10; + //else if (artistText.Length > 3) + // fold = 12; artistLabel.Font = new Font("微軟正黑體", fold, FontStyle.Bold); - artistLabel.ForeColor = Color.FromArgb(30,144,255); + //artistLabel.ForeColor = Color.FromArgb(30,144,255); + artistLabel.ForeColor = Color.FromArgb(36,209,216); songLabel.TextAlign = ContentAlignment.MiddleLeft; artistLabel.TextAlign = ContentAlignment.MiddleRight; // 確保背景透明 @@ -488,7 +489,8 @@ namespace DualScreenDemo // 定義滑鼠離開 (MouseLeave) 事件的處理程序 EventHandler mouseLeave = (sender, e) => { songLabel.ForeColor = color; - artistLabel.ForeColor = Color.FromArgb(30, 144, 255); + //artistLabel.ForeColor = Color.FromArgb(30, 144, 255); + artistLabel.ForeColor = Color.FromArgb(36,209,216); separatorPanel.BackColor = Color.FromArgb(80, 255, 255, 255); }; // 添加事件处理