diff --git a/cmake/apple/CMakeLists.txt b/cmake/apple/CMakeLists.txt index ff1a8ea46..835d886b9 100644 --- a/cmake/apple/CMakeLists.txt +++ b/cmake/apple/CMakeLists.txt @@ -1,4 +1,4 @@ -SET(MACOSX_BUNDLE_ICON_FILE "lmms.icns") +SET(MACOSX_BUNDLE_ICON_FILE "icon.icns") SET(MACOSX_BUNDLE_GUI_IDENTIFIER "${PROJECT_NAME_UCASE}") SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${VERSION}") SET(MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME_UCASE}") diff --git a/cmake/apple/icon.icns b/cmake/apple/icon.icns new file mode 100644 index 000000000..3ee7857f4 Binary files /dev/null and b/cmake/apple/icon.icns differ diff --git a/cmake/apple/lmms.icns b/cmake/apple/lmms.icns deleted file mode 100644 index e54187b5c..000000000 Binary files a/cmake/apple/lmms.icns and /dev/null differ diff --git a/cmake/apple/project.icns b/cmake/apple/project.icns index 930afc217..9ae58d7fb 100644 Binary files a/cmake/apple/project.icns and b/cmake/apple/project.icns differ diff --git a/cmake/linux/CMakeLists.txt b/cmake/linux/CMakeLists.txt index 87f419405..24cc859c3 100644 --- a/cmake/linux/CMakeLists.txt +++ b/cmake/linux/CMakeLists.txt @@ -1,5 +1,4 @@ -INSTALL(FILES lmms.svg DESTINATION "${DATA_DIR}/icons/hicolor/scalable/apps") -INSTALL(FILES project.svg DESTINATION "${DATA_DIR}/icons/hicolor/scalable/mimetypes/" RENAME "application-x-lmms-project.svg") +INSTALL(DIRECTORY icons/ DESTINATION "${DATA_DIR}/icons/hicolor") INSTALL(FILES lmms.desktop DESTINATION "${DATA_DIR}/applications") INSTALL(FILES lmms.xml DESTINATION "${DATA_DIR}/mime/packages") diff --git a/cmake/linux/icons/128x128/apps/lmms.png b/cmake/linux/icons/128x128/apps/lmms.png new file mode 100644 index 000000000..7bad96f98 Binary files /dev/null and b/cmake/linux/icons/128x128/apps/lmms.png differ diff --git a/cmake/linux/icons/128x128/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/128x128/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..7a016d0ed Binary files /dev/null and b/cmake/linux/icons/128x128/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/128x128@2/apps/lmms.png b/cmake/linux/icons/128x128@2/apps/lmms.png new file mode 100644 index 000000000..a75f1b237 Binary files /dev/null and b/cmake/linux/icons/128x128@2/apps/lmms.png differ diff --git a/cmake/linux/icons/128x128@2/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/128x128@2/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..e7dbe591f Binary files /dev/null and b/cmake/linux/icons/128x128@2/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/16x16/apps/lmms.png b/cmake/linux/icons/16x16/apps/lmms.png new file mode 100644 index 000000000..7148c9373 Binary files /dev/null and b/cmake/linux/icons/16x16/apps/lmms.png differ diff --git a/cmake/linux/icons/16x16/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/16x16/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..b3ef2151e Binary files /dev/null and b/cmake/linux/icons/16x16/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/16x16@2/apps/lmms.png b/cmake/linux/icons/16x16@2/apps/lmms.png new file mode 100644 index 000000000..f6ca1cb29 Binary files /dev/null and b/cmake/linux/icons/16x16@2/apps/lmms.png differ diff --git a/cmake/linux/icons/16x16@2/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/16x16@2/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..d4b20ae01 Binary files /dev/null and b/cmake/linux/icons/16x16@2/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/24x24/apps/lmms.png b/cmake/linux/icons/24x24/apps/lmms.png new file mode 100644 index 000000000..988da8872 Binary files /dev/null and b/cmake/linux/icons/24x24/apps/lmms.png differ diff --git a/cmake/linux/icons/24x24/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/24x24/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..548660bb2 Binary files /dev/null and b/cmake/linux/icons/24x24/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/24x24@2/apps/lmms.png b/cmake/linux/icons/24x24@2/apps/lmms.png new file mode 100644 index 000000000..76d9e5b9b Binary files /dev/null and b/cmake/linux/icons/24x24@2/apps/lmms.png differ diff --git a/cmake/linux/icons/24x24@2/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/24x24@2/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..a8bbf9d01 Binary files /dev/null and b/cmake/linux/icons/24x24@2/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/32x32/apps/lmms.png b/cmake/linux/icons/32x32/apps/lmms.png new file mode 100644 index 000000000..5f67ceb1d Binary files /dev/null and b/cmake/linux/icons/32x32/apps/lmms.png differ diff --git a/cmake/linux/icons/32x32/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/32x32/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..9aabbde82 Binary files /dev/null and b/cmake/linux/icons/32x32/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/32x32@2/apps/lmms.png b/cmake/linux/icons/32x32@2/apps/lmms.png new file mode 100644 index 000000000..4504c4a66 Binary files /dev/null and b/cmake/linux/icons/32x32@2/apps/lmms.png differ diff --git a/cmake/linux/icons/32x32@2/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/32x32@2/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..87ca938aa Binary files /dev/null and b/cmake/linux/icons/32x32@2/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/48x48/apps/lmms.png b/cmake/linux/icons/48x48/apps/lmms.png new file mode 100644 index 000000000..4b2c9fc87 Binary files /dev/null and b/cmake/linux/icons/48x48/apps/lmms.png differ diff --git a/cmake/linux/icons/48x48/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/48x48/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..4ea287a9b Binary files /dev/null and b/cmake/linux/icons/48x48/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/48x48@2/apps/lmms.png b/cmake/linux/icons/48x48@2/apps/lmms.png new file mode 100644 index 000000000..af2c5eda2 Binary files /dev/null and b/cmake/linux/icons/48x48@2/apps/lmms.png differ diff --git a/cmake/linux/icons/48x48@2/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/48x48@2/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..c583535d6 Binary files /dev/null and b/cmake/linux/icons/48x48@2/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/64x64/apps/lmms.png b/cmake/linux/icons/64x64/apps/lmms.png new file mode 100644 index 000000000..52b25564f Binary files /dev/null and b/cmake/linux/icons/64x64/apps/lmms.png differ diff --git a/cmake/linux/icons/64x64/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/64x64/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..96bfae222 Binary files /dev/null and b/cmake/linux/icons/64x64/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/64x64@2/apps/lmms.png b/cmake/linux/icons/64x64@2/apps/lmms.png new file mode 100644 index 000000000..9e9403a22 Binary files /dev/null and b/cmake/linux/icons/64x64@2/apps/lmms.png differ diff --git a/cmake/linux/icons/64x64@2/mimetypes/application-x-lmms-project.png b/cmake/linux/icons/64x64@2/mimetypes/application-x-lmms-project.png new file mode 100644 index 000000000..7a016d0ed Binary files /dev/null and b/cmake/linux/icons/64x64@2/mimetypes/application-x-lmms-project.png differ diff --git a/cmake/linux/icons/scalable/apps/lmms.svg b/cmake/linux/icons/scalable/apps/lmms.svg new file mode 100644 index 000000000..fc0867aa6 --- /dev/null +++ b/cmake/linux/icons/scalable/apps/lmms.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/cmake/linux/icons/scalable/mimetypes/application-x-lmms-project.svg b/cmake/linux/icons/scalable/mimetypes/application-x-lmms-project.svg new file mode 100644 index 000000000..29697ece8 --- /dev/null +++ b/cmake/linux/icons/scalable/mimetypes/application-x-lmms-project.svg @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/cmake/linux/lmms.png b/cmake/linux/lmms.png deleted file mode 100644 index ae9fe6a2a..000000000 Binary files a/cmake/linux/lmms.png and /dev/null differ diff --git a/cmake/linux/lmms.svg b/cmake/linux/lmms.svg deleted file mode 100644 index ffe6976ce..000000000 --- a/cmake/linux/lmms.svg +++ /dev/null @@ -1,1540 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cmake/linux/project.svg b/cmake/linux/project.svg deleted file mode 100644 index 62888e277..000000000 --- a/cmake/linux/project.svg +++ /dev/null @@ -1,1912 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mmpz - - - - mmpz - mmpz - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cmake/nsis/CMakeLists.txt b/cmake/nsis/CMakeLists.txt index b21c920e5..eb9868bf5 100644 --- a/cmake/nsis/CMakeLists.txt +++ b/cmake/nsis/CMakeLists.txt @@ -1,5 +1,5 @@ SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/nsis_branding.bmp") -SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/lmms.ico") +SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/icon.ico") SET(CPACK_NSIS_INSTALLED_ICON_NAME "${CMAKE_PROJECT_NAME}.exe" PARENT_SCOPE) SET(CPACK_NSIS_DISPLAY_NAME "${PROJECT_NAME_UCASE} ${VERSION}" PARENT_SCOPE) SET(CPACK_NSIS_HELP_LINK "${PROJECT_URL}" PARENT_SCOPE) @@ -71,3 +71,5 @@ IF(LMMS_HAVE_STK) ENDIF() INSTALL(FILES "lmms.exe.manifest" DESTINATION .) +INSTALL(FILES "lmms.VisualElementsManifest.xml" DESTINATION .) +INSTALL(DIRECTORY "assets" DESTINATION .) diff --git a/cmake/nsis/FileAssociation.nsh b/cmake/nsis/FileAssociation.nsh index 061df6c4f..2ae430504 100644 --- a/cmake/nsis/FileAssociation.nsh +++ b/cmake/nsis/FileAssociation.nsh @@ -129,6 +129,7 @@ NoBackup: WriteRegStr HKCR "$R0" "" "$R0" WriteRegStr HKCR "$R0\shell" "" "open" Skip: + WriteRegStr HKCR "$R0\DefaultIcon" "" "$R2,1" WriteRegStr HKCR "$R0\shell\open\command" "" '"$R2" "%1"' WriteRegStr HKCR "$R0\shell\edit" "" "Edit $R0" WriteRegStr HKCR "$R0\shell\edit\command" "" '"$R2" "%1"' diff --git a/cmake/nsis/assets/Logo.png b/cmake/nsis/assets/Logo.png new file mode 100644 index 000000000..e1566b218 Binary files /dev/null and b/cmake/nsis/assets/Logo.png differ diff --git a/cmake/nsis/assets/SmallLogo.png b/cmake/nsis/assets/SmallLogo.png new file mode 100644 index 000000000..23d44ee28 Binary files /dev/null and b/cmake/nsis/assets/SmallLogo.png differ diff --git a/cmake/nsis/icon.ico b/cmake/nsis/icon.ico new file mode 100644 index 000000000..96125a1bb Binary files /dev/null and b/cmake/nsis/icon.ico differ diff --git a/cmake/nsis/lmms.VisualElementsManifest.xml b/cmake/nsis/lmms.VisualElementsManifest.xml new file mode 100644 index 000000000..6bda439b0 --- /dev/null +++ b/cmake/nsis/lmms.VisualElementsManifest.xml @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/cmake/nsis/lmms.ico b/cmake/nsis/lmms.ico deleted file mode 100644 index 9ee65b86d..000000000 Binary files a/cmake/nsis/lmms.ico and /dev/null differ diff --git a/cmake/nsis/lmms.rc.in b/cmake/nsis/lmms.rc.in index f153ee235..a3723b20d 100644 --- a/cmake/nsis/lmms.rc.in +++ b/cmake/nsis/lmms.rc.in @@ -1,4 +1,5 @@ -lmmsicon ICON cmake/nsis/lmms.ico +lmmsicon ICON cmake/nsis/icon.ico +lmmsprojecticon ICON cmake/nsis/project.ico #include VS_VERSION_INFO VERSIONINFO diff --git a/cmake/nsis/nsis_branding.bmp b/cmake/nsis/nsis_branding.bmp index a7e75e3c1..939f2ebab 100644 Binary files a/cmake/nsis/nsis_branding.bmp and b/cmake/nsis/nsis_branding.bmp differ diff --git a/cmake/nsis/project.ico b/cmake/nsis/project.ico new file mode 100644 index 000000000..4b994f321 Binary files /dev/null and b/cmake/nsis/project.ico differ diff --git a/data/themes/classic/icon_small.png b/data/themes/classic/icon_small.png new file mode 100644 index 000000000..522290061 Binary files /dev/null and b/data/themes/classic/icon_small.png differ diff --git a/data/themes/default/icon.png b/data/themes/default/icon.png index ae9fe6a2a..ec881aacf 100644 Binary files a/data/themes/default/icon.png and b/data/themes/default/icon.png differ diff --git a/data/themes/default/icon_small.png b/data/themes/default/icon_small.png new file mode 100644 index 000000000..fd74011f9 Binary files /dev/null and b/data/themes/default/icon_small.png differ diff --git a/src/core/main.cpp b/src/core/main.cpp index 721f83479..4a6654a5d 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -791,7 +791,7 @@ int main( int argc, char * * argv ) ) ); mb.setIcon( QMessageBox::Warning ); - mb.setWindowIcon( embed::getIconPixmap( "icon" ) ); + mb.setWindowIcon( embed::getIconPixmap( "icon_small" ) ); mb.setWindowFlags( Qt::WindowCloseButtonHint ); QPushButton * recover; diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index d82d5befe..6be277095 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -257,7 +257,7 @@ MainWindow::~MainWindow() void MainWindow::finalize() { resetWindowTitle(); - setWindowIcon( embed::getIconPixmap( "icon" ) ); + setWindowIcon( embed::getIconPixmap( "icon_small" ) ); // project-popup-menu @@ -408,7 +408,7 @@ void MainWindow::finalize() #if !(defined(LMMS_BUILD_APPLE) && (QT_VERSION >= 0x050000) && (QT_VERSION < 0x050600)) help_menu->addSeparator(); #endif - help_menu->addAction( embed::getIconPixmap( "icon" ), tr( "About" ), + help_menu->addAction( embed::getIconPixmap( "icon_small" ), tr( "About" ), this, SLOT( aboutLMMS() ) ); // create tool-buttons