thiagojs85 / and-bible

Automatically exported from code.google.com/p/and-bible
0 stars 0 forks source link

Would it be possible to add options in the menu for changing text colors? #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Very good overall! I find the light-grey text in night-mode not quite bright 
enough, and I would be nice to make the verse numbers a different color.

Original issue reported on code.google.com by jmatt...@gmail.com on 4 Feb 2012 at 2:37

GoogleCodeExporter commented 8 years ago
Great app!
I don't know how much this helps, but I was able to add a custom css file on my 
SD card, /jsword/styles/custom.css .

I changed 
/AndBible/src/net/bible/service/format/osistohtml/OsisToHtmlSaxHandler.java
In the imports:
    import net.bible.android.SharedConstants;
In startDocument():
    String extraStyleSheetTag = "<link href='file:///"+SharedConstants.MANUAL_INSTALL_DIR+"/styles/custom.css' rel='stylesheet' type='text/css'/>";

Right before the writing the custom font string:
                + extraStyleSheetTag + "\n"

Although it seems to work fine without the css file, it might be a good idea to 
add a fileExists() check. 
Something like this might also be added to 
/AndBible/src/net/bible/service/format/HtmlMessageFormatter.java , but I 
haven't tried.

It's not very user friendly -- the user will still need to know css to create 
the file. This will not replace the previously defined stylesheet, just augment 
it. The styles will need to be overwritten for each element.
But it's at least a start. 

Original comment by whik...@gmail.com on 29 Jul 2012 at 12:22

Attachments: