Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Use dark color theme in FolioReaderHighlightList when in night mode #42

Merged
merged 1 commit into from
Jan 20, 2016
Merged
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
2 changes: 2 additions & 0 deletions Source/FolioReaderHighlightList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class FolioReaderHighlightList: UITableViewController {
super.viewDidLoad()

tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseIdentifier)
tableView.backgroundColor = FolioReader.sharedInstance.nightMode ? UIColor.blackColor() : UIColor.whiteColor()
highlights = Highlight.allByBookId((kBookId as NSString).stringByDeletingPathExtension)
title = readerConfig.localizedHighlightsTitle

Expand Down Expand Up @@ -53,6 +54,7 @@ class FolioReaderHighlightList: UITableViewController {

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier, forIndexPath: indexPath)
cell.backgroundColor = FolioReader.sharedInstance.nightMode ? UIColor.blackColor() : UIColor.whiteColor()

let highlight = highlights[indexPath.row]

Expand Down