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

Lines changed: 181 additions & 85 deletions
Large diffs are not rendered by default.

source/Icons/AppDelegate.h

Lines changed: 1 addition & 1 deletion
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

Lines changed: 9 additions & 23 deletions
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
}
Lines changed: 38 additions & 0 deletions
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

0 commit comments

Comments
 (0)