-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSBProtoSettings.m
47 lines (39 loc) · 1.04 KB
/
SBProtoSettings.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// SBProtoSettings.m
// SBProtoSettings
//
// Created by Doc Aiden on 3/13/18.
// Copyright (c) 2018 ___ORGANIZATIONNAME___. All rights reserved.
//
// LibActivator by Ryan Petrich
// See https://github.com/rpetrich/libactivator
// #import "SBPrototypeController.h"
#import "SBProtoSettings.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface SBPrototypeController : NSObject
+ (id)sharedInstance;
- (void)_showSettings;
@end
@interface UIImage ()
+ (UIImage *)imageNamed:(NSString *)name inBundle:(NSBundle *)bundle;
@end
@implementation SBProtoSettings
- (UIImage *)iconGlyph {
return [UIImage imageNamed:@"Icon" inBundle:[NSBundle bundleForClass:[self class]]];
}
- (UIColor *)selectedColor {
return [UIColor blueColor];
}
- (BOOL)isSelected {
return self.ezSecretSettings;
}
- (void)setSelected:(BOOL)selected {
self.ezSecretSettings = selected;
[super refreshState];
[self exec_ezSecretSettings];
}
- (void)exec_ezSecretSettings {
[[%c(SBPrototypeController) sharedInstance] _showSettings];
}
@end