TIConfig.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // Header.h
  3. // TiSDKDemo
  4. //
  5. // Created by iMacA1002 on 2019/12/2.
  6. // Copyright © 2020 Tillusory Tech. All rights reserved.
  7. //
  8. #import "TiSDKInterface.h"
  9. #import <Masonry/Masonry.h>
  10. //#import <SDWebImage/SDWebImage.h>
  11. #import "TIMenuPlistManager.h"
  12. //点击子菜单总开关按钮发出的通知
  13. #define NotificationCenterSubMenuOnTotalSwitch @"NotificationCenterSubMenuOnTotalSwitch"
  14. #define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
  15. #define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
  16. #define WeakSelf __weak typeof(self) weakSelf = self;
  17. // MARK: --默认配置--
  18. //字体
  19. #define TI_Font_Default_Size_Small [UIFont fontWithName:@"Helvetica" size:10]
  20. #define TI_Font_Default_Size_Medium [UIFont fontWithName:@"Helvetica" size:12]
  21. #define TI_Font_Default_Size_Big [UIFont fontWithName:@"Helvetica" size:14]
  22. //颜色
  23. #define TI_Color_Default_Text_White [UIColor colorWithRed:254/255.0 green:254/255.0 blue:254/255.0 alpha:1.0]
  24. #define TI_Color_Default_Text_Black [UIColor colorWithRed:(137)/255.0f green:(137)/255.0f blue:(137)/255.0f alpha:(1.0)]
  25. #define TI_Color_Default_Background_Pink [UIColor colorWithRed:239/255.0 green:128/255.0 blue:116/255.0 alpha:1.0]
  26. // MARK: --默认按钮的宽度(以拍照按钮为基准) TiUIDefaultButtonView--
  27. #define DefaultButton_WIDTH SCREEN_WIDTH/4
  28. // MARK: --美颜弹框视图总高度 TiUIManager--
  29. #define TiUIViewBoxTotalHeight SCREEN_HEIGHT/2.5
  30. // MARK: 拉条View --TiUISliderRelatedView--
  31. #define TiUISliderRelatedViewHeight 50
  32. #define TiUIMenuViewHeight 45
  33. //左右按钮的宽度
  34. #define TiUISliderLeftRightWidth 55
  35. // slider高度
  36. #define TiUISliderHeight 8
  37. #define TiUISliderTagViewWidth 30
  38. #define TiUISliderTagViewHeight TiUISliderTagViewWidth * 1.219 // 更具UI图得出的比例
  39. // MARK: 子菜单状态1View --TiUISubMenuOneView--
  40. #define TiUISubMenuOneViewTIButtonWidth 45
  41. #define TiUISubMenuOneViewTIButtonHeight 70
  42. #define TiUISubMenuTowViewTIButtonWidth 50
  43. #define TiUISubMenuTowViewTIButtonHeight 75
  44. // MARK: --<#(MARK)#>--
  45. #define SkinWhiteningValue 40 // 美白拉条默认参数
  46. #define SkinBlemishRemovalValue 60 // 磨皮拉条默认参数
  47. #define SkinTendernessValue 40 // 粉嫩拉条默认参数
  48. #define SkinBrightnessValue 0 // 亮度拉条默认参数,0表示无亮度效果,[-50, 0]表示降低亮度,[0, 50]表示提升亮度
  49. #define SkinBrightValue 0 // 鲜明拉条默认参数,
  50. #define EyeMagnifyingValue 40 // 大眼拉条默认参数
  51. #define ChinSlimmingValue 50 // 瘦脸拉条默认参数
  52. #define FaceNarrowingValue 50 // 窄脸拉条默认参数
  53. #define JawTransformingValue 0 // 下巴拉条默认参数
  54. #define ForeheadTransformingValue 0 // 额头拉条默认参数
  55. #define MouthTransformingValue 0 // 嘴型拉条默认参数
  56. #define NoseSlimmingValue 0 // 瘦鼻拉条默认参数
  57. #define BeautyToothValue 50 // 美牙拉条默认参数
  58. #define EyeSpacingValue 0 // 眼间距拉条默认参数
  59. #define LongNoseValue 0 // 长鼻拉条默认参数
  60. #define EyeCornerValue 0 // 眼角拉条默认参数
  61. #define FilterValue 100 // 滤镜拉条默认参数