Mercurial > minori
diff src/gui/dialog/information.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 | 6b0768158dcd |
children | ea3a74ed2ef9 |
line wrap: on
line diff
--- a/src/gui/dialog/information.cc Sun Nov 17 22:55:47 2024 -0500 +++ b/src/gui/dialog/information.cc Fri Jul 25 10:05:23 2025 -0400 @@ -47,7 +47,7 @@ InformationDialog::InformationDialog(Anime::Anime* anime, std::function<void(Anime::Anime*)> accept, enum Pages page, QWidget* parent) - : QDialog(parent) { + : Dialog(parent) { /* ack. lots of brackets here, but MUCH, MUCH MUCH better than what it used to be */ setFixedSize(842, 613); setWindowTitle(tr("Anime Information")); @@ -317,10 +317,3 @@ full_layout->addWidget(button_box, 0, Qt::AlignBottom); } } - -void InformationDialog::showEvent(QShowEvent* event) { - QDialog::showEvent(event); -#ifdef WIN32 - win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme()); -#endif -}