Mercurial > hg > svgui
diff view/View.cpp @ 292:24fc90078754
* Add QuickTime file reader class -- totally untested, shouldn't even compile
author | Chris Cannam |
---|---|
date | Mon, 06 Aug 2007 14:37:59 +0000 |
parents | cd2492c5fe45 |
children | ea37c229a578 |
line wrap: on
line diff
--- a/view/View.cpp Mon Jul 16 14:06:03 2007 +0000 +++ b/view/View.cpp Mon Aug 06 14:37:59 2007 +0000 @@ -436,11 +436,7 @@ View::hasLightBackground() const { bool darkPalette = false; - - QColor windowBg = palette().color(QPalette::Window); - if (windowBg.red() + windowBg.green() + windowBg.blue() < 384) { - darkPalette = true; - } + if (m_manager) darkPalette = m_manager->getGlobalDarkBackground(); Layer::ColourSignificance maxSignificance = Layer::ColourAbsent; bool mostSignificantHasDarkBackground = false;