View Single Post
Old 03-12-2012, 06:05 AM   #3531
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
Questions:

1)
I try to make the book-size-symbol switching on/off. This
Code:
model.container.sandbox.STATUS_GROUP.sandbox.STATUS_GROUP_SUB.sandbox.STATUS_GROUP.sandbox.showBookSizeIndicator(false);
as a function works only when the book is open. Not good. Any other ideas?

2)
I try to alter font-'color', size and other formattings for parts of the homepage (e.g. page-numbers) with OPTIONS.

What I know:
The part in the XML-files responsible for this.
How to make options/functions and store/restore the values.

What I don't know:

How to point to the responsible part in the XML-file. E.g. kbookAssets.xml:
PHP Code:
<style id="label-statusBar" size="19" style="bold" color="#FFFFFF" valign="center" top="2"/> 
What would be the code to alter the font-color?

I tried with 'brute-force' but gave up in the end. To make this working could make it possible to fine-grain the interface of the home-screen.

3)
I try to make altering fonts for LRF more elegant. My simple code just uses different prsp.sh-files .
Question:
Is there a simple way to do it directly with JS?
Or questioned the other way:
Where/how to put code to be executed on a restart of the reader? I tried 'onInit' but this did not work.

@kartu:
I struggle to push up my code into the clone of google-repository. But I'll working on it.

Thank you very much!


A.
Analogus is offline   Reply With Quote