The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
SplashScreen 渐变消失
XiaoYouChRf14e104e8b55
diff --git a/app/view/main_window.py b/app/view/main_window.pyindex 9c703fe2..e8f7b3f7 100644--- a/app/view/main_window.py+++ b/app/view/main_window.py@@ -3,9 +3,9 @@ import ctypesfrom pathlib import Pathimport darkdetect-from PySide6.QtCore import QSize, QThread, Signal, QTimer+from PySide6.QtCore import QSize, QThread, Signal, QTimer, QPropertyAnimationfrom PySide6.QtGui import QIcon-from PySide6.QtWidgets import QApplication+from PySide6.QtWidgets import QApplication, QGraphicsOpacityEffectfrom loguru import loggerfrom qfluentwidgets import FluentIcon as FIF, setTheme, Themefrom qfluentwidgets import NavigationItemPosition, MSFluentWindow, SplashScreen@@ -19,6 +19,19 @@ from ..components.add_task_dialog import AddTaskOptionDialogfrom ..components.custom_tray import CustomSystemTrayIconfrom ..components.update_dialog import checkUpdate+class CustomSplashScreen(SplashScreen):++ def finish(self):+ """ fade out splash screen """+ opacityEffect = QGraphicsOpacityEffect(self)+ self.setGraphicsEffect(opacityEffect)+ opacityAni = QPropertyAnimation(opacityEffect, b'opacity', self)+ opacityAni.setStartValue(1)+ opacityAni.setEndValue(0)+ opacityAni.setDuration(200)+ opacityAni.finished.connect(self.deleteLater)+ opacityAni.start()+class ThemeChangedListener(QThread):themeChanged = Signal(str)@@ -126,7 +139,7 @@ class MainWindow(MSFluentWindow):self.setWindowTitle('Ghost Downloader')# create splash screen- self.splashScreen = SplashScreen(self.windowIcon(), self)+ self.splashScreen = CustomSplashScreen(self.windowIcon(), self)self.splashScreen.setIconSize(QSize(106, 106))self.splashScreen.raise_()