From 3723476ae9edc04a9495870e0cc21c5e8f1637dc Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 21 Jun 2020 21:06:21 +0000 Subject: Added icon and script to make icons. Added alert box to Utils. --- MakeIcon.sh | 12 +++ .../AppIcon.appiconset/AppIcon-128.png | Bin 4320 -> 4227 bytes .../AppIcon.appiconset/AppIcon-128@2x.png | Bin 11190 -> 9169 bytes .../AppIcon.appiconset/AppIcon-16.png | Bin 398 -> 460 bytes .../AppIcon.appiconset/AppIcon-16@2x.png | Bin 717 -> 909 bytes .../AppIcon.appiconset/AppIcon-256.png | Bin 11190 -> 9169 bytes .../AppIcon.appiconset/AppIcon-256@2x.png | Bin 26923 -> 20192 bytes .../AppIcon.appiconset/AppIcon-32.png | Bin 717 -> 909 bytes .../AppIcon.appiconset/AppIcon-32@2x.png | Bin 1596 -> 1971 bytes .../AppIcon.appiconset/AppIcon-512.png | Bin 26923 -> 20192 bytes .../AppIcon.appiconset/AppIcon-512@2x.png | Bin 61533 -> 46149 bytes SpriteEd/Util.cs | 18 ++++ SpriteEdIcon.svg | 110 +++++++++++++++++++++ 13 files changed, 140 insertions(+) create mode 100755 MakeIcon.sh create mode 100644 SpriteEdIcon.svg diff --git a/MakeIcon.sh b/MakeIcon.sh new file mode 100755 index 0000000..2446873 --- /dev/null +++ b/MakeIcon.sh @@ -0,0 +1,12 @@ +INK=/Applications/Inkscape.app/Contents/MacOS/inkscape + +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png -w 16 -h 16 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png -w 32 -h 32 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png -w 32 -h 32 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png -w 64 -h 64 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png -w 128 -h 128 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png -w 256 -h 256 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png -w 256 -h 256 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png -w 512 -h 512 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png -w 512 -h 512 SpriteEdIcon.svg +$INK --export-filename=SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png -w 1024 -h 1024 SpriteEdIcon.svg diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png index 7b432b1..1db583b 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png index 6802108..b4d9088 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png index bbde225..eeb0547 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png index 6d68a93..9b91e57 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png index 6802108..b4d9088 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png index 6f1d2cc..b793618 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png index 6d68a93..9b91e57 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png index 5248646..44c0196 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png index 6f1d2cc..b793618 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png differ diff --git a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png index 2ceaf28..3a32e2c 100644 Binary files a/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png and b/SpriteEd/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png differ diff --git a/SpriteEd/Util.cs b/SpriteEd/Util.cs index 4bba750..cca9c47 100644 --- a/SpriteEd/Util.cs +++ b/SpriteEd/Util.cs @@ -16,6 +16,7 @@ // using System; using System.IO; +using AppKit; namespace SpriteEd { @@ -76,5 +77,22 @@ namespace SpriteEd { return s.ReadByte() == 255; } + + /// + /// Display an error alert. + /// + /// The title for the alert. + /// The message for the alert. + public static void DisplayAlert(string title, string message) + { + NSAlert alert = new NSAlert() + { + AlertStyle = NSAlertStyle.Critical, + InformativeText = message, + MessageText = title + }; + + alert.RunModal(); + } } } diff --git a/SpriteEdIcon.svg b/SpriteEdIcon.svg new file mode 100644 index 0000000..228badc --- /dev/null +++ b/SpriteEdIcon.svg @@ -0,0 +1,110 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + -- cgit v1.2.3