View Single Post
Old 12-21-2018, 01:24 AM   #98
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by geek1011 View Post
You can put it in the GitHub repo (or I can) when you think it's ready, then I'll do a release.
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}"
GeoffR is offline   Reply With Quote