mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Give more control over CRe margins (#4945)
Without having to resort to weird custom defaults. * Split the current margins setting in three: * Horizontal margins (because you generally want those two to be balanced). * Top margin & Bottom margin (because you may want to tweak those separately to deal with quirky status bar/final line shenanigans). * Also, add a "Reclaim bar height from bottom margin" toggle to the status bar menu, to optionally make sure the status bar won't eat into the bottom margin. * Includes a free fix to diacritics popup refresh handling in the keyboard ;).
This commit is contained in:
@@ -49,6 +49,7 @@ local ReaderView = require("apps/reader/modules/readerview")
|
||||
local ReaderWikipedia = require("apps/reader/modules/readerwikipedia")
|
||||
local ReaderZooming = require("apps/reader/modules/readerzooming")
|
||||
local Screenshoter = require("ui/widget/screenshoter")
|
||||
local SettingsMigration = require("ui/data/settings_migration")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local lfs = require("libs/libkoreader-lfs")
|
||||
local logger = require("logger")
|
||||
@@ -100,6 +101,8 @@ function ReaderUI:init()
|
||||
end
|
||||
|
||||
self.doc_settings = DocSettings:open(self.document.file)
|
||||
-- Handle local settings migration
|
||||
SettingsMigration:migrateSettings(self.doc_settings)
|
||||
|
||||
if Device:hasKeys() then
|
||||
self.key_events.Home = { {"Home"}, doc = "open file browser" }
|
||||
|
||||
Reference in New Issue
Block a user