[UX] Option to show dictionary in large window (#3499)

This commit is contained in:
TnS-hun
2017-11-20 09:40:00 +01:00
committed by Frans de Jonge
parent b37ae2d681
commit 29b376fdd9
2 changed files with 10 additions and 1 deletions

View File

@@ -251,6 +251,15 @@ If you'd like to change the order in which dictionaries are queried (and their r
})
end,
},
{ -- setting used by dictquicklookup
text = _("Large window"),
checked_func = function()
return G_reader_settings:isTrue("dict_largewindow")
end,
callback = function()
G_reader_settings:flipNilOrFalse("dict_largewindow")
end,
},
{ -- setting used by dictquicklookup
text = _("Justify text"),
checked_func = function()

View File

@@ -165,7 +165,7 @@ function DictQuickLookup:update()
w = Screen:getWidth(),
h = Screen:getHeight(),
}
if self.is_fullpage then
if self.is_fullpage or G_reader_settings:isTrue("dict_largewindow") then
-- bigger window if fullpage being shown - this will let
-- some room anyway for footer display (time, battery...)
self.height = Screen:getHeight()