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

Fixing audio sync highlight in night mode #11 #28

Merged
Merged
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
2 changes: 1 addition & 1 deletion Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UICollectio
readerConfig.mediaOverlayColor = readerConfig.toolBarBackgroundColor.highlightColor()
}

let mediaOverlayStyle = "background: \(readerConfig.mediaOverlayColor.hexString(false)); border-radius: 3px; padding-right: 4px; margin-right: -4px;"
let mediaOverlayStyle = "background: \(readerConfig.mediaOverlayColor.hexString(false)) !important; border-radius: 3px; padding-right: 4px; margin-right: -4px;"

// Inject CSS
let jsFilePath = NSBundle.frameworkBundle().pathForResource("Bridge", ofType: "js")
Expand Down
4 changes: 2 additions & 2 deletions Source/Resources/Style.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ html.nightMode {
background-color: #131313 !important;
}

.nightMode p, .nightMode div, .nightMode span {
.nightMode p, .nightMode div, .nightMode span:not(.epub-media-overlay-playing) {
color: #767676 !important;
background-color: transparent !important;
}
Expand Down Expand Up @@ -268,7 +268,7 @@ p, span, div {

/* default media overlay style */
span.epub-media-overlay-playing {
background: #ccc;
background: #ccc !important;
border-radius: 3px;
padding-right: 4px;
margin-right: -4px
Expand Down