Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion GreatReader/DocumentCollectionViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ @implementation DocumentCollectionViewCell

- (void)awakeFromNib
{
[super awakeFromNib];
CGFloat scale = [UIScreen mainScreen].scale;
self.imageView.layer.borderWidth = 1.0 / scale;
self.imageView.layer.borderColor = UIColor.blackColor.CGColor;
self.selectionView.hidden = !self.selected;
self.selectionView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:0.5];
self.selectionView.layer.borderWidth = 1.0 / scale;
self.selectionView.layer.borderColor = UIColor.blackColor.CGColor;
self.selectionView.layer.borderColor = UIColor.blackColor.CGColor;
}

- (void)setDocument:(PDFDocument *)document
Expand Down
1 change: 1 addition & 0 deletions GreatReader/DocumentListCollectionView.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ @implementation DocumentListCollectionView

- (void)awakeFromNib
{
[super awakeFromNib];
self.emptyTitleLabel.text = LocalizedString(@"home.no-books");
self.emptyDescriptionLabel.text = LocalizedString(@"home.no-books-description");
}
Expand Down
1 change: 1 addition & 0 deletions GreatReader/DocumentTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ @implementation DocumentTableViewCell

- (void)awakeFromNib
{
[super awakeFromNib];
CGFloat scale = UIScreen.mainScreen.scale;
self.imageView.layer.borderWidth = 1.0 / scale;
}
Expand Down
1 change: 1 addition & 0 deletions GreatReader/PDFDocumentPageSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ @implementation PDFDocumentPageSlider

- (void)awakeFromNib
{
[super awakeFromNib];
self.knobView = [[PDFDocumentPageSliderKnobView alloc] initWithFrame:CGRectMake(0, 0, 10, 10)];
[self addSubview:self.knobView];

Expand Down