PopoverView_Configuration.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. //
  2. // PopoverView_Configuration.h
  3. // popover
  4. //
  5. // Created by Bas Pellis on 12/25/12.
  6. // Copyright (c) 2012 Oliver Rickard. All rights reserved.
  7. //
  8. #pragma mark Constants - Configure look/feel
  9. // BOX GEOMETRY
  10. //Height/width of the actual arrow
  11. #define kArrowHeight 12.f
  12. //padding within the box for the contentView
  13. #define kBoxPadding 10.f
  14. //control point offset for rounding corners of the main popover box
  15. #define kCPOffset 1.8f
  16. //radius for the rounded corners of the main popover box
  17. #define kBoxRadius 4.f
  18. //Curvature value for the arrow. Set to 0.f to make it linear.
  19. #define kArrowCurvature 6.f
  20. //Minimum distance from the side of the arrow to the beginning of curvature for the box
  21. #define kArrowHorizontalPadding 5.f
  22. //Alpha value for the shadow behind the PopoverView
  23. #define kShadowAlpha 0.4f
  24. //Blur for the shadow behind the PopoverView
  25. #define kShadowBlur 3.f;
  26. //Box gradient bg alpha
  27. #define kBoxAlpha 0.95f
  28. //Padding along top of screen to allow for any nav/status bars
  29. #define kTopMargin 50.f
  30. //margin along the left and right of the box
  31. #define kHorizontalMargin 10.f
  32. //padding along top of icons/images
  33. #define kImageTopPadding 3.f
  34. //padding along bottom of icons/images
  35. #define kImageBottomPadding 3.f
  36. // DIVIDERS BETWEEN VIEWS
  37. //Bool that turns off/on the dividers
  38. #define kShowDividersBetweenViews NO
  39. //color for the divider fill
  40. #define kDividerColor [UIColor colorWithRed:0.329 green:0.341 blue:0.353 alpha:0.15f]
  41. // BACKGROUND GRADIENT
  42. //bottom color white in gradient bg
  43. #define kGradientBottomColor [UIColor colorWithRed:0.98f green:0.98f blue:0.98f alpha:kBoxAlpha]
  44. //top color white value in gradient bg
  45. #define kGradientTopColor [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:kBoxAlpha]
  46. // TITLE GRADIENT
  47. //bool that turns off/on title gradient
  48. #define kDrawTitleGradient YES
  49. //bottom color white value in title gradient bg
  50. #define kGradientTitleBottomColor [UIColor colorWithRed:0.93f green:0.93f blue:0.93f alpha:kBoxAlpha]
  51. //top color white value in title gradient bg
  52. #define kGradientTitleTopColor [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:kBoxAlpha]
  53. // FONTS
  54. //normal text font
  55. #define kTextFont [UIFont fontWithName:@"HelveticaNeue" size:16.f]
  56. //normal text color
  57. #define kTextColor [UIColor colorWithRed:0.329 green:0.341 blue:0.353 alpha:1]
  58. // highlighted text color
  59. #define kTextHighlightColor [UIColor colorWithRed:0.098 green:0.102 blue:0.106 alpha:1.000]
  60. //normal text alignment
  61. #define kTextAlignment UITextAlignmentCenter
  62. //title font
  63. #define kTitleFont [UIFont fontWithName:@"HelveticaNeue-Bold" size:16.f]
  64. //title text color
  65. #define kTitleColor [UIColor colorWithRed:0.329 green:0.341 blue:0.353 alpha:1]
  66. // BORDER
  67. //bool that turns off/on the border
  68. #define kDrawBorder NO
  69. //border color
  70. #define kBorderColor [UIColor blackColor]
  71. //border width
  72. #define kBorderWidth 1.f