The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(Mobile): 移动端设置页添加搜索框
XiaoYouChRf7c3c735faef
diff --git a/app/view/mobile/setting_page.py b/app/view/mobile/setting_page.pyindex 0fd8dd02..d6ffcb74 100644--- a/app/view/mobile/setting_page.py+++ b/app/view/mobile/setting_page.py@@ -1,7 +1,7 @@from PySide6.QtCore import Qtfrom PySide6.QtGui import QColor, QPalettefrom PySide6.QtWidgets import QHBoxLayout, QSizePolicy, QVBoxLayout, QWidget-from qfluentwidgets import SettingCard, SwitchButton, isDarkTheme, qconfig+from qfluentwidgets import SearchLineEdit, SettingCard, SwitchButton, isDarkTheme, qconfigfrom app.view.components.setting_card_group import CollapsibleSettingCardGroupfrom app.view.pages.setting_page import SettingPage@@ -12,6 +12,12 @@ QWIDGETSIZE_MAX = (1 << 24) - 1class MobileSettingPage(SettingPage):def __init__(self, parent=None):super().__init__(parent)++ self.searchEdit = SearchLineEdit(self.container)+ self.searchEdit.setPlaceholderText(self.tr("搜索设置"))+ self.vBoxLayout.insertWidget(0, self.searchEdit)+ self.searchEdit.textChanged.connect(self.setSearchText)+self._setScrollContentOpaque()def showEvent(self, event):diff --git a/app/view/pages/setting_page.py b/app/view/pages/setting_page.pyindex d7d58868..f997c450 100644--- a/app/view/pages/setting_page.py+++ b/app/view/pages/setting_page.py@@ -7,7 +7,7 @@ from PySide6.QtGui import QDesktopServicesfrom PySide6.QtWidgets import QVBoxLayout, QWidget, QApplicationfrom qfluentwidgets import (ComboBoxSettingCard, FluentIcon, HyperlinkCard, HyperlinkButton, InfoBar,- InfoBarPosition, MessageBox, PrimaryPushSettingCard, PushSettingCard,+ InfoBarPosition, MessageBox, PrimaryPushSettingCard, PushButton, PushSettingCard,RangeSettingCard, SwitchSettingCard, ToolButton, ToolTipFilter,)@@ -319,11 +319,9 @@ class SettingPage(ScrollArea):self.feedbackCard = PrimaryPushSettingCard(self.tr("提供反馈"), FluentIcon.FEEDBACK,self.tr("提供反馈"),- self.tr("通过提供反馈来帮助我们改进 Ghost Downloader"),+ self.tr("通过提供反馈来帮助我们改进 Ghost Downloader(日志)"),)- self.openLogButton = ToolButton(FluentIcon.DOCUMENT, self.feedbackCard)- self.openLogButton.setToolTip(self.tr("查看日志"))- self.openLogButton.installEventFilter(ToolTipFilter(self.openLogButton))+ self.openLogButton = PushButton(self.tr("查看日志"), self.feedbackCard)self.feedbackCard.hBoxLayout.insertSpacing(6, 8)self.feedbackCard.hBoxLayout.insertWidget(7, self.openLogButton, 0, Qt.AlignmentFlag.AlignRight,