mirror of https://github.com/oxen-io/session-ios
ContactDetail: Link notes
parent
b3d2544b1f
commit
84e12a39c9
@ -0,0 +1,17 @@
|
|||||||
|
//
|
||||||
|
// UIColor+UIColor_OWS.h
|
||||||
|
// Signal
|
||||||
|
//
|
||||||
|
// Created by Dylan Bourgeois on 25/11/14.
|
||||||
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
@interface UIColor (UIColor_OWS)
|
||||||
|
|
||||||
|
+(UIColor*) ows_blueColor;
|
||||||
|
+(UIColor*) ows_darkBackgroundColor;
|
||||||
|
+(UIColor*) ows_darkGrayColor;
|
||||||
|
|
||||||
|
@end
|
@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// UIColor+UIColor_OWS.m
|
||||||
|
// Signal
|
||||||
|
//
|
||||||
|
// Created by Dylan Bourgeois on 25/11/14.
|
||||||
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "UIColor+OWS.h"
|
||||||
|
|
||||||
|
@implementation UIColor (UIColor_OWS)
|
||||||
|
|
||||||
|
|
||||||
|
+(UIColor*) ows_blueColor
|
||||||
|
{
|
||||||
|
return [UIColor colorWithRed:0.f/255.f green:122.f/255.f blue:255.f/255.f alpha:1.0f];
|
||||||
|
}
|
||||||
|
|
||||||
|
+(UIColor*) ows_darkGrayColor
|
||||||
|
{
|
||||||
|
return [UIColor colorWithRed:81.f/255.f green:81.f/255.f blue:81.f/255.f alpha:1.0f];
|
||||||
|
}
|
||||||
|
|
||||||
|
+(UIColor*) ows_darkBackgroundColor
|
||||||
|
{
|
||||||
|
return [UIColor colorWithRed:35.0f/255.0f green:31.0f/255.0f blue:32.0f/255.0f alpha:1.0f];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// UIFont+OWS.h
|
||||||
|
// Signal
|
||||||
|
//
|
||||||
|
// Created by Dylan Bourgeois on 25/11/14.
|
||||||
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
@interface UIFont (OWS)
|
||||||
|
|
||||||
|
+ (UIFont*) ows_thinFontWithSize:(CGFloat)size;
|
||||||
|
|
||||||
|
+ (UIFont*) ows_lightFontWithSize:(CGFloat)size;
|
||||||
|
|
||||||
|
+ (UIFont*) ows_regularFontWithSize:(CGFloat)size;
|
||||||
|
|
||||||
|
+ (UIFont*) ows_boldFontWithSize:(CGFloat)size;
|
||||||
|
|
||||||
|
@end
|
@ -0,0 +1,38 @@
|
|||||||
|
//
|
||||||
|
// UIFont+OWS.m
|
||||||
|
// Signal
|
||||||
|
//
|
||||||
|
// Created by Dylan Bourgeois on 25/11/14.
|
||||||
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
static NSString *const kHelveticaNeueThin = @"HelveticaNeue-Thin";
|
||||||
|
static NSString *const kHelveticaNeueLight = @"HelveticaNeue-Light";
|
||||||
|
static NSString *const kHelveticaNeueRegular = @"HelveticaNeue-Regular";
|
||||||
|
static NSString *const kHelveticaNeueBold = @"HelveticaNeue-Bold";
|
||||||
|
|
||||||
|
#import "UIFont+OWS.h"
|
||||||
|
|
||||||
|
@implementation UIFont (OWS)
|
||||||
|
|
||||||
|
+ (UIFont*) ows_thinFontWithSize:(CGFloat)size
|
||||||
|
{
|
||||||
|
return [UIFont fontWithName:kHelveticaNeueThin size:size];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (UIFont*) ows_lightFontWithSize:(CGFloat)size
|
||||||
|
{
|
||||||
|
return [UIFont fontWithName:kHelveticaNeueLight size:size];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (UIFont*) ows_regularFontWithSize:(CGFloat)size
|
||||||
|
{
|
||||||
|
return [UIFont fontWithName:kHelveticaNeueRegular size:size];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (UIFont*) ows_boldFontWithSize:(CGFloat)size
|
||||||
|
{
|
||||||
|
return [UIFont fontWithName:kHelveticaNeueBold size:size];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
Loading…
Reference in New Issue