diff src/gui/dialog/about.cc @ 368:6d37a998cf91

gui/dialog: consolidate win32 dark theme cruft into a single class
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 10:05:23 -0400
parents 8d45d892be88
children ea3a74ed2ef9
line wrap: on
line diff
--- a/src/gui/dialog/about.cc	Sun Nov 17 22:55:47 2024 -0500
+++ b/src/gui/dialog/about.cc	Fri Jul 25 10:05:23 2025 -0400
@@ -63,7 +63,7 @@
     "</ul>"
     "</body>";
 
-AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) {
+AboutWindow::AboutWindow(QWidget* parent) : Dialog(parent) {
 	setMinimumSize(641, 325);
 	setWindowTitle(tr("About Minori"));
 	setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
@@ -95,10 +95,3 @@
 		});
 	}
 }
-
-void AboutWindow::showEvent(QShowEvent* event) {
-	QDialog::showEvent(event);
-#ifdef WIN32
-	win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme());
-#endif
-}