added Preferences
-Adds preferences -Adds credits to prefefrences -Icon for preferences -Share button for sharing to social media. -Code cleanup -Thanks @skittyblock!
This commit is contained in:
11
ZenithDark.h
11
ZenithDark.h
@ -4,7 +4,7 @@ Dark Mode for Zenith's Grabber view!
|
||||
Copyright 2020 J.K. Hayslip (@iKilledAppl3) & ToxicAppl3 INSDC/iKilledAppl3 LLC.
|
||||
All code was written for learning purposes and credit must be given to the original author.
|
||||
|
||||
Written for Cooper Hull, @(mac-user669).
|
||||
Written for Cooper Hull, (@mac-user669).
|
||||
|
||||
ZenithDark Header file to keep the tweak.x file clean!
|
||||
|
||||
@ -19,8 +19,17 @@ ZenithDark Header file to keep the tweak.x file clean!
|
||||
@interface ZNGrabberAccessoryView : UIImageView
|
||||
@end
|
||||
|
||||
// a boolean value to store to the tweak's property list path to see if the user has enabled or disabled the tweak.
|
||||
BOOL kEnabled;
|
||||
|
||||
//Prefs dictionary
|
||||
NSMutableDictionary *prefs;
|
||||
|
||||
// Dark Zenith color we are using macros so we can call it later if need be.
|
||||
#define kDarkModeColor [UIColor colorWithWhite:0.0 alpha:0.44]
|
||||
|
||||
// Stock Zenith color we are using macros so we can call it later if need be.
|
||||
#define kLightModeColor [UIColor colorWithWhite:1.0 alpha:0.7]
|
||||
|
||||
// the PLIST path where all user settings are stored.
|
||||
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mac-user669.zenithdark.plist"
|
||||
|
Reference in New Issue
Block a user