From 65c7ad7c147797b83389cdd1f06f5c2ecf63e486 Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Fri, 8 Aug 2025 10:42:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BD=8E=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E5=BA=A6=E6=B3=A8=E9=9F=B3=E8=BC=B8=E5=85=A5=E5=AD=97=E9=AB=94?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PrimaryForm.SingerSearch.BopomofoSearch.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PrimaryFormParts/SingerSearch/PrimaryForm.SingerSearch.BopomofoSearch.cs b/PrimaryFormParts/SingerSearch/PrimaryForm.SingerSearch.BopomofoSearch.cs index 2203018..8738a58 100644 --- a/PrimaryFormParts/SingerSearch/PrimaryForm.SingerSearch.BopomofoSearch.cs +++ b/PrimaryFormParts/SingerSearch/PrimaryForm.SingerSearch.BopomofoSearch.cs @@ -659,6 +659,13 @@ namespace DualScreenDemo // 從配置中加載字體屬性 inputBoxFontName = data["InputBoxZhuYinSingers"]["FontName"]; // 字體名稱 inputBoxFontSize = float.Parse(data["InputBoxZhuYinSingers"]["FontSize"]); // 字體大小 + Screen screen = Screen.PrimaryScreen; + int screenWidth = screen.Bounds.Width; + int screenHeight = screen.Bounds.Height; + if (screenWidth < 1920 && screenHeight < 1080) + { + inputBoxFontSize = 22; + } inputBoxFontStyle = (FontStyle)Enum.Parse(typeof(FontStyle), data["InputBoxZhuYinSingers"]["FontStyle"]); // 字體樣式 inputBoxForeColor = Color.FromName(data["InputBoxZhuYinSingers"]["ForeColor"]); // 字體顏色