QDThemeManager.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // QDThemeManager.h
  3. // qmuidemo
  4. //
  5. // Created by QMUI Team on 2017/5/9.
  6. // Copyright © 2017年 QMUI Team. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "QDThemeProtocol.h"
  10. /// 简单对 QMUIThemeManager 做一层业务的封装,省去类型转换的工作量
  11. @interface QDThemeManager : NSObject
  12. @property(class, nonatomic, readonly, nullable) NSObject<QDThemeProtocol> *currentTheme;
  13. @end
  14. @interface UIColor (QDTheme)
  15. @property(class, nonatomic, strong, readonly) UIColor *qd_backgroundColor;
  16. @property(class, nonatomic, strong, readonly) UIColor *qd_backgroundColorLighten;
  17. @property(class, nonatomic, strong, readonly) UIColor *qd_backgroundColorHighlighted;
  18. @property(class, nonatomic, strong, readonly) UIColor *qd_tintColor;
  19. @property(class, nonatomic, strong, readonly) UIColor *qd_titleTextColor;
  20. @property(class, nonatomic, strong, readonly) UIColor *qd_mainTextColor;
  21. @property(class, nonatomic, strong, readonly) UIColor *qd_descriptionTextColor;
  22. @property(class, nonatomic, strong, readonly) UIColor *qd_placeholderColor;
  23. @property(class, nonatomic, strong, readonly) UIColor *qd_codeColor;
  24. @property(class, nonatomic, strong, readonly) UIColor *qd_separatorColor;
  25. @property(class, nonatomic, strong, readonly) UIColor *qd_gridItemTintColor;
  26. @end
  27. @interface UIImage (QDTheme)
  28. @property(class, nonatomic, strong, readonly) UIImage *qd_navigationBarBackgroundImage;
  29. @property(class, nonatomic, strong, readonly) UIImage *qd_navigationBarBackIndicatorImage;
  30. @property(class, nonatomic, strong, readonly) UIImage *qd_navigationBarCloseImage;
  31. @property(class, nonatomic, strong, readonly) UIImage *qd_navigationBarDisclosureIndicatorImage;
  32. @property(class, nonatomic, strong, readonly) UIImage *qd_tableViewCellDisclosureIndicatorImage;
  33. @property(class, nonatomic, strong, readonly) UIImage *qd_tableViewCellCheckmarkImage;
  34. @property(class, nonatomic, strong, readonly) UIImage *qd_tableViewCellDetailButtonImage;
  35. @property(class, nonatomic, strong, readonly) UIImage *qd_searchBarTextFieldBackgroundImage;
  36. @property(class, nonatomic, strong, readonly) UIImage *qd_searchBarBackgroundImage;
  37. @end
  38. @interface UIVisualEffect (QDTheme)
  39. @property(class, nonatomic, strong, readonly) UIVisualEffect *qd_standardBlurEffect;
  40. @end