Merge pull request #745 from LambdaYH/main

稍微调整了一下查看所有请求中的年龄绘制
This commit is contained in:
HibiKier
2022-06-03 16:07:01 +08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -150,4 +150,4 @@ async def _():
@clear_request.handle() @clear_request.handle()
async def _(): async def _():
requests_manager.clear() requests_manager.clear()
await cls_request.send("已清空所有好友/群聊请求..") await clear_request.send("已清空所有好友/群聊请求..")
+1 -1
View File
@@ -178,7 +178,7 @@ class BuildImage:
self.paste_image_height = int(paste_image_height) self.paste_image_height = int(paste_image_height)
self.current_w = 0 self.current_w = 0
self.current_h = 0 self.current_h = 0
self.font = ImageFont.truetype(str(FONT_PATH / font), int(font_size)) self.font = ImageFont.truetype(str(FONT_PATH / font), font_size)
if not plain_text and not color: if not plain_text and not color:
color = (255, 255, 255) color = (255, 255, 255)
self.background = background self.background = background
+1 -1
View File
@@ -158,7 +158,7 @@ class RequestManager(StaticData):
) )
ava.circle() ava.circle()
age_bk = BuildImage( age_bk = BuildImage(
len(str(age)) * 10 - 5, len(str(age)) * 6 + 6,
15, 15,
color="#04CAF7" if sex == "male" else "#F983C1", color="#04CAF7" if sex == "male" else "#F983C1",
) )