diff src/gui/widgets/sidebar.cpp @ 71:5f9bdcea3d01

sidebar: fix regression caused by SetBackgroundColor()
author Paper <mrpapersonic@gmail.com>
date Tue, 03 Oct 2023 04:56:18 -0400
parents 27a19dd6cba1
children 5ccb99bfa605
line wrap: on
line diff
--- a/src/gui/widgets/sidebar.cpp	Tue Oct 03 04:45:05 2023 -0400
+++ b/src/gui/widgets/sidebar.cpp	Tue Oct 03 04:56:18 2023 -0400
@@ -31,6 +31,7 @@
 }
 
 void SideBar::SetBackgroundColor(QColor color) {
+	viewport()->setAutoFillBackground(color != Qt::transparent);
 	QPalette pal(palette());
 	pal.setColor(QPalette::Window, color);
 	setPalette(pal);