This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| FolderCover patch for KOReader (v3.0) | |
| ======================================== | |
| Features: | |
| - Automatically detects cover images in directories | |
| - Supports multiple image formats (jpg, jpeg, png, webp, gif) | |
| - Configurable folder name and file count display with positioning options | |
| - Rounded corners and proper image cropping | |
| - Settings integration with BookInfoManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- based on https://gist.github.com/IntrovertedMage/d759ff214f799cfb5e1f8c85daab6cae and https://gist.github.com/sebdelsol/eba2e492473ac1f9e0ecb003d403b7de | |
| -- Menu added in the Reader menu: | |
| -- settings > Status bar > Progress bar > Thickness, height & colors > Read color | |
| -- settings > Status bar > Progress bar > Thickness, height & colors > Unread color | |
| local ReaderFooter = require("apps/reader/modules/readerfooter") | |
| local ProgressWidget = require("ui/widget/progresswidget") | |
| local BD = require("ui/bidi") | |
| local Blitbuffer = require("ffi/blitbuffer") | |
| local Geom = require("ui/geometry") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local readerFooter = require("apps/reader/modules/readerfooter") | |
| local ProgressWidget = require("ui/widget/progresswidget") | |
| local BD = require("ui/bidi") | |
| local Blitbuffer = require("ffi/blitbuffer") | |
| local Geom = require("ui/geometry") | |
| local Math = require("optmath") | |
| local Screen = require("device").screen | |
| -- Somewhat empirically chosen threshold to switch between the two designs ;o) | |
| local INITIAL_MARKER_HEIGHT_THRESHOLD = Screen:scaleBySize(12) |