From cefd0ceb8860bb7c3daf48dbfb5bc1b4a1924bd6 Mon Sep 17 00:00:00 2001 From: zengwei Date: Sat, 9 May 2026 09:28:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(grub-theme):=20=E8=B0=83=E6=95=B4=201024x76?= =?UTF-8?q?8=20=E5=88=86=E8=BE=A8=E7=8E=87=E4=B8=8B=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=AE=BD=E5=BA=A6=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AE=8C=E6=95=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pms: 359281 --- adjust-grub-theme/main.go | 2 +- adjust-grub-theme/version.go | 2 +- debian/changelog | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/adjust-grub-theme/main.go b/adjust-grub-theme/main.go index b721bea..4c0ef20 100644 --- a/adjust-grub-theme/main.go +++ b/adjust-grub-theme/main.go @@ -1071,7 +1071,7 @@ func adjustBootMenuV25(comp *tt.Component, width, height int) { if width == 1024 && height == 768 { // halfWidthPercent represents half of the boot menu width percentage. // The boot menu is centered, so width = halfWidthPercent * 2, left = 50% - halfWidthPercent, - halfWidthPercent := 22 + halfWidthPercent := 27 comp.SetProp("width", tt.RelNum(halfWidthPercent*2)) comp.SetProp("left", tt.RelNum(50-halfWidthPercent)) } diff --git a/adjust-grub-theme/version.go b/adjust-grub-theme/version.go index 244be39..87432b4 100644 --- a/adjust-grub-theme/version.go +++ b/adjust-grub-theme/version.go @@ -4,4 +4,4 @@ package main -const VERSION int = 19 +const VERSION int = 20 diff --git a/debian/changelog b/debian/changelog index 314fb5c..67d4c74 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +dde-api (6.0.41) unstable; urgency=medium + + * fix(grub-theme): 调整 1024x768 分辨率下启动菜单宽度,修复显示不完整问题 + + -- zengwei Fri, 09 May 2026 10:00:00 +0800 + dde-api (6.0.40) unstable; urgency=medium * feat: add cmake find_package support and auto-init for EventLogger 为