Mercurial > minori
diff src/gui/dialog/licenses.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/licenses.cc Sun Nov 17 22:55:47 2024 -0500 +++ b/src/gui/dialog/licenses.cc Fri Jul 25 10:05:23 2025 -0400 @@ -63,7 +63,7 @@ tab_widget->addTab(dual, title1); } -LicensesWindow::LicensesWindow(QWidget* parent) : QDialog(parent) { +LicensesWindow::LicensesWindow(QWidget* parent) : Dialog(parent) { resize(641, 500); setWindowTitle(tr("About Minori")); setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); @@ -88,10 +88,3 @@ create_basic_license(tab_widget, ":/licenses/LICENSE.toml11", tr("toml11")); create_basic_license(tab_widget, ":/licenses/LICENSE.utf8proc", tr("utf8proc")); } - -void LicensesWindow::showEvent(QShowEvent* event) { - QDialog::showEvent(event); -#ifdef WIN32 - win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme()); -#endif -}