Mercurial > minori
diff src/gui/window.cc @ 105:6d8da6e64d61
theme: add dark stylesheet, make it actually usable
win32: make the titlebar black where available
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 03:54:26 -0500 |
parents | 621084cc542c |
children | c8c72278f6fd |
line wrap: on
line diff
--- a/src/gui/window.cc Sun Nov 05 02:35:27 2023 -0500 +++ b/src/gui/window.cc Sun Nov 05 03:54:26 2023 -0500 @@ -272,6 +272,13 @@ this->setCentralWidget(page); } +void MainWindow::showEvent(QShowEvent* event) { + QMainWindow::showEvent(event); +#ifdef WIN32 + win32::SetTitleBarToBlack(this, session.config.theme.IsInDarkMode()); +#endif +} + void MainWindow::closeEvent(QCloseEvent* event) { session.config.Save(); event->accept();