Dark tabs for Zenith! Mirror of https://github.com/mac-user669/ZenithDark
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132333435
  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. // We then import UIKit so we can override the color property without this Theos doesn't have a clue what those properties are.
  9. @import UIKit;
  10. // We make an interface to let Theos know that ZNGrabberAccessoryView is of type UIImageView.
  11. @interface ZNGrabberAccessoryView : UIImageView
  12. @end
  13. // a boolean value to store to the tweak's property list path to see if the user has enabled or disabled the tweak.
  14. BOOL kEnabled;
  15. //Prefs dictionary
  16. NSMutableDictionary *prefs;
  17. // Dark Zenith color we are using macros so we can call it later if need be.
  18. #define kDarkModeColor [UIColor colorWithWhite:0.0 alpha:0.44]
  19. // Stock Zenith color we are using macros so we can call it later if need be.
  20. #define kLightModeColor [UIColor colorWithWhite:1.0 alpha:0.7]
  21. // the PLIST path where all user settings are stored.
  22. #define PLIST_PATH @"/var/mobile/Library/Preferences/com.mac-user669.zenithdark.plist"