Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prof: removed shadow effects in homepage for better prof #147

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, *args, **kwargs):
# 添加到滚动区域容器
self.scroll_container.addWidget(self.head_area)

SiQuickEffect.applyDropShadowOn(self.container_for_cards, color=(0, 0, 0, 80), blur_radius=48)
# SiQuickEffect.applyDropShadowOn(self.container_for_cards, color=(0, 0, 0, 80), blur_radius=48)

# 下方区域标签
self.body_area = SiLabel(self)
Expand Down
5 changes: 4 additions & 1 deletion siui/core/animation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy
from PyQt5.QtCore import QObject, QTimer, pyqtSignal
from PyQt5.QtCore import QObject, Qt, QTimer, pyqtSignal

global_fps = 60

Expand All @@ -25,10 +25,13 @@ def __init__(self, parent=None):
self.timer = QTimer()
self.timer.setInterval(int(1000/global_fps))
self.timer.timeout.connect(self._process) # 每经历 interval 时间,传入函数就被触发一次
# self.timer.setTimerType(Qt.PreciseTimer)

# 构建行为计时器
self.action_timer = QTimer()
self.action_timer.setSingleShot(True)
# self.action_timer.setTimerType(Qt.PreciseTimer)


def setEnable(self, on):
self.enabled = on
Expand Down
Loading