Skip to content

Commit

Permalink
[UX] Tell users to hold to set custom DPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Dec 8, 2018
1 parent 0a63ee5 commit d2ad26a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/ui/elements/screen_dpi_menu_table.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local _ = require("gettext")
local Screen = require("device").screen
local T = require("ffi/util").template


local function dpi() return G_reader_settings:readSetting("screen_dpi") end
Expand Down Expand Up @@ -51,7 +52,7 @@ return {
callback = function() setDPI(240) end
},
{
text = _("Custom DPI") .. ": " .. (custom() or 160),
text = T(_("Custom DPI: %1 (hold to set)"), custom() or 160),
checked_func = function()
local _dpi, _custom = dpi(), custom()
return _custom and _dpi == _custom
Expand Down

0 comments on commit d2ad26a

Please sign in to comment.