Skip to content

Commit

Permalink
Fix: mica bug
Browse files Browse the repository at this point in the history
  • Loading branch information
moesnow committed Dec 24, 2024
1 parent 678a5a7 commit bf19e26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ def __init__(self):
checkAnnouncement(self)

def initWindow(self):
self.setMicaEffectEnabled(False)
setThemeColor('#f18cb9', lazy=True)
setTheme(Theme.AUTO, lazy=True)
self.setMicaEffectEnabled(False)

# 禁用最大化
self.titleBar.maxBtn.setHidden(True)
self.titleBar.maxBtn.setDisabled(True)
self.titleBar.setDoubleClickEnabled(False)
self.setResizeEnabled(False)
self.setWindowFlags(Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint)
self.setWindowFlags(Qt.WindowCloseButtonHint)
# self.setWindowFlags(Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint)

self.resize(960, 640)
self.setWindowIcon(QIcon('./assets/logo/March7th.ico'))
Expand Down

0 comments on commit bf19e26

Please sign in to comment.