Skip to content

The only downloader you need. 下载器的集大成者。

chore(deps): 移除 FluentLabel 主题补丁

XiaoYouChR129ac7a24168
diff --git a/Ghost-Downloader-3.py b/Ghost-Downloader-3.py
index b137b09c..768f10c8 100644
--- a/Ghost-Downloader-3.py
+++ b/Ghost-Downloader-3.py
@@ -40,10 +40,9 @@ def setupEnvironment() -> None:
setupHiddenSubprocess()
from app.view.qfw_patch import (
- patchFluentLabelThemeChanged, patchLinuxFrameless, patchMaskDialogAnimation, patchStackedWidgetAnimation,
+ patchLinuxFrameless, patchMaskDialogAnimation, patchStackedWidgetAnimation,
)
from app.view.components.labels import IconBodyLabel
- patchFluentLabelThemeChanged()
patchStackedWidgetAnimation()
# Wayland 上在绘制中截图会递归重绘,卡住合成器 #1017
if sys.platform != "linux":
diff --git a/app/view/qfw_patch.py b/app/view/qfw_patch.py
index ce616707..7edbcf26 100644
--- a/app/view/qfw_patch.py
+++ b/app/view/qfw_patch.py
@@ -47,26 +47,6 @@ def patchStackedWidgetAnimation() -> None:
PopUpAniStackedWidget.resizeEvent = resizeEvent
-def patchFluentLabelThemeChanged() -> None:
- from qfluentwidgets.components.widgets import label
-
- FluentLabelBase = label.FluentLabelBase
-
- def _init(self):
- label.FluentStyleSheet.LABEL.apply(self)
- self.setFont(self.getFont())
- self.setTextColor()
- label.qconfig.themeChanged.connect(self._applyThemeColor)
- self.customContextMenuRequested.connect(self._onContextMenuRequested)
- return self
-
- def _applyThemeColor(self, *_args) -> None:
- self.setTextColor(self.lightColor, self.darkColor)
-
- FluentLabelBase._init = _init
- FluentLabelBase._applyThemeColor = _applyThemeColor
-
-
def patchMaskDialogAnimation() -> None:
from qfluentwidgets.components.dialog_box.mask_dialog_base import MaskDialogBase
diff --git a/pyproject.toml b/pyproject.toml
index 78894eea..9726a205 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,7 +13,7 @@ dependencies = [
"mpegdash>=0.4.1",
"nuitka>=4.2",
"pyside6~=6.10.3",
- "pyside6-fluent-widgets>=1.11.2",
+ "pyside6-fluent-widgets>=1.11.3",
"qrcode[png]>=8.2",
"websockets>=14",
"wreq>=0.12.0",
diff --git a/uv.lock b/uv.lock
index 26df73ea..a092d7d5 100644
--- a/uv.lock
+++ b/uv.lock
@@ -437,7 +437,7 @@ requires-dist = [
{ name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'", specifier = ">=10.0" },
{ name = "pyobjc-framework-quartz", marker = "sys_platform == 'darwin'", specifier = ">=10.0" },
{ name = "pyside6", specifier = "~=6.10.3" },
- { name = "pyside6-fluent-widgets", specifier = ">=1.11.2" },
+ { name = "pyside6-fluent-widgets", specifier = ">=1.11.3" },
{ name = "pywin32", marker = "sys_platform == 'win32'", specifier = ">=312" },
{ name = "qrcode", extras = ["png"], specifier = ">=8.2" },
{ name = "uvloop", marker = "sys_platform != 'win32'", specifier = ">=0.22.1" },