Skip to content

Commit 5f9918c

Browse files
Vaida12345Chocobo1
andauthored
Improve icons for macOS
macOS 26 uses new design for app icons, with a different corner radius for app icons, making the previous icon unfit for the new version. Hence I created a new icon with the project folder attached (AppIcon.icon). I also updated the document icon to give it a more modern style. And an icon for temp files (!qB files), and I have edited the info.plist accordingly. PR #23365. --------- Co-authored-by: Chocobo1 <[email protected]>
1 parent df2998c commit 5f9918c

File tree

9 files changed

+119
-0
lines changed

9 files changed

+119
-0
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

dist/mac/AppIcon.icon/icon.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"fill" : "automatic",
3+
"groups" : [
4+
{
5+
"blur-material" : null,
6+
"layers" : [
7+
{
8+
"hidden" : false,
9+
"image-name" : "qb.svg",
10+
"name" : "qb"
11+
}
12+
],
13+
"shadow" : {
14+
"kind" : "layer-color",
15+
"opacity" : 0.5
16+
},
17+
"specular" : true,
18+
"translucency" : {
19+
"enabled" : true,
20+
"value" : 0.5
21+
}
22+
},
23+
{
24+
"hidden" : false,
25+
"layers" : [
26+
{
27+
"glass" : false,
28+
"image-name" : "border.svg",
29+
"name" : "border",
30+
"position" : {
31+
"scale" : 1.05,
32+
"translation-in-points" : [
33+
0,
34+
0
35+
]
36+
}
37+
},
38+
{
39+
"fill" : "automatic",
40+
"glass" : false,
41+
"image-name" : "background.svg",
42+
"name" : "background",
43+
"position" : {
44+
"scale" : 1.46,
45+
"translation-in-points" : [
46+
0,
47+
0
48+
]
49+
}
50+
}
51+
],
52+
"lighting" : "individual",
53+
"shadow" : {
54+
"kind" : "none",
55+
"opacity" : 0.5
56+
},
57+
"specular" : false,
58+
"translucency" : {
59+
"enabled" : false,
60+
"value" : 0.5
61+
}
62+
}
63+
],
64+
"supported-platforms" : {
65+
"circles" : [
66+
"watchOS"
67+
],
68+
"squares" : "shared"
69+
}
70+
}

dist/mac/Info.plist

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@
3232
<key>LSIsAppleDefaultForType</key>
3333
<true/>
3434
</dict>
35+
<dict>
36+
<key>CFBundleTypeExtensions</key>
37+
<array>
38+
<string>!qB</string>
39+
</array>
40+
<key>CFBundleTypeIconFile</key>
41+
<string>qBitTorrentIncompleteData</string>
42+
<key>CFBundleTypeName</key>
43+
<string>qBitTorrent Incomplete Data</string>
44+
<key>CFBundleTypeRole</key>
45+
<string>Viewer</string>
46+
<key>LSHandlerRank</key>
47+
<string>Owner</string>
48+
<key>LSItemContentTypes</key>
49+
<array>
50+
<string>org.qbittorrent.qBittorrent.incompletedata</string>
51+
</array>
52+
<key>NSExportableTypes</key>
53+
<array>
54+
<string>org.qbittorrent.qBittorrent.incompletedata</string>
55+
</array>
56+
<key>LSIsAppleDefaultForType</key>
57+
<true/>
58+
</dict>
3559
</array>
3660
<key>CFBundleURLTypes</key>
3761
<array>
@@ -101,6 +125,26 @@
101125
</array>
102126
</dict>
103127
</dict>
128+
<dict>
129+
<key>UTTypeConformsTo</key>
130+
<array>
131+
<string>public.data</string>
132+
<string>public.item</string>
133+
</array>
134+
<key>UTTypeDescription</key>
135+
<string>qBitTorrent Incomplete Data</string>
136+
<key>UTTypeIconFile</key>
137+
<string>qBitTorrentIncompleteData</string>
138+
<key>UTTypeIdentifier</key>
139+
<string>org.qbittorrent.qBittorrent.incompletedata</string>
140+
<key>UTTypeTagSpecification</key>
141+
<dict>
142+
<key>public.filename-extension</key>
143+
<array>
144+
<string>!qB</string>
145+
</array>
146+
</dict>
147+
</dict>
104148
</array>
105149
</dict>
106150
</plist>

dist/mac/qBitTorrentDocument.icns

64.8 KB
Binary file not shown.
289 KB
Binary file not shown.

dist/mac/qbittorrent_mac.icns

621 KB
Binary file not shown.

src/app/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
8282
set_source_files_properties(
8383
"${qBittorrent_SOURCE_DIR}/dist/mac/qt.conf"
8484
"${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentDocument.icns"
85+
"${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentIncompleteData.icns"
8586
"${qBittorrent_SOURCE_DIR}/dist/mac/qbittorrent_mac.icns"
8687
PROPERTIES
8788
MACOSX_PACKAGE_LOCATION Resources
@@ -112,6 +113,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
112113
${QT_TRANSLATIONS}
113114
${qBittorrent_SOURCE_DIR}/dist/mac/qt.conf
114115
${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentDocument.icns
116+
${qBittorrent_SOURCE_DIR}/dist/mac/qBitTorrentIncompleteData.icns
115117
${qBittorrent_SOURCE_DIR}/dist/mac/qbittorrent_mac.icns
116118
)
117119
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")

0 commit comments

Comments
 (0)