diff src/gui/theme.cc @ 305:91ac90a34003

core/time: remove Duration class, use regular functions instead this class was pretty useless anyway
author Paper <paper@paper.us.eu.org>
date Sun, 19 May 2024 15:56:20 -0400
parents 9a88e1725fd2
children c844f8bb87ce
line wrap: on
line diff
--- a/src/gui/theme.cc	Mon May 13 17:02:35 2024 -0400
+++ b/src/gui/theme.cc	Sun May 19 15:56:20 2024 -0400
@@ -93,7 +93,8 @@
 			const QColor black(25, 25, 25);
 			const QColor blue(42, 130, 218);
 
-			QPalette pal(QApplication::style()->standardPalette());
+			QPalette pal;
+
 			pal.setColor(QPalette::Window, darkGray);
 			pal.setColor(QPalette::WindowText, Qt::white);
 			pal.setColor(QPalette::Base, black);
@@ -112,6 +113,7 @@
 			pal.setColor(QPalette::Disabled, QPalette::WindowText, gray);
 			pal.setColor(QPalette::Disabled, QPalette::Text, gray);
 			pal.setColor(QPalette::Disabled, QPalette::Light, darkGray);
+
 			qApp->setPalette(pal);
 
 #ifdef WIN32
@@ -127,7 +129,7 @@
 			break;
 		}
 		default:
-			/* this sucks. */
+			/* this sucks */
 			QPalette pal(QApplication::style()->standardPalette());
 #ifdef WIN32 /* fuck you Qt 6 */
 			pal.setColor(QPalette::Window, QColor(0xF0, 0xF0, 0xF0));