mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Reorganize bottom menu config panels (#6131)
Mostly for the PDF bottom menu.
- Reorganize by topic, trying to limit the number
of widgets per panel to 4.
- Re-order some toggles from low to high ('off' then 'on').
- Show font size as number instead of a list of "Aa".
- PDF: add more font size values, and increase usable
contrast values.
- Add help_text to most PDF toggle titles.
- CRE line spacing: increase fine tuning min and max.
Also avoid zoom advice messages on book load.
This commit is contained in:
@@ -119,7 +119,7 @@ function ReaderZooming:onReadSettings(config)
|
||||
local zoom_mode = config:readSetting("zoom_mode") or
|
||||
G_reader_settings:readSetting("zoom_mode") or
|
||||
self.DEFAULT_ZOOM_MODE
|
||||
self:setZoomMode(zoom_mode)
|
||||
self:setZoomMode(zoom_mode, true) -- avoid informative message on load
|
||||
end
|
||||
|
||||
function ReaderZooming:onSaveSettings()
|
||||
@@ -340,8 +340,8 @@ function ReaderZooming:genSetZoomModeCallBack(mode)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderZooming:setZoomMode(mode)
|
||||
if self.ui.view.page_scroll and self.paged_modes[mode] then
|
||||
function ReaderZooming:setZoomMode(mode, no_warning)
|
||||
if not no_warning and self.ui.view.page_scroll and self.paged_modes[mode] then
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = T(_([[
|
||||
%1
|
||||
|
||||
Reference in New Issue
Block a user