Mercurial > hg > svgui
diff view/View.cpp @ 296:ea37c229a578
* Fix #1757772 tempo, dynamic related plug-ins bug -- make auto-align
only auto-align if there is a unit involved
* Fix #1755366 text layer bug in retrieved session
* Fix input model selection in plugin parameter dialog (was being ignored)
* Use lighter background than the standard widget one for panes (assuming the
widget background is light but not white) -- similarly darker if dark
* Fix colour reference counting in loaded session in SingleColourLayer
* Reset overview pane colour when switching dark background on or off
author | Chris Cannam |
---|---|
date | Tue, 14 Aug 2007 13:58:53 +0000 |
parents | 24fc90078754 |
children | 226cb289bdf4 |
line wrap: on
line diff
--- a/view/View.cpp Mon Aug 13 14:53:28 2007 +0000 +++ b/view/View.cpp Tue Aug 14 13:58:53 2007 +0000 @@ -471,7 +471,13 @@ bool widgetLight = (widgetbg.red() + widgetbg.green() + widgetbg.blue()) > 384; - if (widgetLight == light) return widgetbg; + if (widgetLight == light) { + if (widgetLight) { + return widgetbg.light(); + } else { + return widgetbg.dark(); + } + } else if (light) return Qt::white; else return Qt::black; }