Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 733:a39538eaed9d background-mode
Follow desktop theme (on Windows)
author | Chris Cannam |
---|---|
date | Fri, 17 Jan 2020 21:38:43 +0000 |
parents | c980a0300c58 |
children | de7969894402 |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Fri Jan 17 13:46:42 2020 +0000 +++ b/framework/MainWindowBase.cpp Fri Jan 17 21:38:43 2020 +0000 @@ -214,6 +214,9 @@ #ifndef Q_OS_MAC Preferences::BackgroundMode mode = Preferences::getInstance()->getBackgroundMode(); + if (mode == Preferences::BackgroundFromTheme && OSThemeIsDark()) { + mode = Preferences::DarkBackground; + } m_initialDarkBackground = m_viewManager->getGlobalDarkBackground(); if (mode != Preferences::BackgroundFromTheme) { m_viewManager->setGlobalDarkBackground