Theme+Additions.h 4.04 KB
Newer Older
1
//
2
//  Theme+Additions.h
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//  Mobile Buy SDK
//
//  Created by Shopify.
//  Copyright (c) 2015 Shopify Inc. All rights reserved.
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

27
#import "Theme.h"
28

29
@interface Theme (Additions)
30 31 32 33 34 35 36 37 38 39 40 41 42

#pragma mark - Colors

/**
 *  Top gradient color
 *
 *  @return A dark color
 */
+ (UIColor*)topGradientViewTopColor;

/**
 *  The color for the product "compare at" text
 *
43
 *  @return The color appropriate for the ThemeStyle
44 45 46 47 48 49
 */
+ (UIColor*)comparePriceTextColor;

/**
 *  The color for the product's description text
 *
50
 *  @return The color appropriate for the ThemeStyle
51 52 53 54 55 56
 */
+ (UIColor*)descriptionTextColor;

/**
 *  The color for the variant price text
 *
57
 *  @return The color appropriate for the ThemeStyle
58 59 60 61 62 63
 */
+ (UIColor*)variantPriceTextColor;

/**
 *  The color for the variant "sold out" text
 *
64
 *  @return The color appropriate for the ThemeStyle
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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
 */
+ (UIColor*)variantSoldOutTextColor;

#pragma mark - Padding and Sizes

/**
 *  8 pt padding
 */
extern CGFloat const kBuyPaddingSmall;

/**
 *  12 pt padding
 */
extern CGFloat const kBuyPaddingMedium;

/**
 *  14 pt padding
 */
extern CGFloat const kBuyPaddingLarge;

/**
 *  16 pt padding
 */
extern CGFloat const kBuyPaddingExtraLarge;

/**
 *  Height for the gradient padding on top of the product variant image
 */
extern CGFloat const kBuyTopGradientViewHeight;

/**
 *  Height for the checkout and Apple Pay buttons
 */
extern CGFloat const kBuyCheckoutButtonHeight;

/**
 *  Height for the page control for the product images collection view
 */
extern CGFloat const kBuyPageControlHeight;

/**
 *  Height of the gradient when the page control is visible
 */
extern CGFloat const kBuyBottomGradientHeightWithPageControl;

/**
 *  Height of the gradient when the page control is not visible
 */
extern CGFloat const kBuyBottomGradientHeightWithoutPageControl;

#pragma mark - Fonts

/**
 *  Product view's title font
 *
 *  @return Font with text style UIFontTextStyleBody with an increased point size of 4
 */
+ (UIFont*)productTitleFont;

/**
 *  Product view's price font
 *
 *  @return Font with text style UIFontTextStyleBody with an increased point size of 4
 */
+ (UIFont*)productPriceFont;

/**
 *  Product view's compare at price font
 *
 *  @return Font with text style UIFontTextStyleBody
 */
+ (UIFont*)productComparePriceFont;

/**
 *  Product view's variant option name font
 *
 *  @return Font with text style UIFontTextStyleFootnote
 */
+ (UIFont*)variantOptionNameFont;

/**
 *  Product view's variant option value font
 *
 *  @return Font with text style UIFontTextStyleBody with an increased point size of 2
 */
+ (UIFont*)variantOptionValueFont;

/**
 *  Variant selection price
 *
 *  @return Font with text style UIFontTextStyleSubheadline
 */
+ (UIFont*)variantOptionPriceFont;

/**
 *  Variant selection bread crumbs view text font
 *
 *  @return Font with text style UIFontTextStyleSubheadline
 */
+ (UIFont*)variantBreadcrumbsFont;

/**
 *  Product view's error view text font
 *
 *  @return Font with text style UIFontTextStyleBody
 */
+ (UIFont*)errorLabelFont;

@end