feat(ui): 初步完成公告界面升级

This commit is contained in:
DLmaster
2025-03-16 00:22:24 +08:00
parent 2dfcd3f131
commit 0c274ecbe0
3 changed files with 100 additions and 7 deletions

View File

@@ -210,12 +210,12 @@ class AUTO_MAA(MSFluentWindow):
"""切换主题"""
setTheme(Theme.AUTO, lazy=True)
QTimer.singleShot(100, lambda: setTheme(Theme.AUTO, lazy=True))
QTimer.singleShot(500, lambda: setTheme(Theme.AUTO, lazy=True))
# 云母特效启用时需要增加重试机制
if self.isMicaEffectEnabled():
QTimer.singleShot(
100,
500,
lambda: self.windowEffect.setMicaEffect(self.winId(), isDarkTheme()),
)