The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(window): Win10 None 特效下窗口阴影丢失
XiaoYouChRbb5e21decd51
diff --git a/app/view/windows/main_window.py b/app/view/windows/main_window.pyindex a507c44c..ffa9d645 100644--- a/app/view/windows/main_window.py+++ b/app/view/windows/main_window.py@@ -416,7 +416,7 @@ class MainWindow(MSFluentWindow):if sys.platform == "win32":self._setBackgroundEffect(cfg.backgroundEffect.value)- def _setBackgroundEffect(self, value) -> None:+ def _setBackgroundEffect(self, value: str) -> None:if sys.platform != "win32":returnfrom qfluentwidgets import isDarkTheme@@ -435,14 +435,16 @@ class MainWindow(MSFluentWindow):elif value == "Aero":self.setStyleSheet("background-color: transparent")self.windowEffect.setAeroEffect(self.winId())- from app.platform.windows import isLessThanWin10if isLessThanWin10():self.titleBar.closeBtn.hide()self.titleBar.minBtn.hide()self.titleBar.maxBtn.hide()elif value == "None":+ if isWin10():+ self.windowEffect.accentPolicy.AccentState = ACCENT_STATE.ACCENT_ENABLE_GRADIENT.value+ self.windowEffect.winCompAttrData.Attribute = WINDOWCOMPOSITIONATTRIB.WCA_ACCENT_POLICY.value+ self.windowEffect.SetWindowCompositionAttribute(int(self.winId()), pointer(self.windowEffect.winCompAttrData))self.setStyleSheet("")- from app.platform.windows import isLessThanWin10if isLessThanWin10():self.titleBar.closeBtn.show()self.titleBar.minBtn.show()@@ -464,7 +466,7 @@ if sys.platform == "darwin":MacFramelessWindowBase._updateSystemTitleBar = _updateSystemTitleBarif sys.platform == "win32":- from app.platform.windows import isWin10+ from app.platform.windows import isLessThanWin10, isWin10if isWin10():from ctypes import pointer