Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9ec9fea
change night mode bg color
SukritChat Dec 19, 2022
973917f
feat(NM-867): add fonts Sarabun family
wisawaDekd Dec 19, 2022
6782c63
Merge remote-tracking branch 'origin/feature/NM-867_fonts-ebook-reade…
SukritChat Dec 19, 2022
ab62826
add font
SukritChat Dec 19, 2022
de5f2da
try add break word
SukritChat Dec 20, 2022
a9d07f4
disable userSelect
SukritChat Dec 22, 2022
8b7df73
fix js script
SukritChat Dec 22, 2022
9158f62
Merge pull request #1 from Dek-D/develop
topdiary Dec 22, 2022
bb720fa
Merge pull request #2 from Dek-D/staging
topdiary Dec 22, 2022
6ead8e2
try fix font
SukritChat Dec 26, 2022
4c65434
try to fix font buy delete https
SukritChat Dec 26, 2022
f93159d
try add https
SukritChat Dec 26, 2022
65fdb3c
Merge pull request #3 from Dek-D/develop
topdiary Dec 26, 2022
47a87e6
Merge pull request #4 from Dek-D/staging
topdiary Dec 26, 2022
2da1ac1
add font th sarabun new
SukritChat May 16, 2023
430facb
Merge pull request #5 from Dek-D/feature/NM-1104_add-local-font
SukritChat May 16, 2023
1ffba8f
Merge pull request #6 from Dek-D/develop
topdiary May 16, 2023
f3027e5
fix font order
SukritChat May 17, 2023
101ea2b
Merge pull request #7 from Dek-D/feature/NM-1104_add-local-font
topdiary May 17, 2023
4310cf8
Merge branch 'staging' into release
SukritChat Sep 22, 2023
c0e8085
Merge branch 'main' into staging
SukritChat Sep 27, 2023
efe8406
Merge branch 'staging' into release
SukritChat Sep 27, 2023
87a1a9e
Merge branch 'main' into hotfix/update-readium
SukritChat Dec 27, 2024
ed675bf
feat(NM-2213): change sepia bg color
SukritChat Jan 2, 2025
ccdf9e6
Merge pull request #1 from Dek-D/hotfix/update-readium
topdiary Jan 2, 2025
d80f162
feat: update scroll navigation
phiraphongbenzz May 10, 2026
27d6395
feat: add scroll vertical flag
phiraphongbenzz May 11, 2026
4d18b4a
refactor: guard re-entrancy and fix completion handling in navigateVe…
phiraphongbenzz May 12, 2026
5022437
refactor: clarify boundary math in scrollViewWillEndDragging
phiraphongbenzz May 12, 2026
52fbc29
refactor: remove redundant _ = and completion: {} in didRequestChapte…
phiraphongbenzz May 12, 2026
7fcc2d9
Merge pull request #2 from Dek-D/feature/vertical-scroll-chapter-navi…
phiraphongbenzz May 13, 2026
a3ca6c7
fix: scroll bounces
phiraphongbenzz May 13, 2026
1f773d8
Merge pull request #4 from Dek-D/hotfix/scroll-bounces
phiraphongbenzz May 13, 2026
7211b73
fix: scroll offset cover image
phiraphongbenzz May 13, 2026
55657fc
Merge pull request #5 from Dek-D/hotfix/scroll-bounces
phiraphongbenzz May 13, 2026
459c3b7
feat: update sepia text color
phiraphongbenzz May 13, 2026
0d51c4a
Merge pull request #6 from Dek-D/hotfix/change-sepia-text-color
phiraphongbenzz May 13, 2026
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
1 change: 1 addition & 0 deletions Sources/Navigator/EPUB/EPUBReflowableSpreadView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ final class EPUBReflowableSpreadView: EPUBSpreadView {

override func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
super.webView(webView, didFinish: navigation)

webView.evaluateJavaScript(
"""
javascript:(function() {
Expand Down
8 changes: 4 additions & 4 deletions Sources/Navigator/EPUB/UserSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import R2Shared

public class UserSettings {
// WARNING: String values must not contain any single or double quotes characters, otherwise it breaks the streamer's injection.
private let appearanceValues = ["readium-default-on", "readium-sepia-on","readium-night-on"]
static let appearanceValues = ["readium-default-on", "readium-sepia-on","readium-night-on"]
// we will append new font at the last to keep old user's font setting
private let textAlignmentValues = ["justify", "start"]
private let fontFamilyValues = ["Sarabun", "Chakra Petch", "Mali", "Maitree", "Taviraj", "Trirong", "Kodchasan", "THSarabunNew"]
private let columnCountValues = ["auto", "1", "2"]
static let textAlignmentValues = ["justify", "start"]
static let fontFamilyValues = ["Sarabun", "Chakra Petch", "Mali", "Maitree", "Taviraj", "Trirong", "Kodchasan", "THSarabunNew"]
static let columnCountValues = ["auto", "1", "2"]

private var fontSize: Float
private var fontOverride: Bool
Expand Down