Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 367:8d45d892be88 | 368:6d37a998cf91 |
|---|---|
| 61 "<li><strong>Andy Brice</strong> for providing some sample code for detecting dark mode on Windows and macOS</li>" | 61 "<li><strong>Andy Brice</strong> for providing some sample code for detecting dark mode on Windows and macOS</li>" |
| 62 "<li><strong>Manuel Wudka-Robles</strong> for providing information on getting open file descriptors on macOS</li>" | 62 "<li><strong>Manuel Wudka-Robles</strong> for providing information on getting open file descriptors on macOS</li>" |
| 63 "</ul>" | 63 "</ul>" |
| 64 "</body>"; | 64 "</body>"; |
| 65 | 65 |
| 66 AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) { | 66 AboutWindow::AboutWindow(QWidget* parent) : Dialog(parent) { |
| 67 setMinimumSize(641, 325); | 67 setMinimumSize(641, 325); |
| 68 setWindowTitle(tr("About Minori")); | 68 setWindowTitle(tr("About Minori")); |
| 69 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); | 69 setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); |
| 70 setAutoFillBackground(true); | 70 setAutoFillBackground(true); |
| 71 | 71 |
| 93 LicensesWindow dialog; | 93 LicensesWindow dialog; |
| 94 dialog.exec(); | 94 dialog.exec(); |
| 95 }); | 95 }); |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 | |
| 99 void AboutWindow::showEvent(QShowEvent* event) { | |
| 100 QDialog::showEvent(event); | |
| 101 #ifdef WIN32 | |
| 102 win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme()); | |
| 103 #endif | |
| 104 } |
