mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
added sketch files
This commit is contained in:
31
MacPass/MPIconHelper.m
Normal file
31
MacPass/MPIconHelper.m
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// MPIconHelper.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 17.02.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPIconHelper.h"
|
||||
|
||||
@implementation MPIconHelper
|
||||
|
||||
# pragma mark Icon accessors
|
||||
+ (NSImage *)icon:(MPIconType)type {
|
||||
NSDictionary *icons = [MPIconHelper availableIcons];
|
||||
NSString *imageName = icons[@(type)];
|
||||
return [[NSBundle mainBundle] imageForResource:imageName];
|
||||
}
|
||||
|
||||
+ (NSDictionary *)availableIcons {
|
||||
NSDictionary *imageNames = @{ @(MPIconKlipper): @"04_KlipperTemplate",
|
||||
@(MPIconLanguages): @"05_LanguagesTemplate",
|
||||
@(MPIconPackageNetwork): @"01_PackageNetworkTemplate",
|
||||
@(MPIconPassword): @"00_PasswordTemplate",
|
||||
@(MPIconServer): @"03_ServerTemplate",
|
||||
@(MPIconWarning): @"02_MessageBoxWarningTemplate" };
|
||||
|
||||
return imageNames;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user