View Single Post
Old 04-13-2013, 10:13 AM   #1
Anak
Evangelist
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 497
Karma: 482658
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
How to mod the userStyle.css?

Based on this thread Where to put userStyle.css? (started by GeoffR). But as it is more of a dev/hack thing the question is better asked here. Applies to Touch, Glo and Mini.

Is there any way to modify the original userStyle.css? It is extracted to the device and placed in a unkown directory (at least for me as I don't have so much Linux skills) in the "hidden" system partition and therefore not directly accessable for more common users like me.
I would like to be able to modify the userStyle.css to tweak it to my personal preferences.

Some questions/ideas:
  • Can some one dump the orignial Kobo (RMSDK) userStyle.css. here?
  • Try to replace the orginal userStyle.css with an @import rule that refers to a editable user defined stylesheet that is placed somewhere else on the reader? Something like: @import {url("res:///userModStyle.css") all}, where "userModStyle.css" is actually placed in the root dirctory of the Kobo device. (Or use another file name and/or directory)

Quote:
Question:
How do I use the userStyle.css style sheet in order to change ePub properties?

Answer:
A good example to take a look at would be book2png. When the book2png sample is built, a folder named resources is created in its main directory. In there lies the userStyle.css file. The file is a regular style sheet file and can be modified in order to change the properties of the currently viewed ePub. The simplest way to try it out would be with the background-color:#b0c4de; property. This would change the background color to a light blue.

NOTE: for Android projects userSytle.css is located in project/assets/rmsdk/

[S-11411] (Source: Datalogics RMSDK)
Anak is offline   Reply With Quote