You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Google Book Details panel it's impossible to highlight/select the description-text.
That's because currently the rendering is done by a MarkdownView (and because of that the HTML description needs be converted into markdown at the first step -> bad performance).
Suggestion:
Use a WebView to render the content. That's now possible because in JavaFX 18 it's possible to make it's background transparent.
Benefits:
Improved performance (no need to convert html to markdown), can get rid of the jHtml2Md dependency
The WebView allows to highlight selected text
Drawback(s):
It will be harder to make the web-content synchronous with the Theme
Solution:
The WebEngineallows to set a user-stylesheet (containing web-css)
The Theme class should provide a web-view stylesheet (e.g by a getSimpleWebViewStylesheet(): String)
The text was updated successfully, but these errors were encountered:
In the Google Book Details panel it's impossible to highlight/select the description-text.
That's because currently the rendering is done by a
MarkdownView
(and because of that the HTML description needs be converted into markdown at the first step -> bad performance).Suggestion:
Use a
WebView
to render the content. That's now possible because in JavaFX 18 it's possible to make it's background transparent.Benefits:
Drawback(s):
Theme
WebEngine
allows to set a user-stylesheet (containing web-css)Theme
class should provide a web-view stylesheet (e.g by agetSimpleWebViewStylesheet(): String
)The text was updated successfully, but these errors were encountered: