diff src/gui/dialog/about.cc @ 294:99cbc51433e4

*: cleanup uses of QPalette I didn't know about setBackgroundRole() which is very useful in 99% of the cases where I even needed to edit the palette
author Paper <paper@paper.us.eu.org>
date Sun, 12 May 2024 18:16:08 -0400
parents ac1451035c85
children 3b355fa948c7
line wrap: on
line diff
--- a/src/gui/dialog/about.cc	Sun May 12 18:06:44 2024 -0400
+++ b/src/gui/dialog/about.cc	Sun May 12 18:16:08 2024 -0400
@@ -113,11 +113,7 @@
 	    "  </ul>"
 	    "</body>";
 
-	{
-		QPalette pal = QPalette();
-		pal.setColor(QPalette::Window, pal.color(QPalette::Base));
-		setPalette(pal);
-	}
+	setBackgroundRole(QPalette::Base);
 
 	{
 		QTextBrowser* paragraph = new QTextBrowser(this);