summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLTemplateColorScheme.h
blob: d624203262decc7fea781aeec861d7248447e1a0 (plain)
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
//
//  SDLTemplateColorScheme.h
//  SmartDeviceLink
//
//  Created by Joel Fischer on 5/21/18.
//  Copyright © 2018 Livio. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "NSNumber+NumberType.h"
#import "SDLRPCStruct.h"

@class SDLRGBColor;

NS_ASSUME_NONNULL_BEGIN

@interface SDLTemplateColorScheme : SDLRPCStruct

- (instancetype)initWithPrimaryRGBColor:(SDLRGBColor *)primaryColor secondaryRGBColor:(SDLRGBColor *)secondaryColor backgroundRGBColor:(SDLRGBColor *)backgroundColor;
- (instancetype)initWithPrimaryColor:(UIColor *)primaryColor secondaryColor:(UIColor *)secondaryColor backgroundColor:(UIColor *)backgroundColor;

/**
 The "primary" color. This must always be your primary brand color. If the OEM only uses one color, this will be the color. It is recommended to the OEMs that the primaryColor should change the `mediaClockTimer` bar and the highlight color of soft buttons.
 */
@property (strong, nonatomic, nullable) SDLRGBColor *primaryColor;

/**
 The "secondary" color. This may be an accent or complimentary color to your primary brand color. If the OEM uses this color, they must also use the primary color. It is recommended to the OEMs that the secondaryColor should change the background color of buttons, such as soft buttons.
 */
@property (strong, nonatomic, nullable) SDLRGBColor *secondaryColor;

/**
 The background color to be used on the template. If the OEM does not support this parameter, assume on "dayColorScheme" that this will be a light color, and on "nightColorScheme" a dark color. You should do the same for your custom schemes.
 */
@property (strong, nonatomic, nullable) SDLRGBColor *backgroundColor;

@end

NS_ASSUME_NONNULL_END