Mercurial > minori
comparison src/gui/dialog/dialog.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 | |
| children | ea3a74ed2ef9 |
comparison
equal
deleted
inserted
replaced
| 367:8d45d892be88 | 368:6d37a998cf91 |
|---|---|
| 1 #include "gui/dialog/dialog.h" | |
| 2 #include "gui/widgets/text.h" | |
| 3 | |
| 4 #ifdef WIN32 | |
| 5 # include "sys/win32/dark_theme.h" | |
| 6 #endif | |
| 7 | |
| 8 void Dialog::showEvent(QShowEvent* event) { | |
| 9 QDialog::showEvent(event); | |
| 10 #ifdef WIN32 | |
| 11 win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme()); | |
| 12 #endif | |
| 13 } |
