Skip to content

Commit

Permalink
调整 FluentWindow 浅色模式下的默认背景色 (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyiYo committed Jul 24, 2024
1 parent e02e1d9 commit 971951d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion examples/gallery/app/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def __init__(self):

# enable acrylic effect
self.navigationInterface.setAcrylicEnabled(True)
self.setCustomBackgroundColor(QColor(240, 244, 249), QColor(32, 32, 32))

self.connectSignalToSlot()

Expand Down
1 change: 0 additions & 1 deletion examples/view/card_widget/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ def __init__(self, parent=None):
self.resize(880, 760)
self.setWindowTitle('PyQt-Fluent-Widgets')
self.setWindowIcon(QIcon(':/qfluentwidgets/images/logo.png'))
self.setCustomBackgroundColor(QColor(240, 244, 249), QColor(32, 32, 32))

self.titleBar.raise_()

Expand Down
4 changes: 0 additions & 4 deletions examples/window/fluent_window/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ def initWindow(self):
w, h = desktop.width(), desktop.height()
self.move(w//2 - self.width()//2, h//2 - self.height()//2)

# use custom background color theme (only available when the mica effect is disabled)
self.setCustomBackgroundColor(*FluentBackgroundTheme.DEFAULT_BLUE)
# self.setMicaEffectEnabled(False)

# set the minimum window width that allows the navigation panel to be expanded
# self.navigationInterface.setMinimumExpandWidth(900)
# self.navigationInterface.expand(useAni=False)
Expand Down
2 changes: 1 addition & 1 deletion qfluentwidgets/window/fluent_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FluentWindowBase(BackgroundAnimationWidget, FramelessWindow):

def __init__(self, parent=None):
self._isMicaEnabled = False
self._lightBackgroundColor = QColor(243, 243, 243)
self._lightBackgroundColor = QColor(240, 244, 249)
self._darkBackgroundColor = QColor(32, 32, 32)
super().__init__(parent=parent)

Expand Down

0 comments on commit 971951d

Please sign in to comment.