Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (49 sloc) 1.996 kb
a8bce053 » WH-NewMedia
2012-09-03 Add wh-app-ios files.
1 /*
2 * This project constitutes a work of the United States Government and is
3 * not subject to domestic copyright protection under 17 USC § 105.
4 *
5 * However, because the project utilizes code licensed from contributors
6 * and other third parties, it therefore is licensed under the MIT
7 * License. http://opensource.org/licenses/mit-license.php. Under that
8 * license, permission is granted free of charge, to any person obtaining
9 * a copy of this software and associated documentation files (the
10 * "Software"), to deal in the Software without restriction, including
11 * without limitation the rights to use, copy, modify, merge, publish,
12 * distribute, sublicense, and/or sell copies of the Software, and to
13 * permit persons to whom the Software is furnished to do so, subject to
14 * the conditions that any appropriate copyright notices and this
15 * permission notice are included in all copies or substantial portions
16 * of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27 //
28 // WHStyle.m
29 // WhiteHouseApp
30 //
31 //
32
33 #import "WHStyle.h"
34
35 @implementation WHStyle
36
37 + (UIFont *)headingFontWithSize:(CGFloat)size
38 {
39 return [UIFont fontWithName:AppConfig(@"HeadingFontName") size:size];
40 }
41
42 + (UIFont *)detailFontWithSize:(CGFloat)size
43 {
44 return [UIFont fontWithName:AppConfig(@"DetailFontName") size:size];
45 }
46
47 + (UIColor *)primaryColor
48 {
49 return [UIColor colorFromRGBHexString:AppConfig(@"PrimaryBrandColor")];
50 }
51
52 + (UIColor *)controlTintColor
53 {
54 return [UIColor colorFromRGBHexString:AppConfig(@"ControlTintColor")];
55 }
56
57 @end
Something went wrong with that request. Please try again.