Kaydet (Commit) 3c536984 authored tarafından Siqi LIU's avatar Siqi LIU

popover view when no WiFi interface is found for ex

Change-Id: Ib37fa00b58a1c4193b4181699e385dcb6502edac
üst 2ab48412
......@@ -158,7 +158,7 @@
- (void)showAtPoint:(CGPoint)point inView:(UIView *)view withText:(NSString *)text
{
UIFont *font = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? kTextFontPad : kTextFontPhone;
UIFont *font = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? kSmallTextFontPad : kTextFontPhone;
CGSize screenSize = [self screenSize];
CGSize textSize = [text sizeWithFont:font constrainedToSize:CGSizeMake(screenSize.width - kHorizontalMargin*4.f, 1000.f) lineBreakMode:UILineBreakModeWordWrap];
......@@ -168,7 +168,7 @@
textView.userInteractionEnabled = NO;
[textView setNumberOfLines:0]; //This is so the label word wraps instead of cutting off the text
textView.font = font;
textView.textAlignment = kTextAlignment;
textView.textAlignment = kTextAlignmentLeft;
textView.textColor = kTextColor;
textView.text = text;
......
......@@ -53,7 +53,7 @@
// DIVIDERS BETWEEN VIEWS
//Bool that turns off/on the dividers
#define kShowDividersBetweenViews NO
#define kShowDividersBetweenViews YES
//color for the divider fill
#define kDividerColor [UIColor colorWithRed:0.329 green:0.341 blue:0.353 alpha:0.15f]
......@@ -88,6 +88,8 @@
//normal text font
#define kTextFontPad [UIFont fontWithName:@"HelveticaNeue" size:20.f]
#define kSmallTextFontPad [UIFont fontWithName:@"HelveticaNeue" size:16.f]
//normal text color
#define kTextColor [UIColor colorWithRed:0.329 green:0.341 blue:0.353 alpha:1]
// highlighted text color
......@@ -96,6 +98,9 @@
//normal text alignment
#define kTextAlignment UITextAlignmentCenter
//normal text alignment
#define kTextAlignmentLeft UITextAlignmentLeft
//title font
#define kTitleFontPhone [UIFont fontWithName:@"HelveticaNeue-Bold" size:16.f]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment