annotate src/gui/dialog/dialog.cc @ 375:abd956418fe9

gui/pages/now_playing: automatically update progress when the episode is "finished"
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 11:22:55 -0400
parents ea3a74ed2ef9
children 5d716acb2774
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"
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
370
ea3a74ed2ef9 *: hm, last commit wasn't quite finished?
Paper <paper@tflc.us>
parents: 368
diff changeset
5 # 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
6 #endif
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
7
370
ea3a74ed2ef9 *: hm, last commit wasn't quite finished?
Paper <paper@tflc.us>
parents: 368
diff changeset
8 void Dialog::showEvent(QShowEvent *event)
ea3a74ed2ef9 *: hm, last commit wasn't quite finished?
Paper <paper@tflc.us>
parents: 368
diff changeset
9 {
368
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
10 QDialog::showEvent(event);
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
11 #ifdef WIN32
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
12 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
13 #endif
6d37a998cf91 gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff changeset
14 }