kopt: color support

Keep colors when reflowing documents.
This commit is contained in:
Benoit Pierre
2024-07-14 22:00:31 +02:00
committed by Frans de Jonge
parent cb002f3d1f
commit 0c17941ffb
5 changed files with 14 additions and 36 deletions

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