Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-26-2025, 09:04 AM   #1
santisis
Junior Member
santisis began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2025
Device: kindle gen 11
How to implement tihs patch

Hi! A KOReader newbie here!

I have a solid background on programming but zero expertise with Lua an KOReader.

I'm trying to create a header attached to the visibility of the Status bar. So, when you press the Status bar to toggle (or cycle) the visibility the header visibility changes as the Status bar changes. It's sort of a Alt status bar, but attached to Status bar visibility.

I have now a working version of that patch but it's dirty. My approach was:
  1. I have started with u/joshua-cant patch for custom header/footer. That patch wraps ReaderView.paintTo and write the additional info on the page margins.
  2. (Remember, I don't have Lua knowledge) I haven't found a way to access the footer_visible member of ReaderFooter, so I've touched frontend/apps/reader/modules/readerfooter.lua to add a static function that returns that state. With that "fix" I know if my header has to be drawn.
  3. That worked, but my bar doesn't redraw automatically, so I have to refresh manually. Then I modified the onReaderFooterVisibilityChange event handler at frontend/apps/reader/modules/readerview.lua to force the redraw even when the Footer is not reclaiming space.

That works, but I know that isn't a clean solution.

My questions are:
  • There's a better method to wrap than ReaderView.paintTo, maybe a ReaderFooter method?
  • There's a clean way to check the ReaderFooter.footer_visible than having a static method? (I haven't said it, but the ReaderFooterVisibilityChange event doesn't share if the Status bar is visible or not, only that the visibility has changed)

Thanks in advance!
santisis is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
UK won't implement Article 13 law fjtorres News 25 02-03-2020 10:25 AM
Please implement faster index-search epubfan Recipes 12 07-01-2013 06:43 PM
When will Kobo Implement their 'Lending' Feature? pokee Kobo Reader 6 09-06-2012 05:49 PM
Please implement proper quoting JSWolf Feedback 12 12-02-2010 05:39 AM
Classic Possibility to implement more touch gestures? bthoven Barnes & Noble NOOK 4 03-10-2010 04:27 PM


All times are GMT -4. The time now is 01:39 AM.


MobileRead.com is a privately owned, operated and funded community.