ファイル
ZenithDark/ZenithDark.h
2020-02-04 22:02:27 -05:00

42 行
1.4 KiB
Objective-C

/*
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).
ZenithDark Header file to keep the tweak.x file clean!
*/
#import <Cephei/HBPreferences.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBAppearanceSettings.h>
#import "SparkColourPickerUtils.h"
// We then import UIKit so we can override the color property without this Theos doesn't have a clue what those properties are.
@import UIKit;
// We make an interface to let Theos know that ZNGrabberAccessoryView is of type UIImageView.
@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 kDarkColor [UIColor colorWithWhite:0.0 alpha:0.44]
// Stock Zenith color we are using macros so we can call it later if need be.
#define kLightColor [UIColor colorWithWhite:1.0 alpha:0.7]
#define kColor1 [UIColor redColor]
// the PLIST path where all user settings are stored.
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mac-user669.zenithdark.plist"