View Single Post
Old 03-06-2018, 02:21 PM   #4
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,765
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
KOreader is a bit extensive. Depending on what you want you really only need to take a look at some of the drawing stuff:

(probably not exhaustive; just some quick links)
https://github.com/koreader/koreader...i/einkfb_h.lua
https://github.com/koreader/koreader...fer_einkfb.lua
https://github.com/koreader/koreader.../einkfb_decl.c
https://github.com/koreader/koreader...clude/einkfb.h

Relevant stuff for Plato: https://github.com/baskerville/plato...rc/framebuffer

okreader doesn't include any GUI stuff afaik

But what do you mean by fancy calendar? You can easily display image and HTML files with what's included in KSM and a little scripting.

Quote:
Also, how much of the default system can I delete? I mean I have a backup of anything, but is there a tutorial on how to just throw everything away (I don't need any of the default GUI stuff, I want it to boot right into my app).
Just set starting your app as the default in KSM and leave the rest alone. Well, unless you just really, really, really want to get rid of Nickel for some reason but I generally wouldn't. In that case you could replace it all with okreader.

Edit: but if you like Lua, you could also take KSM + KOReader as a base, whether to display generated images or to create your own widgets. http://koreader.rocks/doc/modules/ui.widget.widget.html

In that case you could create a plugin, see some examples here: https://github.com/koreader/koreader...033cfb/plugins

You could do something similar with Plato if you like Rust, I suppose. :P

Last edited by Frenzie; 03-06-2018 at 02:28 PM.
Frenzie is offline   Reply With Quote