mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add setStyleSheet method to credocument
This commit is contained in:
@@ -281,6 +281,10 @@ function CreDocument:setGammaIndex(index)
|
||||
cre.setGammaIndex(index)
|
||||
end
|
||||
|
||||
function CreDocument:setStyleSheet(new_css)
|
||||
self._document:setStyleSheet(new_css);
|
||||
end
|
||||
|
||||
DocumentRegistry:addProvider("txt", "application/txt", CreDocument)
|
||||
DocumentRegistry:addProvider("epub", "application/epub", CreDocument)
|
||||
DocumentRegistry:addProvider("html", "application/html", CreDocument)
|
||||
|
||||
Reference in New Issue
Block a user