From 5cbc728363e985fc032b9289d3b5b7613c43efc3 Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Wed, 30 Apr 2025 20:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=B8=BAICON=E7=BB=98=E5=88=B6?= =?UTF-8?q?=E5=9C=86=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/status/draw_status.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gsuid_core/status/draw_status.py b/gsuid_core/status/draw_status.py index c7ecf21..03ffb4e 100644 --- a/gsuid_core/status/draw_status.py +++ b/gsuid_core/status/draw_status.py @@ -15,6 +15,7 @@ from gsuid_core.utils.image.image_tools import ( add_footer, get_font_x, crop_center_img, + draw_pic_with_ring, ) from .utils import generate_y_ticks @@ -41,7 +42,10 @@ async def draw_title(): if _icon_path.exists(): icon_path = _icon_path - icon = Image.open(icon_path).resize((186, 186)).convert('RGBA') + icon = Image.open(icon_path).resize((186, 186)) + if icon.mode == 'RGB': + icon = await draw_pic_with_ring(icon, 186, (189, 72, 37)) + title.paste(icon, (92, 77), icon) MAIN_TITLE: str = status_config.get_config('CustomName').data