App-Icon hinzugefügt.
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// ImageHelper.h
|
||||
// ipbc-Client
|
||||
//
|
||||
// Created by Gerrit Linnemann on 31.10.13.
|
||||
// Copyright (c) 2013 Adawim UG (haftungsbeschränkt). All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ImageHelper : NSObject
|
||||
|
||||
+(NSImage*)resizeImage:(NSImage*)sourceImage size:(NSSize)size;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// ImageHelper.m
|
||||
// ipbc-Client
|
||||
//
|
||||
// Created by Gerrit Linnemann on 31.10.13.
|
||||
// Copyright (c) 2013 Adawim UG (haftungsbeschränkt). All rights reserved.
|
||||
//
|
||||
|
||||
#import "ImageHelper.h"
|
||||
|
||||
@implementation ImageHelper
|
||||
|
||||
+(NSImage*)resizeImage:(NSImage*)sourceImage size:(NSSize)size {
|
||||
NSRect targetFrame = NSMakeRect(0, 0, size.width, size.height);
|
||||
NSImage* targetImage = nil;
|
||||
NSImageRep *sourceImageRep =
|
||||
[sourceImage bestRepresentationForRect:targetFrame
|
||||
context:nil
|
||||
hints:nil];
|
||||
|
||||
targetImage = [[NSImage alloc] initWithSize:size];
|
||||
|
||||
[targetImage lockFocus];
|
||||
[sourceImageRep drawInRect: targetFrame];
|
||||
[targetImage unlockFocus];
|
||||
|
||||
return targetImage;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -1,13 +1,15 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "16x16",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_16x16.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "16x16",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_16x16@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
@@ -16,28 +18,33 @@
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "32x32",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_32x32@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "128x128",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_128x128.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "128x128",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_128x128@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "256x256",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_256x256.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "256x256",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_256x256@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
@@ -46,8 +53,9 @@
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "512x512",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_512x512@2x.png",
|
||||
"scale" : "2x"
|
||||
}
|
||||
],
|
||||
|
||||
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 377 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import "ipbcAppDelegate.h"
|
||||
#import "ImageHelper.h"
|
||||
|
||||
@implementation ipbcAppDelegate
|
||||
|
||||
@@ -23,8 +24,13 @@
|
||||
-(void)awakeFromNib {
|
||||
statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
|
||||
[statusItem setMenu:statusMenu];
|
||||
[statusItem setTitle:@"ip-bc"];
|
||||
[statusItem setHighlightMode:YES];
|
||||
|
||||
// statusbar icon
|
||||
NSSize statusbarIconSize;
|
||||
statusbarIconSize.width = 18;
|
||||
statusbarIconSize.height = 18;
|
||||
[statusItem setImage:[ImageHelper resizeImage:[NSImage imageNamed: @"statusbar-icon.png"] size:statusbarIconSize]];
|
||||
}
|
||||
|
||||
-(IBAction)fromMenuSettings:(id)sender {
|
||||
|
||||
|
After Width: | Height: | Size: 21 KiB |