annotate src/gui/dialog/dialog.cc @ 378:5912dafc6e28

anime: add poster cache :)
author Paper <paper@tflc.us>
date Wed, 05 Nov 2025 12:50:35 -0500
parents 5d716acb2774
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"
376
5d716acb2774 gui/dialog/dialog: fix win32 build
Paper <paper@tflc.us>
parents: 370
diff changeset
3 #include "core/session.h"
368
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
4
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
5 #ifdef WIN32
370
ea3a74ed2ef9 *: hm, last commit wasn't quite finished?
Paper <paper@tflc.us>
parents: 368
diff changeset
6 # include "sys/win32/dark_theme.h"
368
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
7 #endif
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
8
370
ea3a74ed2ef9 *: hm, last commit wasn't quite finished?
Paper <paper@tflc.us>
parents: 368
diff changeset
9 void Dialog::showEvent(QShowEvent *event)
ea3a74ed2ef9 *: hm, last commit wasn't quite finished?
Paper <paper@tflc.us>
parents: 368
diff changeset
10 {
368
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
11 QDialog::showEvent(event);
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
12 #ifdef WIN32
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
13 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
14 #endif
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
15 }