mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderTypeset: tweak Style> menu logic and defaults
- Reword and document most menu items. - Handle internally two default styles, one applying only to FB2/FB2 books, and the other to all other formats. - Also don't reset the stylesheet to epub.css when toggling Embedded Styles to off.
This commit is contained in:
@@ -173,6 +173,7 @@ function CreDocument:init()
|
||||
self.default_css = "./data/epub.css"
|
||||
if file_type == "fb2" or file_type == "fb3" then
|
||||
self.default_css = "./data/fb2.css"
|
||||
self.is_fb2 = true -- FB2 won't look good with any html-oriented stylesheet
|
||||
end
|
||||
|
||||
-- This mode must be the same as the default one set as ReaderView.view_mode
|
||||
|
||||
Reference in New Issue
Block a user