Dark tabs for Zenith! Mirror of https://github.com/mac-user669/ZenithDark
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

42 lines
1.4KB

  1. /*
  2. Dark Mode for Zenith's Grabber view!
  3. Copyright 2020 J.K. Hayslip (@iKilledAppl3) & ToxicAppl3 INSDC/iKilledAppl3 LLC.
  4. All code was written for learning purposes and credit must be given to the original author.
  5. Written for Cooper Hull, (@mac-user669).
  6. ZenithDark Header file to keep the tweak.x file clean!
  7. */
  8. #import <Cephei/HBPreferences.h>
  9. #import <CepheiPrefs/HBRootListController.h>
  10. #import <CepheiPrefs/HBAppearanceSettings.h>
  11. #import "SparkColourPickerUtils.h"
  12. // We then import UIKit so we can override the color property without this Theos doesn't have a clue what those properties are.
  13. @import UIKit;
  14. // We make an interface to let Theos know that ZNGrabberAccessoryView is of type UIImageView.
  15. @interface ZNGrabberAccessoryView : UIImageView
  16. @end
  17. // a boolean value to store to the tweak's property list path to see if the user has enabled or disabled the tweak.
  18. BOOL kEnabled;
  19. //Prefs dictionary
  20. NSMutableDictionary *prefs;
  21. // Dark Zenith color we are using macros so we can call it later if need be.
  22. #define kDarkColor [UIColor colorWithWhite:0.0 alpha:0.44]
  23. // Stock Zenith color we are using macros so we can call it later if need be.
  24. #define kLightColor [UIColor colorWithWhite:1.0 alpha:0.7]
  25. #define kColor1 [UIColor redColor]
  26. // the PLIST path where all user settings are stored.
  27. #define PLIST_PATH @"/var/mobile/Library/Preferences/com.mac-user669.zenithdark.plist"