QDThemeProtocol.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // QDThemeProtocol.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. /// 所有主题均应实现这个协议,规定了 QMUI Demo 里常用的几个关键外观属性
  10. @protocol QDThemeProtocol <QMUIConfigurationTemplateProtocol>
  11. @required
  12. /// 界面背景色
  13. - (UIColor *)themeBackgroundColor;
  14. /// 浅一点的界面背景色,例如 Grouped 类型的列表的 cell 背景
  15. - (UIColor *)themeBackgroundColorLighten;
  16. /// 在通用背景色上的 item 点击高亮背景色,例如 cell 的 highlightedBackgroundColor
  17. - (UIColor *)themeBackgroundColorHighlighted;
  18. /// 主题色
  19. - (UIColor *)themeTintColor;
  20. /// 最深的文字颜色,可用于标题或者输入框文字
  21. - (UIColor *)themeTitleTextColor;
  22. /// 主要内容的文字颜色,例如列表的 textLabel
  23. - (UIColor *)themeMainTextColor;
  24. /// 界面上一些附属说明的小字颜色
  25. - (UIColor *)themeDescriptionTextColor;
  26. /// 输入框 placeholder 的颜色
  27. - (UIColor *)themePlaceholderColor;
  28. /// 文字中的代码颜色
  29. - (UIColor *)themeCodeColor;
  30. /// 分隔线颜色,例如 tableViewSeparator
  31. - (UIColor *)themeSeparatorColor;
  32. /// App 首页每个单元格的颜色
  33. - (UIColor *)themeGridItemTintColor;
  34. - (NSString *)themeName;
  35. @end