Mercurial > minori
annotate 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 |
| rev | line source |
|---|---|
|
368
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
1 #include "gui/dialog/dialog.h" |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
2 #include "gui/widgets/text.h" |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
3 |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
4 #ifdef WIN32 |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
5 # include "sys/win32/dark_theme.h" |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
6 #endif |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
7 |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
8 void Dialog::showEvent(QShowEvent* event) { |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
9 QDialog::showEvent(event); |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
10 #ifdef WIN32 |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
11 win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme()); |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
12 #endif |
|
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
13 } |
