Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 166:4d762fe10919
* Add SingleColourLayer to manage colours for layers that have a single
predominant colour (i.e. most of them).
author | Chris Cannam |
---|---|
date | Thu, 12 Jul 2007 16:14:59 +0000 |
parents | 33280c031d19 |
children | aca2c23f0f09 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Wed Jul 11 17:21:37 2007 +0000 +++ b/main/MainWindow.cpp Thu Jul 12 16:14:59 2007 +0000 @@ -152,6 +152,12 @@ cdb->addColour(Qt::darkGreen, tr("Green")); cdb->addColour(QColor(200, 50, 255), tr("Purple")); cdb->addColour(QColor(255, 150, 50), tr("Orange")); + cdb->setUseDarkBackground(cdb->addColour(Qt::white, tr("White")), true); + cdb->setUseDarkBackground(cdb->addColour(Qt::red, tr("Bright Red")), true); + cdb->setUseDarkBackground(cdb->addColour(QColor(30, 150, 255), tr("Bright Blue")), true); + cdb->setUseDarkBackground(cdb->addColour(Qt::green, tr("Bright Green")), true); + cdb->setUseDarkBackground(cdb->addColour(QColor(225, 74, 255), tr("Bright Purple")), true); + cdb->setUseDarkBackground(cdb->addColour(QColor(255, 188, 80), tr("Bright Orange")), true); connect(CommandHistory::getInstance(), SIGNAL(commandExecuted()), this, SLOT(documentModified()));