TextViewer: font size (#10911)

This commit is contained in:
hius07
2023-09-19 08:39:25 +03:00
committed by GitHub
parent 2b13cd7dcb
commit 684fc22ffc
9 changed files with 28 additions and 21 deletions

View File

@@ -526,7 +526,6 @@ function ReaderBookmark:onShowBookmark(match_table)
textviewer = TextViewer:new{
title = _("Bookmark details"),
text = bm_view,
justified = G_reader_settings:nilOrTrue("dict_justify"),
buttons_table = {
{
{

View File

@@ -891,7 +891,6 @@ function ReaderHighlight:showHighlightNoteOrDialog(page, index, bookmark_note)
text = bookmark_note,
width = math.floor(math.min(Screen:getWidth(), Screen:getHeight()) * 0.8),
height = math.floor(math.max(Screen:getWidth(), Screen:getHeight()) * 0.4),
justified = G_reader_settings:nilOrTrue("dict_justify"),
buttons_table = {
{
{

View File

@@ -197,11 +197,11 @@ When the book's language tag is not among our presets, no specific features will
-- Text might be too long for InfoMessage
local status_text = table.concat(lang_infos, "\n")
local TextViewer = require("ui/widget/textviewer")
local Font = require("ui/font")
UIManager:show(TextViewer:new{
title = _("Language tags (and hyphenation dictionaries) used since start up"),
text = status_text,
text_face = Font:getFace("smallinfont"),
text_font_face = "smallinfont",
justified = false,
height = math.floor(Screen:getHeight() * 0.8),
})
end,