Skip to content

Commit 7731796

Browse files
fix game ico
1 parent 3f0c35a commit 7731796

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

‎src/launcher_proto/launcher_proto.py‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -385,22 +385,19 @@ def draw_home(p: QPainter):
385385

386386
def draw_controller(p: QPainter):
387387
p.setPen(Qt.NoPen)
388+
# 手柄主体:扁圆角矩形(窄于握把外缘,避免盖住握把像"脸")
388389
p.setBrush(QColor(C_WHITE))
389-
# 手柄主体
390-
body = QPainterPath()
391-
body.addRoundedRect(QRect(-11, -7, 22, 15), 5, 5)
392-
p.drawPath(body)
393-
# 左握把 + 右握把
394-
p.setBrush(QColor(C_WHITE))
395-
p.drawRoundedRect(QRect(-11, -2, 4, 9), 2, 2)
396-
p.drawRoundedRect(QRect(7, -2, 4, 9), 2, 2)
397-
# 十字键
390+
p.drawRoundedRect(QRect(-9, -8, 18, 11), 4, 4)
391+
# 左/右握把:从主体两端向下伸出(下端露出主体下缘 3px,一眼是手柄)
392+
p.drawRoundedRect(QRect(-12, -4, 5, 10), 2.5, 2.5)
393+
p.drawRoundedRect(QRect(7, -4, 5, 10), 2.5, 2.5)
394+
# 十字键:主体左侧
398395
p.setBrush(QColor(C_BTN_DARK))
399-
p.drawRoundedRect(QRect(-4, -4, 2.4, 6), 1, 1)
400-
p.drawRoundedRect(QRect(-6.5, -1.2, 7, 2.4), 1, 1)
401-
# AB 按钮
402-
p.drawEllipse(QRect(3, -4, 2.6, 2.6))
403-
p.drawEllipse(QRect(6.5, -2, 2.6, 2.6))
396+
p.drawRoundedRect(QRect(-5.5, -5.5, 2.4, 7), 1, 1)
397+
p.drawRoundedRect(QRect(-7.8, -3.2, 7, 2.4), 1, 1)
398+
# AB 按钮:主体右侧斜排(不再对称居中,避免像眼睛)
399+
p.drawEllipse(QRect(2, -4.5, 2.6, 2.6))
400+
p.drawEllipse(QRect(4.8, -1.5, 2.6, 2.6))
404401

405402

406403
def draw_tv(p: QPainter):

0 commit comments

Comments
 (0)