View Single Post
Old 04-06-2013, 04:57 PM   #16
Anak
Guru
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: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Maybe some one can mod the firmware as the "userStyle.css" probably refers to a specific directory (path). It doesn't really refer to the root directory as res:///userStyle.css might suggest.

Some questions:
  • 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)

Edit:
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)

Last edited by Anak; 04-07-2013 at 08:22 AM. Reason: Datalogics userStyle.css blog entry
Anak is offline   Reply With Quote