Skip to content

Commit 0ceae73

Browse files
committed
Uploading Icons 2.1.0 source code
1 parent 3c2c9f9 commit 0ceae73

File tree

103 files changed

+7433
-2012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+7433
-2012
lines changed

source/Icons.xcodeproj/project.pbxproj

+181-85
Large diffs are not rendered by default.

source/Icons/AppDelegate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
AppDelegate.h
3-
Copyright 2016-2022 SAP SE
3+
Copyright 2016-2024 SAP SE
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

source/Icons/AppDelegate.m

+9-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
AppDelegate.m
3-
Copyright 2016-2022 SAP SE
3+
Copyright 2016-2024 SAP SE
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -17,43 +17,29 @@
1717

1818
#import "AppDelegate.h"
1919
#import "MTImage.h"
20+
#import "Constants.h"
2021

2122
@implementation AppDelegate
2223

23-
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
24-
{
25-
26-
}
27-
2824
- (void)application:(NSApplication *)application openURLs:(nonnull NSArray<NSURL *> *)urls
2925
{
3026
NSURL *droppedFile = [urls firstObject];
31-
32-
NSImage *sourceImage = [NSImage imageWithFileAtPath:[droppedFile path]];
27+
NSImage *sourceImage = [NSImage imageWithFileAtURL:droppedFile];
3328

3429
if ([sourceImage isValid]) {
3530

3631
// post notifications so the install and uninstall
3732
// views can update the source image
38-
39-
[[NSNotificationCenter defaultCenter] postNotificationName:@"corp.sap.Icons.installImageChangedNotification"
40-
object:sourceImage
41-
userInfo:nil
42-
];
43-
44-
[[NSNotificationCenter defaultCenter] postNotificationName:@"corp.sap.Icons.uninstallImageChangedNotification"
45-
object:sourceImage
46-
userInfo:nil
33+
[[NSNotificationCenter defaultCenter] postNotificationName:kMTNotificationNameImageChanged
34+
object:self
35+
userInfo:([sourceImage isValid]) ? [NSDictionary dictionaryWithObject:droppedFile
36+
forKey:kMTNotificationKeyImageURL
37+
] : nil
4738
];
4839
}
4940
}
5041

51-
- (void)applicationWillTerminate:(NSNotification *)aNotification
52-
{
53-
54-
}
55-
56-
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender
42+
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
5743
{
5844
return YES;
5945
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "211",
9+
"green" : "143",
10+
"red" : "0"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "1.000",
26+
"blue" : "1.000",
27+
"green" : "0.667",
28+
"red" : "0.059"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading

source/Icons/Assets.xcassets/AppIcon.appiconset/Contents.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,61 @@
33
{
44
"size" : "16x16",
55
"idiom" : "mac",
6-
"filename" : "icons macOS 11-16.png",
6+
"filename" : "AppIcon-16.png",
77
"scale" : "1x"
88
},
99
{
1010
"size" : "16x16",
1111
"idiom" : "mac",
12-
"filename" : "icons macOS 11-32.png",
12+
"filename" : "AppIcon-32.png",
1313
"scale" : "2x"
1414
},
1515
{
1616
"size" : "32x32",
1717
"idiom" : "mac",
18-
"filename" : "icons macOS 11-32.png",
18+
"filename" : "AppIcon-32.png",
1919
"scale" : "1x"
2020
},
2121
{
2222
"size" : "32x32",
2323
"idiom" : "mac",
24-
"filename" : "icons macOS 11-64.png",
24+
"filename" : "AppIcon-64.png",
2525
"scale" : "2x"
2626
},
2727
{
2828
"size" : "128x128",
2929
"idiom" : "mac",
30-
"filename" : "icons macOS 11-128.png",
30+
"filename" : "AppIcon-128.png",
3131
"scale" : "1x"
3232
},
3333
{
3434
"size" : "128x128",
3535
"idiom" : "mac",
36-
"filename" : "icons macOS 11-256.png",
36+
"filename" : "AppIcon-256.png",
3737
"scale" : "2x"
3838
},
3939
{
4040
"size" : "256x256",
4141
"idiom" : "mac",
42-
"filename" : "icons macOS 11-256.png",
42+
"filename" : "AppIcon-256.png",
4343
"scale" : "1x"
4444
},
4545
{
4646
"size" : "256x256",
4747
"idiom" : "mac",
48-
"filename" : "icons macOS 11-512.png",
48+
"filename" : "AppIcon-512.png",
4949
"scale" : "2x"
5050
},
5151
{
5252
"size" : "512x512",
5353
"idiom" : "mac",
54-
"filename" : "icons macOS 11-512.png",
54+
"filename" : "AppIcon-512.png",
5555
"scale" : "1x"
5656
},
5757
{
5858
"size" : "512x512",
5959
"idiom" : "mac",
60-
"filename" : "icons macOS 11-1024.png",
60+
"filename" : "AppIcon-1024.png",
6161
"scale" : "2x"
6262
}
6363
],
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

source/Icons/Assets.xcassets/arrow.up.arrow.down.circle.fill.imageset/Contents.json

-25
This file was deleted.

source/Icons/Assets.xcassets/arrow.up.arrow.down.circle.fill.imageset/arrow.up.arrow.down.circle.fill.dark.svg

-8
This file was deleted.

source/Icons/Assets.xcassets/arrow.up.arrow.down.circle.fill.imageset/arrow.up.arrow.down.circle.fill.svg

-8
This file was deleted.

source/Icons/Assets.xcassets/closebox.imageset/Contents.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"images" : [
33
{
44
"filename" : "closebox.pdf",
5-
"idiom" : "mac"
5+
"idiom" : "universal"
66
}
77
],
88
"info" : {

source/Icons/Base.lproj/Credits.rtf

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{\rtf1\ansi\ansicpg1252\cocoartf2758
2+
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 SFPro-Regular;}
3+
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red0\green0\blue0;}
4+
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0\c49804\cname secondaryLabelColor;\csgray\c0\c0;}
5+
\paperw11900\paperh16840\vieww20740\viewh8340\viewkind0
6+
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0
7+
8+
\f0\fs20 \cf2 \cb3 \
9+
Idea, Design & Engineering\
10+
Marc Thielemann\
11+
\
12+
\pard\pardeftab720\qc\partightenfactor0
13+
\cf2 \expnd0\expndtw0\kerning0
14+
This application can be redistributed\
15+
and modified under \kerning1\expnd0\expndtw0 the\
16+
{\field{\*\fldinst{HYPERLINK "http://www.apache.org/licenses/LICENSE-2.0"}}{\fldrslt Apache License, Version 2.0}}\expnd0\expndtw0\kerning0
17+
\
18+
}

0 commit comments

Comments
 (0)