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

Sorry for the delay getting to this. I've implemented the separate list of fonts, listing the sample one you provided. Once you get the others, they can be added to the fonts folder in the resources, and listed in the -[FontSettingsViewController viewWillAppear:] method (I can do that if you like).
37 lines
1.3 KiB
Objective-C
37 lines
1.3 KiB
Objective-C
//
|
|
// FontTableViewCell.m
|
|
// NewsBlur
|
|
//
|
|
// Created by David Sinclair on 2015-10-30.
|
|
// Copyright © 2015 NewsBlur. All rights reserved.
|
|
//
|
|
|
|
#import "FontTableViewCell.h"
|
|
|
|
@implementation FontTableViewCell
|
|
|
|
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
|
|
{
|
|
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
|
|
if (self) {
|
|
// Initialization code
|
|
self.textLabel.backgroundColor = [UIColor clearColor];
|
|
self.textLabel.textColor = UIColorFromRGB(0x303030);
|
|
self.textLabel.highlightedTextColor = UIColorFromRGB(0x303030);
|
|
self.textLabel.shadowColor = UIColorFromRGB(0xF0F0F0);
|
|
self.textLabel.shadowOffset = CGSizeMake(0, 1);
|
|
self.textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:14.0];
|
|
[self setSeparatorInset:UIEdgeInsetsMake(0, 38, 0, 0)];
|
|
UIView *background = [[UIView alloc] init];
|
|
[background setBackgroundColor:UIColorFromRGB(0xFFFFFF)];
|
|
[self setBackgroundView:background];
|
|
|
|
UIView *selectedBackground = [[UIView alloc] init];
|
|
[selectedBackground setBackgroundColor:UIColorFromRGB(0xECEEEA)];
|
|
[self setSelectedBackgroundView:selectedBackground];
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|