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

Expose font settings - closes #33 #138

Merged
merged 17 commits into from
Sep 16, 2016

Conversation

tschob
Copy link
Member

@tschob tschob commented Sep 9, 2016

This PR contains following changes:

@tschob tschob changed the title Expose font settings - closes https://github.com/FolioReader/FolioReaderKit/issues/133 Expose font settings - closes #33 Sep 9, 2016
@@ -353,18 +353,23 @@ public class FolioReaderAudioPlayer: NSObject {
// MARK: TTS Sentence

func speakSentence() {
guard let currentPage = FolioReader.sharedInstance.readerCenter.currentPage else { return }
guard let
_readerCenter = FolioReader.sharedInstance.readerCenter,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid usage of _varName in Swift, it is not necessary.

_readerCenter.currentPage?.webView.js("nightMode(\(nightMode))")
_readerCenter.pageIndicatorView?.reloadColors()
_readerCenter.configureNavBar()
_readerCenter.scrollScrubber?.updateColors()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use same name here? updateColors and reloadColors, let's pick one 😄.

@hebertialmeida hebertialmeida merged commit 268907d into FolioReader:master Sep 16, 2016
@tschob tschob deleted the issue/133 branch September 16, 2016 09:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants