mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
TextViewer: font size (#10911)
This commit is contained in:
@@ -3,7 +3,6 @@ local ButtonDialog = require("ui/widget/buttondialog")
|
||||
local Cache = require("cache")
|
||||
local ConfirmBox = require("ui/widget/confirmbox")
|
||||
local DocumentRegistry = require("document/documentregistry")
|
||||
local Font = require("ui/font")
|
||||
local InfoMessage = require("ui/widget/infomessage")
|
||||
local InputDialog = require("ui/widget/inputdialog")
|
||||
local Menu = require("ui/widget/menu")
|
||||
@@ -688,7 +687,6 @@ function OPDSBrowser:showDownloads(item)
|
||||
title = item.text,
|
||||
title_multilines = true,
|
||||
text = util.htmlToPlainTextIfHtml(item.content),
|
||||
text_face = Font:getFace("x_smallinfofont", G_reader_settings:readSetting("items_font_size")),
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
@@ -102,7 +102,7 @@ function PatchManagement:getSubMenu(priority)
|
||||
_("Patches might have changed. Current set of patches will be applied on next restart."))
|
||||
end
|
||||
self.ui.texteditor:quickEditFile(patch_fullpath, done_callback, false)
|
||||
else -- fallback to show only the first lines
|
||||
else
|
||||
local file = io.open(patch_fullpath, "rb")
|
||||
if not file then
|
||||
return ""
|
||||
@@ -114,6 +114,7 @@ function PatchManagement:getSubMenu(priority)
|
||||
textviewer = TextViewer:new{
|
||||
title = patch,
|
||||
text = patch_content,
|
||||
justified = false,
|
||||
}
|
||||
UIManager:show(textviewer)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user