# HG changeset patch # User Chris Cannam # Date 1184256899 0 # Node ID 4d762fe1091965d88236f92d498315843577f0e0 # Parent 33280c031d190e7b4fd7fd7cea1646ccbc5c4c42 * Add SingleColourLayer to manage colours for layers that have a single predominant colour (i.e. most of them). diff -r 33280c031d19 -r 4d762fe10919 main/MainWindow.cpp --- 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())); diff -r 33280c031d19 -r 4d762fe10919 main/main.cpp --- a/main/main.cpp Wed Jul 11 17:21:37 2007 +0000 +++ b/main/main.cpp Thu Jul 12 16:14:59 2007 +0000 @@ -299,6 +299,7 @@ if (i->startsWith('-')) continue; if (i->startsWith("http:") || i->startsWith("ftp:")) { + std::cerr << "opening URL: \"" << i->toStdString() << "\"..." << std::endl; status = gui.openURL(QUrl(*i)); continue; }