Skip to content

Commit 8084ffd

Browse files
committed
Update background color handling in ConsoleFontStyle
1 parent bf38b08 commit 8084ffd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

guidata/widgets/console/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,7 @@ def apply_style(self, font, light_background, is_default):
14551455
if not light_background and is_default:
14561456
inverse_color(foreground)
14571457
self.format.setForeground(foreground)
1458-
background = QColor(self.backgroundcolor)
1459-
if not light_background:
1460-
inverse_color(background)
1458+
background = QApplication.instance().palette().color(QPalette.Base)
14611459
self.format.setBackground(background)
14621460
font = self.format.font()
14631461
font.setBold(self.bold)

0 commit comments

Comments
 (0)