[UX] Add fine tune for zoom(dpi) and font size (#5432)

Close: #5312
This commit is contained in:
Robert
2019-09-27 12:58:40 +02:00
committed by Frans de Jonge
parent d0f95ec669
commit a934d2d52e
4 changed files with 62 additions and 10 deletions

View File

@@ -214,6 +214,10 @@ In the top menu → Settings → Status bar, you can choose whether the bottom m
{
name = "render_dpi",
name_text = S.ZOOM_DPI,
more_options = true,
more_options_param = {
value_hold_step = 20,
},
toggle = {S.OFF, "48", "96¹¹", "167", "212", "300"},
values = {0, 48, 96, 167, 212, 300},
default_value = 96,
@@ -297,6 +301,18 @@ Note that your selected font size is not affected by this setting.]]),
name_text = S.FONTSIZE_FINE_TUNING,
toggle = Device:isTouchDevice() and {S.DECREASE, S.INCREASE} or nil,
item_text = not Device:isTouchDevice() and {S.DECREASE, S.INCREASE} or nil,
more_options = true,
more_options_param = {
value_min = 12,
value_max = 255,
value_step = 0.5,
precision = "%.1f",
value_hold_step = 4,
name = "font_size",
name_text = _("Font Size"),
event = "SetFontSize",
},
values = {},
event = "ChangeSize",
args = {"decrease", "increase"},
alternate = false,