help_text=_("The DPI of your screen is automatically detected so items can be drawn with the right amount of pixels. This will usually display at (roughly) the same size on different devices, while remaining sharp. Increasing the DPI setting will result in larger text and icons, while a lower DPI setting will look smaller on the screen."),
checked_func=function()
returndpi()==nil
end,
checked_func=isAutoDPI,
callback=function()setDPI()end
},
{
text=T(_("Small (%1)"),dpi_small),
checked_func=function()
ifisAutoDPI()thenreturnfalseend
local_dpi,_custom=dpi(),custom()
return_dpiand_dpi<=140and_dpi~=_custom
end,
@ -47,6 +49,7 @@ return {
{
text=T(_("Medium (%1)"),dpi_medium),
checked_func=function()
ifisAutoDPI()thenreturnfalseend
local_dpi,_custom=dpi(),custom()
return_dpiand_dpi>140and_dpi<=200and_dpi~=_custom
end,
@ -55,6 +58,7 @@ return {
{
text=T(_("Large (%1)"),dpi_large),
checked_func=function()
ifisAutoDPI()thenreturnfalseend
local_dpi,_custom=dpi(),custom()
return_dpiand_dpi>200and_dpi<=280and_dpi~=_custom
end,
@ -63,6 +67,7 @@ return {
{
text=T(_("Extra large (%1)"),dpi_xlarge),
checked_func=function()
ifisAutoDPI()thenreturnfalseend
local_dpi,_custom=dpi(),custom()
return_dpiand_dpi>280and_dpi<=400and_dpi~=_custom
end,
@ -71,6 +76,7 @@ return {
{
text=T(_("Extra-Extra Large (%1)"),dpi_xxlarge),
checked_func=function()
ifisAutoDPI()thenreturnfalseend
local_dpi,_custom=dpi(),custom()
return_dpiand_dpi>400and_dpi<=560and_dpi~=_custom
end,
@ -79,6 +85,7 @@ return {
{
text=T(_("Extra-Extra-Extra Large (%1)"),dpi_xxxlarge),
checked_func=function()
ifisAutoDPI()thenreturnfalseend
local_dpi,_custom=dpi(),custom()
return_dpiand_dpi>560and_dpi~=_custom
end,
@ -89,6 +96,7 @@ return {
returnT(_("Custom DPI: %1 (hold to set)"),custom()ordpi_auto)