This repository was archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShared.h
More file actions
57 lines (46 loc) · 2.24 KB
/
Copy pathShared.h
File metadata and controls
57 lines (46 loc) · 2.24 KB
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
48
49
50
51
52
53
54
55
56
57
#import <UIKit/UIKit.h>
static inline UIView* UA_UIViewWithColor(UIColor *color) {
UIView *view = [[UIView alloc] init];
view.backgroundColor = color;
return view;
}
#define UA_rgba(r, g, b, a) [UIColor colorWithRed:(float)r/255.0f green:(float)g/255.0f blue:(float)b/255.0f alpha:(float)a]
#define UA_rgb(r, g, b) UA_rgba(r, g, b, 1.0f)
#define UA_log( s, ... ) NSLog( @"BlvckLog: <%@:%d> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#define UA_blvckColor [UIColor blackColor]
#define UA_blvckColor100 UA_rgb(10, 10, 10)
#define UA_blvckColor200 UA_rgb(20, 20, 20)
#define UA_blvckColor300 UA_rgb(30, 30, 30)
#define UA_grayColor UA_rgb(55, 55, 55)
#define UA_grayColor100 UA_rgb(77, 77, 77)
#define UA_grayColor200 UA_rgb(99, 99, 99)
#define UA_whiteColor [UIColor whiteColor]
#define UA_redColor [UIColor redColor]
#define UA_clearColor [UIColor clearColor]
#define UA_primaryColor UA_rgb(92, 161, 145)
#define UA_iPhoneBlueColor UA_rgb(0, 122, 255)
#pragma mark #region [ Notifications Helper ]
#define AddObserver(notification, callback) \
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)&callback, notification, NULL, \
CFNotificationSuspensionBehaviorHold);
#define PostNotification(notification) \
CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDarwinNotifyCenter(), \
notification, NULL, NULL, kCFNotificationDeliverImmediately)
extern NSString *kWhatsappBundleIdentifier;
extern NSString *kWhatsapp2BundleIdentifier;
extern NSString *kWhatsapp3BundleIdentifier;
extern NSString *kWhatsappDarkModeBundleIdentifier;
extern NSString *kTwitterUsername;
extern NSString *kDefaultsFirstLaunchKey;
extern NSString *kDefaultsDarkModeEnabledKey;
extern NSString *kDefaultsDarkModeAutoEnabledKey;
extern NSString *kWhatsAppDarkModeBundlePath;
@interface NSUserDefaults (Tweak_Category)
- (id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
- (void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
@end
@interface UIApplication (Blvck)
+(id)sharedApplication;
-(void)_simulateHomeButtonPress;
-(BOOL)launchApplicationWithIdentifier:(id)arg1 suspended:(BOOL)arg2;
@end