# HG changeset patch # User Chris Cannam # Date 1178103032 0 # Node ID c3114dffdff44fd75f87149fac3cb5e0ded2b51a # Parent 107ca17594c8d55dc2d9b127a1e6648bd68c3c4c * Add svg-based icon diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-128x128.png Binary file icons/sv-128x128.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-16x16.png Binary file icons/sv-16x16.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-22x22.png Binary file icons/sv-22x22.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-24x24.png Binary file icons/sv-24x24.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-32x32.png Binary file icons/sv-32x32.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-48x48.png Binary file icons/sv-48x48.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-64x64.png Binary file icons/sv-64x64.png has changed diff -r 107ca17594c8 -r c3114dffdff4 icons/sv-icon.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/icons/sv-icon.svg Wed May 02 10:50:32 2007 +0000 @@ -0,0 +1,507 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff -r 107ca17594c8 -r c3114dffdff4 main/main.cpp --- a/main/main.cpp Mon Apr 30 14:31:39 2007 +0000 +++ b/main/main.cpp Wed May 02 10:50:32 2007 +0000 @@ -223,7 +223,13 @@ QApplication::setOrganizationName("sonic-visualiser"); QApplication::setOrganizationDomain("sonicvisualiser.org"); QApplication::setApplicationName("sonic-visualiser"); - QApplication::setWindowIcon(QIcon(":icons/svicon16.png")); + + QIcon icon; + int sizes[] = { 16, 22, 24, 32, 48, 64, 128 }; + for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) { + icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i])); + } + QApplication::setWindowIcon(icon); QString language = QLocale::system().name(); diff -r 107ca17594c8 -r c3114dffdff4 sonic-visualiser.qrc --- a/sonic-visualiser.qrc Mon Apr 30 14:31:39 2007 +0000 +++ b/sonic-visualiser.qrc Wed May 02 10:50:32 2007 +0000 @@ -56,8 +56,13 @@ icons/stereo.png icons/sharpen.png icons/help.png - icons/svicon16.png - icons/svicon32.png + icons/sv-16x16.png + icons/sv-22x22.png + icons/sv-24x24.png + icons/sv-32x32.png + icons/sv-48x48.png + icons/sv-64x64.png + icons/sv-128x128.png samples/bass.wav samples/beep.wav samples/bounce.wav