//
//  UIConstants.h
//  IDM
//
//  Created by Nookaraju Maddila on 2/16/16.
//  Copyright (c) 2016 Infor. All rights reserved.
//

//#import "InforStandardColors.h"
#import "UIFont+UniversalFonts.h"

#ifndef IDM_UIConstants_h
#define IDM_UIConstants_h


#ifdef DEBUG
#   define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#   define DLog(...)
#endif


// Device infomation
//#define IS_IPAD                 (UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad)
#define IS_IPHONE               (UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone)
#define IS_IOS7                 (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1 && NSFoundationVersionNumber <= NSFoundationVersionNumber_iOS_7_1)
#define IS_IOS8                 (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_7_1)
#define IS_IPHONE4              (IS_IPHONE && (([[UIScreen mainScreen] bounds].size.height<500)?YES:NO))

#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define SCREEN_MAX_LENGTH (MAX(SCREEN_WIDTH, SCREEN_HEIGHT))
#define IS_IPHONE_6 (IS_IPHONE && SCREEN_MAX_LENGTH == 667.0)
#define IS_IPHONE_6P (IS_IPHONE && SCREEN_MAX_LENGTH == 736.0)
#define IS_IPHONE5              (IS_IPHONE && (([[UIScreen mainScreen] bounds].size.height==568)?YES:NO))
#define IS_IPHONE_X (IS_IPHONE && SCREEN_MAX_LENGTH == 812.0)


//#define IS_PORTRAIT             (UIDeviceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]))
#define IS_PORTRAIT             UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])
#define IS_LANDSCAPE             UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])
#define KEYBOARD_HEIGHT         (IS_IPAD?(IS_PORTRAIT?264.f:352.f):216.f)
#define DATE_PICKER_HEIGHT      216.f

#define SETTING_HEADER_FONT       [UIFont mediumFontWithSize:17.f]
#define LIST_CELL_TITLE_FONT                 [UIFont lightFontWithSize:14.f]
#define SETTING_NAME_FONT               [UIFont mediumDisplayFontWithSize:17.f]
#define SETTING_TITLE_FONT                 [UIFont regDisplayFontWithSize:14.f]
#define CONNECTION_NAME_FONT                 [UIFont fontWithName:@"HelveticaNeue-Bold" size:16.0f]
#define CONNECTION_TITLE_FONT                 [UIFont fontWithName:@"HelveticaNeue" size:14.0f]
#define MAIN_TEXT_COLOR         [UIColor colorWithWhite:77.f/255.f alpha:1.f]

#define VIEW_BACK_GROUND_COLOR              [UIColor whiteColor]
#define GRAPHITE            [UIColor colorWithRed:0.451 green:0.451 blue:0.451 alpha:1.0]
#define GRAPHITE_LIGHT      [UIColor colorWithRed:0.702 green:0.702 blue:0.702 alpha:1.0]
#define GRAPHITE_DEEP       [UIColor colorWithRed:0.349 green:0.349 blue:0.349 alpha:1.0]
#define CONNECTION_NAME_FONT_COLOR            [UIColor colorWithWhite:77.f/255.f alpha:1.0f]
#define CONNECTION_TITLE_FONT_COLOR           [UIColor colorWithWhite:134.f/255.f alpha:1.0f]
#define DIRECTORY_SELECTION_COLOR           [UIColor colorWithRed:19/255.0 green:163/255.0 blue:247/255.0 alpha:1.0]
#define BORDER_COLOR               [UIColor colorWithRed:230/255.f green:230/255.f blue:230/255.f alpha:1.0f]
#define GRAPHITE2_COLOR              [UIColor colorWithRed:216.0f/255.0f green:216.0f/255.0f blue:216.0f/255.0f alpha:1.0f]
#define TASK_TINT_COLOR             [UIColor colorWithRed:0.f green:0.761f blue:0.706f alpha:1.0f]
#define IS_IPAD_PRO (IS_IPAD && MAX(SCREEN_WIDTH,SCREEN_HEIGHT) == 1366.0)

#define LINK_COLOR  [UIColor colorWithRed:105/255.f green:181/255.f blue:221/255.f alpha:1.0f]
#define GRAPHITE_TEXT       [UIColor colorWithRed:0.741 green:0.741 blue:0.741 alpha:1.0]

#define AZURE6               [UIColor colorWithRed:54/255.f green:138/255.f blue:192/255.f alpha:1.0f]
#define AMBER6               [UIColor colorWithRed:239/255.f green:168/255.f blue:54/255.f alpha:1.0f]
#define AMETHYST6             [UIColor colorWithRed:146/255.f green:121/255.f blue:166/255.f alpha:1.0f]
#define WHITE_COLOR              [UIColor colorWithRed:1.0f green:1.0f blue:1.0f alpha:1.0f]
#define GREY_INACTIVE               [UIColor colorWithRed:175/255.f green:175/255.f blue:175/255.f alpha:1.0f]
#define SETTINGS_TINT_COLOR [UIColor colorWithRed:80/255.0f green:83.0/255.0f blue:90/255.0f alpha:1.0f]
#define SERVER_DETAILS_CELL_TITLE_COLOR              [UIColor colorWithRed:189.0f/255.0f green:189.0f/255.0f blue:189.0f/255.0f alpha:1.0f]


#define WHITED_BLUE               [UIColor colorWithRed:110/255.f green:162/255.f blue:196/255.f alpha:1.0f]
#define SLATE8               [UIColor colorWithRed:49/255.f green:50/255.f blue:54/255.f alpha:1.0f]
#define PRIMARY_TEXT_COLOR               [UIColor colorWithRed:26/255.f green:26/255.f blue:26/255.f alpha:1.0f]
#define PRIMARY_LABEL_TEXT_COLOR               [UIColor colorWithRed:92/255.f green:92/255.f blue:92/255.f alpha:1.0f]
#define PLACEHOLDER_TEXT_COLOR               [UIColor colorWithRed:153/255.f green:153/255.f blue:153/255.f alpha:1.0f]
#define SECONDARY_LABEL_TEXT_COLOR              [UIColor colorWithRed:54/255.f green:138/255.f blue:192/255.f alpha:1.0f]

#define BACKGROUND_COLOR               [UIColor colorWithRed:219/255.f green:219/255.f blue:219/255.f alpha:1.0f]
//#define SETTINGS_BACKGROUND_COLOR    [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0f]
#define SETTINGS_BACKGROUND_COLOR    [UIColor colorWithRed:49.0/255.0 green:50.0/255.0 blue:54.0/255.0 alpha:1.0f]
#define DETAIL_TABBAR_BACKGROUND_COLOR               [UIColor colorWithRed:80/255.f green:83/255.f blue:90/255.f alpha:1.0f]
#define DETAIL_TABBAR_UNSELECTED_FONT_COLOR               [UIColor colorWithRed:168/255.f green:168/255.f blue:169/255.f alpha:1.0f]




#define LINE_COLOR               [UIColor colorWithRed:240/255.f green:240/255.f blue:240/255.f alpha:1.0f]

#endif
