mirror of
https://github.com/hyb-oyqq/FRAISEMOE-Addons-Installer-NEXT.git
synced 2025-12-21 06:18:36 +00:00
feat(core): 重构按钮显示和动画
- 更新动画逻辑,使用新的按钮容器 - 优化按钮点击区域和视觉效果 - 添加了得意黑作为字体和样式
This commit is contained in:
@@ -33,8 +33,8 @@ class MultiStageAnimations(QObject):
|
||||
# 第二阶段:菜单元素
|
||||
self.menu_widgets = [
|
||||
{"widget": ui.menubg, "end_pos": QPoint(710, 0), "duration": 600},
|
||||
{"widget": ui.start_install_btn, "end_pos": QPoint(780, 250), "duration": 600},
|
||||
{"widget": ui.exit_btn, "end_pos": QPoint(780, 340), "duration": 600}
|
||||
{"widget": ui.button_container, "end_pos": QPoint(780, 250), "duration": 600},
|
||||
{"widget": ui.exit_container, "end_pos": QPoint(780, 340), "duration": 600}
|
||||
]
|
||||
|
||||
self.animations = []
|
||||
@@ -144,7 +144,7 @@ class MultiStageAnimations(QObject):
|
||||
anim_group.addAnimation(pos_anim)
|
||||
anim_group.addAnimation(opacity_anim)
|
||||
|
||||
if item["widget"] == self.ui.exit_btn:
|
||||
if item["widget"] == self.ui.exit_container:
|
||||
anim_group.finished.connect(self.animation_finished.emit)
|
||||
|
||||
anim_group.start()
|
||||
|
||||
Reference in New Issue
Block a user