[Bf-blender-cvs] [54a4eb5e17f] master: UI: use system generated document icon on macOS

Johannes Jakob noreply at git.blender.org
Wed Feb 3 17:14:53 CET 2021


Commit: 54a4eb5e17f8de65e94e17ffc269e8c5a6baff15
Author: Johannes Jakob
Date:   Tue Feb 2 14:49:54 2021 +0100
Branches: master
https://developer.blender.org/rB54a4eb5e17f8de65e94e17ffc269e8c5a6baff15

UI: use system generated document icon on macOS

Adds Document Type Identifier configuration to use a system generated
document icon for Blender files on macOS. The system composites the
app’s icon and the extension name onto the document sheet icon
(new style on macOS 11 Big Sur and old style on macOS 10.15 Catalina
and earlier). This is in line with Apple’s Human Interface Guidelines.

Removes the previously used file icon because it is no longer needed.

Differential Revision: https://developer.blender.org/D10267

===================================================================

M	release/darwin/Blender.app/Contents/Info.plist
D	release/darwin/Blender.app/Contents/Resources/blender file icon.icns

===================================================================

diff --git a/release/darwin/Blender.app/Contents/Info.plist b/release/darwin/Blender.app/Contents/Info.plist
index 2408cf363b1..67b786bd933 100644
--- a/release/darwin/Blender.app/Contents/Info.plist
+++ b/release/darwin/Blender.app/Contents/Info.plist
@@ -11,8 +11,6 @@
 			<array>
 				<string>blend</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>blender file icon.icns</string>
 			<key>CFBundleTypeName</key>
 			<string>Blender File</string>
 			<key>CFBundleTypeOSTypes</key>
@@ -23,6 +21,12 @@
 			<string>Editor</string>
 			<key>LSIsAppleDefaultForType</key>
 			<true/>
+			<key>LSItemContentTypes</key>
+			<array>
+				<string>org.blenderfoundation.blender.file</string>
+			</array>
+			<key>CFBundleTypeIconSystemGenerated</key>
+			<true/>
 		</dict>
 	</array>
 	<key>CFBundleExecutable</key>
@@ -49,5 +53,30 @@
 	<string>NSApplication</string>
 	<key>NSHighResolutionCapable</key>
 	<true/>
+	<key>UTExportedTypeDeclarations</key>
+	<array>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.data</string>
+			</array>
+			<key>UTTypeIdentifier</key>
+			<string>org.blenderfoundation.blender.file</string>
+			<key>UTTypeIcons</key>
+			<dict>
+				<key>UTTypeIconName</key>
+				<string>Blender File</string>
+				<key>UTTypeIconText</key>
+				<string>blend</string>
+			</dict>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>blend</string>
+				</array>
+			</dict>
+		</dict>
+	</array>
 </dict>
 </plist>
diff --git a/release/darwin/Blender.app/Contents/Resources/blender file icon.icns b/release/darwin/Blender.app/Contents/Resources/blender file icon.icns
deleted file mode 100644
index 2bf78d3eb0d..00000000000
Binary files a/release/darwin/Blender.app/Contents/Resources/blender file icon.icns and /dev/null differ



More information about the Bf-blender-cvs mailing list