diff --git a/dist/mac/AppIcon.icon/Assets/background.svg b/dist/mac/AppIcon.icon/Assets/background.svg new file mode 100644 index 000000000..e78a7350f --- /dev/null +++ b/dist/mac/AppIcon.icon/Assets/background.svg @@ -0,0 +1 @@ +e \ No newline at end of file diff --git a/dist/mac/AppIcon.icon/Assets/border.svg b/dist/mac/AppIcon.icon/Assets/border.svg new file mode 100644 index 000000000..f07e219b0 --- /dev/null +++ b/dist/mac/AppIcon.icon/Assets/border.svg @@ -0,0 +1 @@ +Icon-Shape \ No newline at end of file diff --git a/dist/mac/AppIcon.icon/Assets/qb.svg b/dist/mac/AppIcon.icon/Assets/qb.svg new file mode 100644 index 000000000..dcac0097c --- /dev/null +++ b/dist/mac/AppIcon.icon/Assets/qb.svg @@ -0,0 +1 @@ +Untitled \ No newline at end of file diff --git a/dist/mac/AppIcon.icon/icon.json b/dist/mac/AppIcon.icon/icon.json new file mode 100644 index 000000000..a09ddf96e --- /dev/null +++ b/dist/mac/AppIcon.icon/icon.json @@ -0,0 +1,70 @@ +{ + "fill" : "automatic", + "groups" : [ + { + "blur-material" : null, + "layers" : [ + { + "hidden" : false, + "image-name" : "qb.svg", + "name" : "qb" + } + ], + "shadow" : { + "kind" : "layer-color", + "opacity" : 0.5 + }, + "specular" : true, + "translucency" : { + "enabled" : true, + "value" : 0.5 + } + }, + { + "hidden" : false, + "layers" : [ + { + "glass" : false, + "image-name" : "border.svg", + "name" : "border", + "position" : { + "scale" : 1.05, + "translation-in-points" : [ + 0, + 0 + ] + } + }, + { + "fill" : "automatic", + "glass" : false, + "image-name" : "background.svg", + "name" : "background", + "position" : { + "scale" : 1.46, + "translation-in-points" : [ + 0, + 0 + ] + } + } + ], + "lighting" : "individual", + "shadow" : { + "kind" : "none", + "opacity" : 0.5 + }, + "specular" : false, + "translucency" : { + "enabled" : false, + "value" : 0.5 + } + } + ], + "supported-platforms" : { + "circles" : [ + "watchOS" + ], + "squares" : "shared" + } +} diff --git a/dist/mac/Info.plist b/dist/mac/Info.plist index bebe2f1fb..a41cd10db 100644 --- a/dist/mac/Info.plist +++ b/dist/mac/Info.plist @@ -32,6 +32,30 @@ LSIsAppleDefaultForType + + CFBundleTypeExtensions + + !qB + + CFBundleTypeIconFile + qBitTorrentIncompleteData + CFBundleTypeName + qBitTorrent Incomplete Data + CFBundleTypeRole + Viewer + LSHandlerRank + Owner + LSItemContentTypes + + org.qbittorrent.qBittorrent.incompletedata + + NSExportableTypes + + org.qbittorrent.qBittorrent.incompletedata + + LSIsAppleDefaultForType + + CFBundleURLTypes @@ -101,6 +125,26 @@ + + UTTypeConformsTo + + public.data + public.item + + UTTypeDescription + qBitTorrent Incomplete Data + UTTypeIconFile + qBitTorrentIncompleteData + UTTypeIdentifier + org.qbittorrent.qBittorrent.incompletedata + UTTypeTagSpecification + + public.filename-extension + + !qB + + + diff --git a/dist/mac/qBitTorrentDocument.icns b/dist/mac/qBitTorrentDocument.icns index d257dc2d9..12dec3441 100644 Binary files a/dist/mac/qBitTorrentDocument.icns and b/dist/mac/qBitTorrentDocument.icns differ diff --git a/dist/mac/qBitTorrentIncompleteData.icns b/dist/mac/qBitTorrentIncompleteData.icns new file mode 100644 index 000000000..b840b9165 Binary files /dev/null and b/dist/mac/qBitTorrentIncompleteData.icns differ diff --git a/dist/mac/qbittorrent_mac.icns b/dist/mac/qbittorrent_mac.icns index a618a87a4..f6855fc42 100644 Binary files a/dist/mac/qbittorrent_mac.icns and b/dist/mac/qbittorrent_mac.icns differ diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 4c007ce1e..1b222ee06 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -82,6 +82,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") set_source_files_properties( "${qBittorrent_SOURCE_DIR}/dist/mac/qt.conf" "${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentDocument.icns" + "${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentIncompleteData.icns" "${qBittorrent_SOURCE_DIR}/dist/mac/qbittorrent_mac.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources @@ -112,6 +113,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") ${QT_TRANSLATIONS} ${qBittorrent_SOURCE_DIR}/dist/mac/qt.conf ${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentDocument.icns + ${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentIncompleteData.icns ${qBittorrent_SOURCE_DIR}/dist/mac/qbittorrent_mac.icns ) elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")