mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Minor clean up
This commit is contained in:
parent
a6c2b9a1b5
commit
1eb68fece6
@ -89,20 +89,9 @@
|
|||||||
UIFont *mainFont = [UIFont boldSystemFontOfSize:15];
|
UIFont *mainFont = [UIFont boldSystemFontOfSize:15];
|
||||||
UIFont *secondaryFont = [UIFont systemFontOfSize:10];
|
UIFont *secondaryFont = [UIFont systemFontOfSize:10];
|
||||||
|
|
||||||
// float myColorValues[] = {255, 255, 255, .6};
|
|
||||||
// CGColorSpaceRef myColorSpace = CGColorSpaceCreateDeviceRGB();
|
|
||||||
// CGColorRef myColor = CGColorCreate(myColorSpace, myColorValues);
|
|
||||||
|
|
||||||
// icon
|
// icon
|
||||||
[_iconImage drawAtPoint:CGPointMake(kImageLeftMargin, kImageTopMargin)];
|
[_iconImage drawAtPoint:CGPointMake(kImageLeftMargin, kImageTopMargin)];
|
||||||
|
|
||||||
// shadows are a beast
|
|
||||||
// NSInteger shadowOffset = 2;
|
|
||||||
// if([[UIScreen mainScreen] scale] == 2) shadowOffset = 1;
|
|
||||||
// BITHOCKEY_IF_IOS5_OR_GREATER(shadowOffset = 1;) // iOS5 changes this - again!
|
|
||||||
//
|
|
||||||
// CGContextSetShadowWithColor(context, CGSizeMake(shadowOffset, shadowOffset), 0, myColor);
|
|
||||||
|
|
||||||
[mainTextColor set];
|
[mainTextColor set];
|
||||||
[_headerLabel drawInRect:CGRectMake(kTextRow, kImageTopMargin, globalWidth-kTextRow, 20) withFont:mainFont lineBreakMode:UILineBreakModeTailTruncation];
|
[_headerLabel drawInRect:CGRectMake(kTextRow, kImageTopMargin, globalWidth-kTextRow, 20) withFont:mainFont lineBreakMode:UILineBreakModeTailTruncation];
|
||||||
|
|
||||||
@ -114,9 +103,6 @@
|
|||||||
// sub
|
// sub
|
||||||
[secondaryTextColor set];
|
[secondaryTextColor set];
|
||||||
[_subHeaderLabel drawAtPoint:CGPointMake(kTextRow, kImageTopMargin + 29) forWidth:globalWidth-kTextRow withFont:secondaryFont lineBreakMode:UILineBreakModeTailTruncation];
|
[_subHeaderLabel drawAtPoint:CGPointMake(kTextRow, kImageTopMargin + 29) forWidth:globalWidth-kTextRow withFont:secondaryFont lineBreakMode:UILineBreakModeTailTruncation];
|
||||||
|
|
||||||
// CGColorRelease(myColor);
|
|
||||||
// CGColorSpaceRelease(myColorSpace);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user