decouple UI definitions from document modules

This commit is contained in:
Qingping Hou authored and Frans de Jonge committed 2019-03-03 13:10:45 +01:00
1 parent 02eca23649
commit 9e57e56f95
9 files changed
+73 -24

No files matched your search

-3
View File
@@ -1,5 +1,4 @@
local Blitbuffer = require("ffi/blitbuffer")
local CreOptions = require("ui/data/creoptions")
local DataStorage = require("datastorage")
local Document = require("document/document")
local Font = require("ui/font")
@@ -28,7 +27,6 @@ local CreDocument = Document:new{
header_font = "Noto Sans",
fallback_font = "Noto Sans CJK SC",
default_css = "./data/cr3.css",
options = CreOptions,
provider = "crengine",
provider_name = "Cool Reader Engine",
}
@@ -94,7 +92,6 @@ end
function CreDocument:init()
self:updateColorRendering()
self:engineInit()
self.configurable:loadDefaults(self.options)
local file_type = string.lower(string.match(self.file, ".+%.([^.]+)"))
if file_type == "zip" then