Improve .livemd icon on macOS (#1932)

This commit is contained in:
Wojtek Mach 2023-05-26 14:17:26 +02:00 committed by GitHub
parent 00eca24eb5
commit 50f1004730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 113 additions and 3 deletions

View file

@ -28,6 +28,16 @@ if [ -d Resources ]; then
done
fi
if [ -d Assets.xcassets ]; then
actool \
--development-region en --errors --notices --warnings \
--target-device mac --platform macosx --minimum-deployment-target 11.0 \
--app-icon AppIcon \
--compile $app_dir/Contents/Resources \
--output-partial-info-plist .build/partial-info.plist \
Assets.xcassets
fi
(
cd $ELIXIRKIT_PROJECT_DIR
mix release $release_name --overwrite --path=$rel_dir

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -0,0 +1,67 @@
{
"images" : [
{
"filename" : "AppIcon-16px.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "AppIcon-32px-1.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "AppIcon-32px.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "AppIcon-64px.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "AppIcon-128px.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "AppIcon-256px-1.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "AppIcon-256px.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "AppIcon-512px-1.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "AppIcon-512px.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View file

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View file

@ -34,11 +34,38 @@
<string>LiveMarkdown</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeExtensions</key>
<key>LSItemContentTypes</key>
<array>
<string>dev.livebook.livemarkdown</string>
</array>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Livebook</string>
<key>UTTypeIcons</key>
<dict>
<key>UTTypeIconBadgeName</key>
<string>Icon</string>
<key>UTTypeIconText</key>
<string>Livebook</string>
</dict>
<key>UTTypeIdentifier</key>
<string>dev.livebook.livemarkdown</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>livemd</string>
</array>
</dict>
</dict>
</array>
</dict>
</plist>

Binary file not shown.

View file

@ -58,7 +58,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
let button = statusItem.button!
let icon = NSImage(named: "LivebookIcon")!
let icon = NSImage(named: "Icon")!
let resizedIcon = NSImage(size: NSSize(width: 18, height: 18), flipped: false) { (dstRect) -> Bool in
icon.draw(in: dstRect)
return true