A highly configurable header for KOReader that displays customizable information at the top of the screen while reading.
- various display items including time, battery, progress, chapter info, and more
- Flexible space separator - push items to left/right corners or distribute them across the bar
- Customizable separator styles - choose from different characters to separate header items
- Item reordering - easily arrange items using the built-in SortWidget
- Tap to toggle - tap the top of the screen to show/hide the bar
- Multi-select items - display multiple pieces of information simultaneously
- Respects book margins - automatically adjusts to your book's margin settings
This patch is based on:
- joshuacant's reader-header-cornered.lua - original header implementation
- KOReader's ReaderFooter module - feature inspiration and implementation patterns
- Create a directory named
patchesunder the koreader directory on your device- Android: This folder is located on the SD-card (e.g.,
/sdcard/koreader/patches/) - Kindle/Kobo: Usually in
/mnt/us/koreader/patches/or/mnt/onboard/.adds/koreader/patches/
- Android: This folder is located on the SD-card (e.g.,
- Download
2-reader-header.luaand put it in thepatchesdirectory - Restart KOReader
The top bar should now appear when reading EPUB and other reflowable formats (not PDFs or CBZ files).
Access all settings through: Settings (cog wheel) → Header
- Tap top of screen - Show/hide the top bar
- The touch zone covers approximately the top 10% of the screen
This patch creates a conflict with KOReader's default tap-to-open-menu gesture. By default, KOReader opens the menu when you tap the top portion of the screen. This patch uses the same area to toggle the top bar. You must disable tap gestures for opening the menu and use swipe instead.
You can modify the following settings in the code (lines ~147-155):
local header_font_face = "ffont" -- Font face
local header_font_size = 14 -- Font size
local header_font_bold = false -- Bold text
local header_font_color = Blitbuffer.COLOR_BLACK -- Text color
local header_top_padding = Size.padding.small -- Top padding
local header_use_book_margins = true -- Use book margins
local header_margin = Size.padding.large -- Manual margin (if not using book margins)Separator style can be changed via the Header menu.
- KOReader v2024.04 or later (recommended)
- Only works with reflowable formats (not PDF, CBZ, or other fixed-layout formats)
- Overlays book content - ensure you have sufficient top margin configured
- Conflict with KOReader's default tap-to-open-menu gesture (see Gesture Controls)
- Time left to finish book and Time left to finish chapter are disabled, as they cause koreader to crash - feel free to improve this if you know how
This patch follows KOReader's license (AGPL-3.0).
Feel free to modify and improve this patch.
