FreeRDP
Loading...
Searching...
No Matches
BlockUI.h
1//
2// BlockUI.h
3//
4// Created by Gustavo Ambrozio on 14/2/12.
5//
6
7#ifndef BlockUI_h
8#define BlockUI_h
9
10#if __IPHONE_OS_VERSION_MAX_ALLOWED < 60000
11#define NSTextAlignmentCenter UITextAlignmentCenter
12#define NSLineBreakByWordWrapping UILineBreakModeWordWrap
13#define NSLineBreakByClipping UILineBreakModeClip
14
15#endif
16
17#ifndef IOS_LESS_THAN_6
18#define IOS_LESS_THAN_6 \
19 !([[[UIDevice currentDevice] systemVersion] compare:@"6.0" \
20 options:NSNumericSearch] != NSOrderedAscending)
21
22#endif
23
24#define NeedsLandscapePhoneTweaks \
25 (UIInterfaceOrientationIsLandscape( \
26 [[UIApplication sharedApplication] statusBarOrientation]) && \
27 UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPad)
28
29// Action Sheet constants
30
31#define kActionSheetBounce 10
32#define kActionSheetBorder 10
33#define kActionSheetButtonHeight 45
34#define kActionSheetTopMargin 15
35
36#define kActionSheetTitleFont [UIFont systemFontOfSize:18]
37#define kActionSheetTitleTextColor [UIColor whiteColor]
38#define kActionSheetTitleShadowColor [UIColor blackColor]
39#define kActionSheetTitleShadowOffset CGSizeMake(0, -1)
40
41#define kActionSheetButtonFont [UIFont boldSystemFontOfSize:20]
42#define kActionSheetButtonTextColor [UIColor whiteColor]
43#define kActionSheetButtonShadowColor [UIColor blackColor]
44#define kActionSheetButtonShadowOffset CGSizeMake(0, -1)
45
46#define kActionSheetBackground @"action-sheet-panel.png"
47#define kActionSheetBackgroundCapHeight 30
48
49// Alert View constants
50
51#define kAlertViewBounce 20
52#define kAlertViewBorder (NeedsLandscapePhoneTweaks ? 5 : 10)
53#define kAlertButtonHeight (NeedsLandscapePhoneTweaks ? 35 : 44)
54
55#define kAlertViewTitleFont [UIFont boldSystemFontOfSize:20]
56#define kAlertViewTitleTextColor [UIColor colorWithWhite:244.0 / 255.0 alpha:1.0]
57#define kAlertViewTitleShadowColor [UIColor blackColor]
58#define kAlertViewTitleShadowOffset CGSizeMake(0, -1)
59
60#define kAlertViewMessageFont [UIFont systemFontOfSize:18]
61#define kAlertViewMessageTextColor [UIColor colorWithWhite:244.0 / 255.0 alpha:1.0]
62#define kAlertViewMessageShadowColor [UIColor blackColor]
63#define kAlertViewMessageShadowOffset CGSizeMake(0, -1)
64
65#define kAlertViewButtonFont [UIFont boldSystemFontOfSize:18]
66#define kAlertViewButtonTextColor [UIColor whiteColor]
67#define kAlertViewButtonShadowColor [UIColor blackColor]
68#define kAlertViewButtonShadowOffset CGSizeMake(0, -1)
69
70#define kAlertViewBackground @"alert-window.png"
71#define kAlertViewBackgroundLandscape @"alert-window-landscape.png"
72#define kAlertViewBackgroundCapHeight 38
73
74#endif