View Single Post
Old 11-28-2018, 02:20 PM   #48
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by icallaci View Post
I would LOVE the popup footnotes to show italics, but I am not sure how or where to implement jcn363's fix. Does it go in the "Change pop-up footnote font-family" patch? If not, to what file do I add the line "#text{font-style:italic;}\n\"? Thanks for any hints.
If you don't want to use (or modify) the previous one in nickel patch file, I think you can alter in this way:
Spoiler:
Code:
Change pop-up footnote font-family:
  - Enabled: no
  - Description: |
      This patch allows you to change the font-family for the kepub pop-up footnotes (it
      will also affect a few other dialogs, like no wifi, marked as finished, marked as
      unread, etc).
  # In ReadingController::showFootnoteDialog(Bookmark const&), a ConfirmationDialog is created.
  # This changes the styles for ConfirmationDialog > #text
  - FindZlib: "#ConfirmationDialog[isSansSerifDialog=true]"
  - ReplaceZlib: {Find: "font-family: Avenir;", Replace: "font-style:italic;}"} # with this change you'll have the same font family (for header and message) and italic for message
  - ReplaceZlib: {Find: "font-family: Sans-SerifJP, sans-serif;", Replace: "font-family: Georgia;"}

Note: You can leave the font-family if you want a different one from the header.
Good luck.

Last edited by jcn363; 11-28-2018 at 02:25 PM.
jcn363 is offline   Reply With Quote