mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00

- Replaced the feeds list notificaitons icon. - The feed detail folder title icon now matches the color. - Changed all of the settings icons to the new style. - Changed the feed detail mark read icon. - Changed the focus and hidden unread indicators. - Unread indicators sized to match the web. - Tweaked feed detail spacing. - Increased feed detail titles to up to three lines. - Titlecased Interactions / Your Activities. - Removed borders and tweaked section titles in trainer.
34 lines
1.1 KiB
Objective-C
34 lines
1.1 KiB
Objective-C
//
|
|
// Utilities.h
|
|
// NewsBlur
|
|
//
|
|
// Created by Samuel Clay on 10/17/11.
|
|
// Copyright (c) 2011 NewsBlur. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
void drawLinearGradient(CGContextRef context, CGRect rect, CGColorRef startColor,
|
|
CGColorRef endColor);
|
|
|
|
@interface Utilities : NSObject <NSCacheDelegate> {
|
|
NSCache *imageCache;
|
|
}
|
|
|
|
+ (void)drawLinearGradientWithRect:(CGRect)rect startColor:(CGColorRef)startColor endColor:(CGColorRef)endColor;
|
|
+ (UIImage *)roundCorneredImage:(UIImage *)orig radius:(CGFloat)r;
|
|
+ (UIImage *)roundCorneredImage: (UIImage*)orig radius:(CGFloat)r convertToSize:(CGSize)size;
|
|
+ (UIImage *)templateImageNamed:(NSString *)imageName sized:(CGFloat)size;
|
|
+ (UIImage *)imageNamed:(NSString *)imageName sized:(CGFloat)size;
|
|
+ (UIImage *)imageWithImage:(UIImage *)image convertToSize:(CGSize)size;
|
|
+ (NSString *)md5:(NSString *)string;
|
|
+ (NSString *)formatLongDateFromTimestamp:(NSInteger)timestamp;
|
|
+ (NSString *)formatShortDateFromTimestamp:(NSInteger)timestamp;
|
|
|
|
@end
|
|
|
|
@interface UIResponder (FirstResponder)
|
|
|
|
+(id)currentFirstResponder;
|
|
|
|
@end
|