The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
style(ui): 移除文本选择功能并优化macOS标题栏布局
XiaoYouChRcc20b1cf0d4b
diff --git a/app/view/components/cards.py b/app/view/components/cards.pyindex 302147be..eb520a3b 100644--- a/app/view/components/cards.py+++ b/app/view/components/cards.py@@ -257,7 +257,7 @@ class UniversalTaskCard(TaskCard):self.progressBar.setCustomBackgroundColor(QColor(0, 0, 0, 0), QColor(0, 0, 0, 0))# init widgetsself.infoLabel.hide()- self.infoLabel.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)+ # self.infoLabel.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)# initself.initLayout()self.connectSignalToSlot()diff --git a/app/view/windows/main_window.py b/app/view/windows/main_window.pyindex 7c059362..9c24a2e7 100644--- a/app/view/windows/main_window.py+++ b/app/view/windows/main_window.py@@ -30,7 +30,7 @@ from app.view.pages.task_page import TaskPageif TYPE_CHECKING:from typing import Literal- from PySide6.QtGui import QClipboard+ from PySide6.QtGui import QClipboard, QSizeclass CustomSplashScreen(SplashScreen):@@ -96,6 +96,9 @@ class MainWindow(MSFluentWindow):else:self._toggleTheme('System')+ def systemTitleBarRect(self, size: "QSize") -> "QRect":+ return QRect(0, 10, 75, size.height())+def _normalBackgroundColor(self):if self.styleSheet() == "":return self._darkBackgroundColor if isDarkTheme() else self._lightBackgroundColor@@ -266,6 +269,9 @@ class MainWindow(MSFluentWindow):self.setWindowIcon(QIcon(':/image/logo.png'))self.setWindowTitle('Ghost Downloader')self.setMinimumSize(960, 540)+ # Init TitleBar+ if sys.platform == 'darwin':+ self.titleBar.hBoxLayout.insertSpacing(0, 60)def initSplashScreen(self):self.splashScreen = CustomSplashScreen(self.windowIcon(), self, enableShadow=False)