Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

add css menu and embedded css toggle #727

Merged
merged 5 commits into from Jan 22, 2013
Merged

Conversation

houqp
Copy link
Member

@houqp houqp commented Jan 22, 2013

Now, only embedded css is loaded by default. I am not sure whether crengine is designed to load format.css by default, so we need further testing on this change.

* now css argument is removed from newDocView call.
* when setStyleSheet method cannot read given css file, it
  clears all the applied style.
* add setEmbeddedStyleSheet method.
@houqp
Copy link
Member Author

houqp commented Jan 22, 2013

this should close #569 and #711

@tigran123
Copy link
Member

Thank you, I will test it today.

@tigran123
Copy link
Member

Trying to open an fb2 file results in:

FATAL ERROR #-1: Unknown fatal error

But maybe this is because I have history files from the pre-PR state. I'll remove them and will try again.

@tigran123
Copy link
Member

One bug: invoking css selection menu via S and then pressing Back to get out of it needs to refresh the page. Currently it doesn't and the css selection menu is still shown on the screen until the user turns the page or does something else that refreshes it (e.g. Space for manual refresh).

@houqp
Copy link
Member Author

houqp commented Jan 22, 2013

Oh, I put the redraw current page in the wrong place ;p

@houqp
Copy link
Member Author

houqp commented Jan 22, 2013

BTW, did you still have the history file that crashes the reader? I am curious about the cause of the crash.

@tigran123
Copy link
Member

No, I didn't save those history files unfortunately.

tigran123 added a commit that referenced this pull request Jan 22, 2013
add css menu and embedded css toggle
@tigran123 tigran123 merged commit b294d09 into koreader:master Jan 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants