Replace checkboxes with radio buttons where appropriate (#14431)
This commit is contained in:
1 parent
d5a54f6c16
commit
92effcf9fb
17 files changed
+59
-13
No files matched your search
@@ -127,6 +127,7 @@ function ReaderFont:setupFaceMenuTable()
|
||||
hold_callback = function(touchmenu_instance)
|
||||
self:makeDefault(v, is_monospace, touchmenu_instance)
|
||||
end,
|
||||
radio = true,
|
||||
checked_func = function()
|
||||
return v == self.font_face
|
||||
end,
|
||||
@@ -577,6 +578,7 @@ Enabling this will ignore such font names and make sure your preferred family fo
|
||||
self:updateFontFamilyFonts()
|
||||
if touchmenu_instance then touchmenu_instance:updateItems() end
|
||||
end,
|
||||
radio = true,
|
||||
checked_func = function()
|
||||
if self.font_family_fonts[family_tag] == false then
|
||||
return true
|
||||
@@ -644,6 +646,7 @@ Enabling this will ignore such font names and make sure your preferred family fo
|
||||
self:updateFontFamilyFonts()
|
||||
if touchmenu_instance then touchmenu_instance:updateItems() end
|
||||
end,
|
||||
radio = true,
|
||||
checked_func = function()
|
||||
if self.font_family_fonts[family_tag] then
|
||||
return self.font_family_fonts[family_tag] == v
|
||||
|
||||
Reference in new issue
Block a user