diff src/gui/pages/statistics.cc @ 295:b82841e76e79

*: better support on Windows things now look much better in dark mode
author Paper <paper@paper.us.eu.org>
date Sun, 12 May 2024 20:24:09 -0400
parents 9a88e1725fd2
children 91ac90a34003
line wrap: on
line diff
--- a/src/gui/pages/statistics.cc	Sun May 12 18:16:08 2024 -0400
+++ b/src/gui/pages/statistics.cc	Sun May 12 20:24:09 2024 -0400
@@ -22,6 +22,8 @@
 };
 
 StatisticsPage::StatisticsPage(QWidget* parent) : QFrame(parent) {
+	setBackgroundRole(QPalette::Base);
+
 	QVBoxLayout* layout = new QVBoxLayout(this);
 
 	setFrameShape(QFrame::Box);
@@ -106,6 +108,8 @@
 			str << amount << ((amount == 1) ? singular : plural);
 	};
 
+	/* for now, this function is very en_US specific */
+
 	std::ostringstream string;
 	add_time_segment(string, years, " year ", " years ");
 	add_time_segment(string, months, " month ", " months ");