mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Style tweaks: use css snippets to tweak book styles (#3944)
Adds a new menu "Style tweaks", with a few CSS snippets that can make some things better with some books.
This commit is contained in:
@@ -509,9 +509,11 @@ function CreDocument:setFontHinting(mode)
|
||||
self._document:setIntProperty("font.hinting.mode", mode)
|
||||
end
|
||||
|
||||
function CreDocument:setStyleSheet(new_css)
|
||||
logger.dbg("CreDocument: set style sheet", new_css)
|
||||
self._document:setStyleSheet(new_css)
|
||||
function CreDocument:setStyleSheet(new_css_file, appended_css_content )
|
||||
logger.dbg("CreDocument: set style sheet:",
|
||||
new_css_file and new_css_file or "no file",
|
||||
appended_css_content and "and appended content ("..#appended_css_content.." bytes)" or "(no appended content)")
|
||||
self._document:setStyleSheet(new_css_file, appended_css_content)
|
||||
end
|
||||
|
||||
function CreDocument:setEmbeddedStyleSheet(toggle)
|
||||
|
||||
Reference in New Issue
Block a user