Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Update style.css dynamically #12

Closed
udoy-touhid opened this issue Dec 20, 2017 · 1 comment
Closed

How to Update style.css dynamically #12

udoy-touhid opened this issue Dec 20, 2017 · 1 comment

Comments

@udoy-touhid
Copy link

udoy-touhid commented Dec 20, 2017

I want to change the backgrounds and font color of the reader according to my need, please help me. I added a new style_night.css in asset, but not working.
I tried something like this, but it didn't work. I am new to both data binding and rx java, maybe this is also slowing me down :(


binding.epubView.getSettings().setCustomChapterCss(
new String[]{file:///android_asset/epubreaderandroid/style_night.css}
);

@timfreiheit
Copy link
Contributor

timfreiheit commented Dec 22, 2017

Hi,
this is indeed a bug in the reader.
The reader did not reload the page when the css or script settings changed.
I fixed it in #13 but it may need some time to be approved due to christmas.
I will release a version 0.2 if the fix is ready.

please try to avoid putting files into the epubreaderandroid folder. This should be considered private to the library.
The pull request also adds an example how a night mode could be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants