|
|
@ -4,7 +4,7 @@ Hacking
|
|
|
|
Developing UI Widgets
|
|
|
|
Developing UI Widgets
|
|
|
|
---------------------
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
|
|
|
`utils/wbuilder.lua` is your friend, if you need to create new UI widgets. It
|
|
|
|
`tools/wbuilder.lua` is your friend, if you need to create new UI widgets. It
|
|
|
|
sets up a minimal environment to bootstrap KOReader's UI framework to avoid
|
|
|
|
sets up a minimal environment to bootstrap KOReader's UI framework to avoid
|
|
|
|
starting the whole reader. This gives you quick feedback loop while iterating
|
|
|
|
starting the whole reader. This gives you quick feedback loop while iterating
|
|
|
|
through your widget changes. It's also a handy tool for debugging widget
|
|
|
|
through your widget changes. It's also a handy tool for debugging widget
|
|
|
@ -20,5 +20,5 @@ KOReader's source tree:
|
|
|
|
It will spawn up an emulator window with a grid and simple timer widget for
|
|
|
|
It will spawn up an emulator window with a grid and simple timer widget for
|
|
|
|
demonstration.
|
|
|
|
demonstration.
|
|
|
|
|
|
|
|
|
|
|
|
You can add more `UIManager:show` call at the end of `utils/wbuilder.lua` to
|
|
|
|
You can add more `UIManager:show` call at the end of `tools/wbuilder.lua` to
|
|
|
|
test your new widgets.
|
|
|
|
test your new widgets.
|
|
|
|