View Single Post
Old 12-21-2018, 08:50 AM   #100
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by GeoffR View Post
I've added this patch on GitHub, it is exactly the same as the one I posted here but I've added a description and given it a less cryptic name:

Reduce top/bottom page spacer: (nickel.yaml)
Spoiler:
Code:
Reduce top/bottom page spacer:
  - Enabled: no
  - Description: |
      Reduces the blank space that remains at the top / bottom of the page when
      the "Show title" / "Show footer" reading settings options are unticked.
      Spacer height is halved, customise by changing the min-height + max-height
      values in the Replace: lines below. Affects both ePub and KePub books.
  - FindZlib: "* {\n  background-color: white;\n}\nQWidget[smallIconHeight=true][qApp_deviceIsTrilogy=true]"
  - ReplaceZlib:
      Offset: 0  # Touch/Mini: 24px --> 12px
      Find: "MediumVertSpacer[qApp_deviceIsTrilogy=true] {\n  min-height: 24px;\n  max-height: 24px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsTrilogy=true] {\n  min-height: 12px;\n  max-height: 12px;\n}"
  - ReplaceZlib:
      Offset: 0  # Glo/Aura/Aura2ed: 32px --> 16px
      Find: "MediumVertSpacer[qApp_deviceIsPhoenix=true] {\n  min-height: 32px;\n  max-height: 32px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsPhoenix=true] {\n  min-height: 16px;\n  max-height: 16px;\n}"
  - ReplaceZlib:
      Offset: 0  # AuraHD/H2O/GloHD/ClaraHD: 44px --> 22px
      Find: "MediumVertSpacer[qApp_deviceIsDragon=true] {\n  min-height: 44px;\n  max-height: 44px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsDragon=true] {\n  min-height: 22px;\n  max-height: 22px;\n}"
  - ReplaceZlib:
      Offset: 0  # AuraOne/Forma: 56px --> 28px
      Find: "MediumVertSpacer[qApp_deviceIsDaylight=true] {\n  min-height: 56px;\n  max-height: 56px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsDaylight=true] {\n  min-height: 28px;\n  max-height: 28px;\n}"
Released in v38, and kobopatch request thread updated. Thanks!

Last edited by geek1011; 12-21-2018 at 08:56 AM.
geek1011 is offline   Reply With Quote