comparison src/gui/dialog/settings.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 180714442770
children ea3a74ed2ef9
comparison
equal deleted inserted replaced
367:8d45d892be88 368:6d37a998cf91
69 torrents_page_.SaveInfo(); 69 torrents_page_.SaveInfo();
70 70
71 QDialog::accept(); 71 QDialog::accept();
72 } 72 }
73 73
74 void SettingsDialog::showEvent(QShowEvent* event) {
75 QDialog::showEvent(event);
76 #ifdef WIN32
77 win32::SetTitleBarsToBlack(session.config.theme.IsInDarkTheme());
78 #endif
79 }
80
81 SettingsDialog::SettingsDialog(QWidget* parent) 74 SettingsDialog::SettingsDialog(QWidget* parent)
82 : QDialog(parent) 75 : Dialog(parent)
83 , layout_(this) 76 , layout_(this)
84 , widget_layout_(&widget_) 77 , widget_layout_(&widget_)
85 , button_box_(QDialogButtonBox::Ok | QDialogButtonBox::Cancel) { 78 , button_box_(QDialogButtonBox::Ok | QDialogButtonBox::Cancel) {
86 setFixedSize(755, 566); 79 setFixedSize(755, 566);
87 setWindowTitle(tr("Settings")); 80 setWindowTitle(tr("Settings"));