kopt: color support

Keep colors when reflowing documents.
This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-07-19 21:32:20 +02:00
1 parent cb002f3d1f
commit 0c17941ffb
5 files changed
+14 -36

No files matched your search

+1 -1
View File
@@ -25,7 +25,6 @@ local function validDjvuFile(filename)
end
function DjvuDocument:init()
self:updateColorRendering()
local djvu = require("libs/libkoreader-djvu")
self.koptinterface = require("document/koptinterface")
self.koptinterface:setDefaultConfigurable(self.configurable)
@@ -38,6 +37,7 @@ function DjvuDocument:init()
if not ok then
error(self._document) -- will contain error message
end
self:updateColorRendering()
self.is_open = true
self.info.has_pages = true
self.info.configurable = true