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