Blame client/iOS/Views/BlockUI.h

Packit 1fb8d4
//
Packit 1fb8d4
//  BlockUI.h
Packit 1fb8d4
//
Packit 1fb8d4
//  Created by Gustavo Ambrozio on 14/2/12.
Packit 1fb8d4
//
Packit 1fb8d4
Packit 1fb8d4
#ifndef BlockUI_h
Packit 1fb8d4
#define BlockUI_h
Packit 1fb8d4
Packit 1fb8d4
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 60000
Packit 1fb8d4
#define NSTextAlignmentCenter       UITextAlignmentCenter
Packit 1fb8d4
#define NSLineBreakByWordWrapping   UILineBreakModeWordWrap
Packit 1fb8d4
#define NSLineBreakByClipping       UILineBreakModeClip
Packit 1fb8d4
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#ifndef IOS_LESS_THAN_6
Packit 1fb8d4
#define IOS_LESS_THAN_6 !([[[UIDevice currentDevice] systemVersion] compare:@"6.0" options:NSNumericSearch] != NSOrderedAscending)
Packit 1fb8d4
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#define NeedsLandscapePhoneTweaks (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) && UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPad)
Packit 1fb8d4
Packit 1fb8d4
Packit 1fb8d4
// Action Sheet constants
Packit 1fb8d4
Packit 1fb8d4
#define kActionSheetBounce         10
Packit 1fb8d4
#define kActionSheetBorder         10
Packit 1fb8d4
#define kActionSheetButtonHeight   45
Packit 1fb8d4
#define kActionSheetTopMargin      15
Packit 1fb8d4
Packit 1fb8d4
#define kActionSheetTitleFont           [UIFont systemFontOfSize:18]
Packit 1fb8d4
#define kActionSheetTitleTextColor      [UIColor whiteColor]
Packit 1fb8d4
#define kActionSheetTitleShadowColor    [UIColor blackColor]
Packit 1fb8d4
#define kActionSheetTitleShadowOffset   CGSizeMake(0, -1)
Packit 1fb8d4
Packit 1fb8d4
#define kActionSheetButtonFont          [UIFont boldSystemFontOfSize:20]
Packit 1fb8d4
#define kActionSheetButtonTextColor     [UIColor whiteColor]
Packit 1fb8d4
#define kActionSheetButtonShadowColor   [UIColor blackColor]
Packit 1fb8d4
#define kActionSheetButtonShadowOffset  CGSizeMake(0, -1)
Packit 1fb8d4
Packit 1fb8d4
#define kActionSheetBackground              @"action-sheet-panel.png"
Packit 1fb8d4
#define kActionSheetBackgroundCapHeight     30
Packit 1fb8d4
Packit 1fb8d4
Packit 1fb8d4
// Alert View constants
Packit 1fb8d4
Packit 1fb8d4
#define kAlertViewBounce         20
Packit 1fb8d4
#define kAlertViewBorder         (NeedsLandscapePhoneTweaks ? 5 : 10)
Packit 1fb8d4
#define kAlertButtonHeight       (NeedsLandscapePhoneTweaks ? 35 : 44)
Packit 1fb8d4
Packit 1fb8d4
Packit 1fb8d4
#define kAlertViewTitleFont             [UIFont boldSystemFontOfSize:20]
Packit 1fb8d4
#define kAlertViewTitleTextColor        [UIColor colorWithWhite:244.0/255.0 alpha:1.0]
Packit 1fb8d4
#define kAlertViewTitleShadowColor      [UIColor blackColor]
Packit 1fb8d4
#define kAlertViewTitleShadowOffset     CGSizeMake(0, -1)
Packit 1fb8d4
Packit 1fb8d4
#define kAlertViewMessageFont           [UIFont systemFontOfSize:18]
Packit 1fb8d4
#define kAlertViewMessageTextColor      [UIColor colorWithWhite:244.0/255.0 alpha:1.0]
Packit 1fb8d4
#define kAlertViewMessageShadowColor    [UIColor blackColor]
Packit 1fb8d4
#define kAlertViewMessageShadowOffset   CGSizeMake(0, -1)
Packit 1fb8d4
Packit 1fb8d4
#define kAlertViewButtonFont            [UIFont boldSystemFontOfSize:18]
Packit 1fb8d4
#define kAlertViewButtonTextColor       [UIColor whiteColor]
Packit 1fb8d4
#define kAlertViewButtonShadowColor     [UIColor blackColor]
Packit 1fb8d4
#define kAlertViewButtonShadowOffset    CGSizeMake(0, -1)
Packit 1fb8d4
Packit 1fb8d4
#define kAlertViewBackground            @"alert-window.png"
Packit 1fb8d4
#define kAlertViewBackgroundLandscape   @"alert-window-landscape.png"
Packit 1fb8d4
#define kAlertViewBackgroundCapHeight   38
Packit 1fb8d4
Packit 1fb8d4
#endif