Skip to content

Commit

Permalink
Fix missing QPalette.Background attribute in Qt6 (deprecated in Qt5)
Browse files Browse the repository at this point in the history
Fix #77
  • Loading branch information
PierreRaybaut committed Sep 10, 2024
1 parent d51483f commit 4588301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guidata/widgets/console/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def set_palette(self, background, foreground):
palette = QPalette()
# palette.setColor(QPalette.Base, background)
palette.setColor(QPalette.Text, foreground)
palette.setColor(QPalette.Background, background)
palette.setColor(QPalette.Window, background)
self.setPalette(palette)

# Set the right background color when changing color schemes
Expand Down

0 comments on commit 4588301

Please sign in to comment.