A few small design fixes (#7933)

Reduce CheckButton font size.
Remove icons in TouchMenu truncated items popup.
Fix some wording.
pull/7941/head
hius07 3 years ago committed by GitHub
parent a1d64de9b5
commit f711f060bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -404,7 +404,7 @@ Note that your selected font size is not affected by this setting.]]),
options = { options = {
{ {
name = "font_size", name = "font_size",
alt_name_text = _("Font size"), alt_name_text = _("Font Size"),
item_text = tableOfNumbersToTableOfStrings(DCREREADER_CONFIG_FONT_SIZES), item_text = tableOfNumbersToTableOfStrings(DCREREADER_CONFIG_FONT_SIZES),
item_align_center = 1.0, item_align_center = 1.0,
spacing = 15, spacing = 15,

@ -87,7 +87,7 @@ common_settings.time = {
{ {
text_func = function () text_func = function ()
local duration_format = G_reader_settings:readSetting("duration_format", "classic") local duration_format = G_reader_settings:readSetting("duration_format", "classic")
return T(_("Duration Format (%1)"), duration_format) return T(_("Duration format (%1)"), duration_format)
end, end,
sub_item_table = { sub_item_table = {
{ {

@ -31,7 +31,7 @@ local CheckButton = InputContainer:new{
hold_callback = nil, hold_callback = nil,
checked = false, checked = false,
enabled = true, enabled = true,
face = Font:getFace("cfont"), face = Font:getFace("smallinfofont"),
background = Blitbuffer.COLOR_WHITE, background = Blitbuffer.COLOR_WHITE,
overlap_align = "right", overlap_align = "right",
text = nil, text = nil,

@ -931,7 +931,10 @@ function TouchMenu:onMenuHold(item, text_truncated)
UIManager:show(InfoMessage:new{ text = help_text, }) UIManager:show(InfoMessage:new{ text = help_text, })
end end
elseif text_truncated then elseif text_truncated then
UIManager:show(InfoMessage:new{ text = getMenuText(item), }) UIManager:show(InfoMessage:new{
text = getMenuText(item),
show_icon = false,
})
end end
return true return true
end end

@ -1,6 +1,6 @@
local _ = require("gettext") local _ = require("gettext")
return { return {
name = "statistics", name = "statistics",
fullname = _("Reader statistics"), fullname = _("Reading statistics"),
description = _([[Keeps and displays your reading statistics.]]), description = _([[Keeps and displays your reading statistics.]]),
} }

Loading…
Cancel
Save