diff src/gui/dialog/settings.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 180714442770
children ea3a74ed2ef9
line wrap: on
line diff
--- a/src/gui/dialog/settings.cc	Sun Nov 17 22:55:47 2024 -0500
+++ b/src/gui/dialog/settings.cc	Fri Jul 25 10:05:23 2025 -0400
@@ -71,15 +71,8 @@
 	QDialog::accept();
 }
 
-void SettingsDialog::showEvent(QShowEvent* event) {
-	QDialog::showEvent(event);
-#ifdef WIN32
-	win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme());
-#endif
-}
-
 SettingsDialog::SettingsDialog(QWidget* parent)
-	: QDialog(parent)
+	: Dialog(parent)
 	, layout_(this)
 	, widget_layout_(&widget_)
 	, button_box_(QDialogButtonBox::Ok | QDialogButtonBox::Cancel) {