parent
394123d5db
commit
701ac941c7
|
@ -0,0 +1,4 @@
|
||||||
|
bin/
|
||||||
|
*.zip
|
||||||
|
*.tgz
|
||||||
|
log.txt
|
|
@ -0,0 +1,4 @@
|
||||||
|
cat ../kobopatch-patches/src/versions/$KOBOVERSION/libadobe.so.yaml/* > ./src/libadobe.so.yaml
|
||||||
|
cat ../kobopatch-patches/src/versions/$KOBOVERSION/libnickel.so.1.0.0.yaml/* > ./src/libnickel.so.1.0.0.yaml
|
||||||
|
cat ../kobopatch-patches/src/versions/$KOBOVERSION/librmsdk.so.1.0.0.yaml/* > ./src/librmsdk.so.1.0.0.yaml
|
||||||
|
cat ../kobopatch-patches/src/versions/$KOBOVERSION/nickel.yaml/* > ./src/nickel.yaml
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
rm -f "out/KoboRoot.tgz"
|
||||||
|
case `uname -s` in
|
||||||
|
CYGWIN_NT*)
|
||||||
|
./bin/koboptch-windows.exe
|
||||||
|
;;
|
||||||
|
Darwin)
|
||||||
|
./bin/kobopatch-darwin-64bit
|
||||||
|
;;
|
||||||
|
Linux)
|
||||||
|
case `uname -m` in
|
||||||
|
i?86)
|
||||||
|
./bin/kobopatch-linux-32bit
|
||||||
|
;;
|
||||||
|
x86_64)
|
||||||
|
./bin/kobopatch-linux-64bit
|
||||||
|
;;
|
||||||
|
arm*)
|
||||||
|
./bin/kobopatch-linux-arm
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
./bin/kobopatch-linux-arm
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported architecture"
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -0,0 +1,58 @@
|
||||||
|
## Works with kobopatch v0.14.0 and later.
|
||||||
|
## You can update kobopatch by downloading the latest release from https://github.com/geek1011/kobopatch/releases.
|
||||||
|
version: 4.20.14622
|
||||||
|
in: src/kobo-update-4.20.14622.zip
|
||||||
|
out: out/KoboRoot.tgz
|
||||||
|
log: out/log.txt
|
||||||
|
|
||||||
|
patchFormat: kobopatch
|
||||||
|
|
||||||
|
patches:
|
||||||
|
src/nickel.yaml: usr/local/Kobo/nickel
|
||||||
|
src/libadobe.so.yaml: usr/local/Kobo/libadobe.so
|
||||||
|
src/libnickel.so.1.0.0.yaml: usr/local/Kobo/libnickel.so.1.0.0
|
||||||
|
src/librmsdk.so.1.0.0.yaml: usr/local/Kobo/librmsdk.so.1.0.0
|
||||||
|
|
||||||
|
## You can put lines in the following section to override the enabled state of patches.
|
||||||
|
## The indentation matters! Each override should be indented by 4 spaces. Add to the
|
||||||
|
## section below. This section can be copy and pasted into newer patch versions to
|
||||||
|
## keep your selections.
|
||||||
|
##
|
||||||
|
## Example of how it should look:
|
||||||
|
## overrides:
|
||||||
|
## src/nickel.yaml:
|
||||||
|
## Custom synopsis/details line spacing: yes
|
||||||
|
## Whatever the yaml is called: no
|
||||||
|
## src/libadobe.so.yaml:
|
||||||
|
## You get the idea: yes
|
||||||
|
overrides:
|
||||||
|
src/nickel.yaml:
|
||||||
|
Show all games: yes
|
||||||
|
Dictionary pop-up - increase available text area: yes
|
||||||
|
src/libadobe.so.yaml:
|
||||||
|
src/libnickel.so.1.0.0.yaml:
|
||||||
|
Always show confirmation dialog before upgrading: yes
|
||||||
|
Allow showing info panel on random screensaver: yes
|
||||||
|
Allow searches on Extra dictionaries: yes
|
||||||
|
Allow rotation on all devices: yes
|
||||||
|
Don't uppercase header/footer text: yes
|
||||||
|
Enable advanced settings for all fonts: yes
|
||||||
|
Shorten dictionary entry not found message: yes
|
||||||
|
src/librmsdk.so.1.0.0.yaml:
|
||||||
|
|
||||||
|
## TRANSLATIONS ##
|
||||||
|
# Optional, use only if lrelease is not in PATH and if translations are needed
|
||||||
|
# lrelease: /path/to/lrelease
|
||||||
|
|
||||||
|
# Uncomment the following to add translations (replace lc with the language code)
|
||||||
|
# translations:
|
||||||
|
# src/whatever.ts: usr/local/Kobo/translations/trans_lc.qm
|
||||||
|
|
||||||
|
## ADDITIONAL FILES ##
|
||||||
|
# Uncomment the following to add additional files to the tgz (like init scripts or hyphen dicts)
|
||||||
|
# The files will be root-owned, and world readable, writable, and executable (0777)
|
||||||
|
# files:
|
||||||
|
# src/whatever.txt: usr/local/Kobo/whatever.txt
|
||||||
|
# src/whateverToPutInMultiplePlaces.txt:
|
||||||
|
# - usr/local/Kobo/location1.txt
|
||||||
|
# - usr/local/Kobo/location2.txt
|
|
@ -0,0 +1,7 @@
|
||||||
|
Kobopatch config management, so I don't have to keep copying my overrides each time.
|
||||||
|
|
||||||
|
copypatches.sh assumes that kobopatch-patches is cloned to a directory the same level as this one. It reads the KOBOVERSION environment variable.
|
||||||
|
|
||||||
|
KOBOVERSION=<version> ./copypatches.sh
|
||||||
|
|
||||||
|
Kobopatch must be placed in bin/
|
|
@ -0,0 +1,8 @@
|
||||||
|
# The following patch(es) were fixed and are updated by geek1011
|
||||||
|
|
||||||
|
Remove PDF map widget shown during panning:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: Removes the PDF map widget shown during panning and zooming.
|
||||||
|
- BaseAddress: {Sym: "N3AdobeReader::showMapWidget()"}
|
||||||
|
- ReplaceBytes: {Offset: 80, FindInstBW: {SymPLTTail: "N3AdobeReader::updatePanningMap()"}, ReplaceInstBW: {SymPLTTail: "N3AdobeReader::hideMapWidget()"}}
|
||||||
|
- ReplaceBytes: {Offset: 190, FindInstBW: {SymPLTTail: "N3AdobeReader::updatePanningMap()"}, ReplaceInstBW: {SymPLTTail: "N3AdobeReader::hideMapWidget()"}}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,134 @@
|
||||||
|
# The following patch(es) are ported from GeoffR's patch zips
|
||||||
|
|
||||||
|
Disable orphans/widows avoidance:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: Enable this patch to avoid blank lines at the bottom of pages in ePub books.
|
||||||
|
# The default values of orphans:2; widows:2; cause extra blank lines to be added
|
||||||
|
# to some pages to avoid leaving isolated lines of a paragraph at the top or
|
||||||
|
# bottom of a page. Enabling this patch effectively forces orphans:1; widows:1;,
|
||||||
|
# overriding the defaults and the book's stylesheet.
|
||||||
|
#
|
||||||
|
# Beware that this patch might(?) intefere with related CSS properties such as
|
||||||
|
# page-break-after:avoid; or page-break-inside:avoid;. A better solution would
|
||||||
|
# be to edit the book's stylesheet to set orphans:1; widows:1;.
|
||||||
|
- ReplaceBytes: {Offset: 0x2972E4, FindH: E6 D0, ReplaceH: E6 E7}
|
||||||
|
|
||||||
|
Default ePub serif font (Amasis):
|
||||||
|
- Enabled: no
|
||||||
|
- Description: This patch changes the default ePub serif font from Georgia to Amasis.
|
||||||
|
# To use a different font, change "Amasis" in each of the replacement strings
|
||||||
|
# to another font name prefix (7 letters max.). For example, change "Amasis"
|
||||||
|
# to "Times" to use a sideloaded Times New Roman font.
|
||||||
|
- FindReplaceString: {Find: "/normal/georgia", Replace: "/normal/Amasis"}
|
||||||
|
- FindReplaceString: {Find: "/bold/georgia", Replace: "/bold/Amasis"}
|
||||||
|
- FindReplaceString: {Find: "/italic/georgia", Replace: "/italic/Amasis"}
|
||||||
|
- FindReplaceString: {Find: "/bolditalic/georgia", Replace: "/bolditalic/Amasis"}
|
||||||
|
|
||||||
|
Default ePub sans-serif font (Gill Sans):
|
||||||
|
- Enabled: no
|
||||||
|
- Description: This patch changes the default ePub sans-serif font from Avenir to Gill Sans.
|
||||||
|
# To use a different font, change "Gill" in the replacement string to another
|
||||||
|
# font name prefix (6 letters max.). For example change "Gill" to "Trebuc" to
|
||||||
|
# use a sideloaded Trebuchet font.
|
||||||
|
- FindReplaceString: {Find: "/normal/Avenir", Replace: "/normal/Gill"}
|
||||||
|
- FindReplaceString: {Find: "/bold/Avenir", Replace: "/bold/Gill"}
|
||||||
|
- FindReplaceString: {Find: "/italic/Avenir", Replace: "/italic/Gill"}
|
||||||
|
- FindReplaceString: {Find: "/bolditalic/Avenir", Replace: "/bolditalic/Gill"}
|
||||||
|
|
||||||
|
Default ePub symbol font (Symbol):
|
||||||
|
- Enabled: no
|
||||||
|
- Description: Sets the ePub default symbol font? I Don't know what this does!
|
||||||
|
- FindReplaceString: {Find: "/SymbolStd.otf", Replace: "/normal/Symbol"}
|
||||||
|
|
||||||
|
Force user line spacing in ePubs (Part 2 of 2):
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
This is part 2 of 2. Also enable part 1 in libnickel.so.1.0.0.patch
|
||||||
|
This patch prevents any line-height style set in the book's stylesheet from
|
||||||
|
being recognised. It will spoil the formatting of some books, but will ensure
|
||||||
|
that the line spacing set with the adjustment slider takes effect. (Unless
|
||||||
|
the publisher has used the font shorthand style; see option below.)
|
||||||
|
- FindBaseAddressString: "\0line-height\0"
|
||||||
|
- ReplaceString: {Offset: 1, Find: "l", Replace: "_"}
|
||||||
|
# Uncomment the following two lines to also prevent the font shorthand style
|
||||||
|
# from being recognised. The font shorthand style is not very common in ePubs,
|
||||||
|
# but where used it can also prevent the line spacing from being adjusted.
|
||||||
|
# Beware that this option will likely have much bigger side-effects on the
|
||||||
|
# book's formatting, because the font shorthand style is used to set the
|
||||||
|
# font-size, font family, and other styles in addition to line-height.
|
||||||
|
# - ReplaceString: {Offset: 1, Find: "f", Replace: "_"}
|
||||||
|
# - FindBaseAddressString: "\0font\0"
|
||||||
|
|
||||||
|
Force user font-family in ePubs (Part 2 of 2):
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
This is part 2 of 2. Also enable part 1 in libnickel.so.1.0.0.patch
|
||||||
|
This patch prevents any font-family style set in the book's stylesheet from
|
||||||
|
being recognised. It might spoil the style of books which use multiple fonts,
|
||||||
|
but will ensure that the font-family set from the device menu takes effect.
|
||||||
|
(Unless the publisher has used the font shorthand style; see option below.)
|
||||||
|
- FindBaseAddressString: "\0font-family\0"
|
||||||
|
- ReplaceString: {Offset: 1, Find: "f", Replace: "_"}
|
||||||
|
# Uncomment the following two lines to also prevent the font shorthand style
|
||||||
|
# from being recognised. The font shorthand style is not very common in ePubs,
|
||||||
|
# but where used it can also prevent the font-family from being adjusted.
|
||||||
|
# Beware that this option will likely have much bigger side-effects on those
|
||||||
|
# book's formatting, because the font shorthand style is used to set the
|
||||||
|
# font-size, line-height, and other styles in addition to font-family.
|
||||||
|
# - ReplaceString: {Offset: 1, Find: "f", Replace: "_"}
|
||||||
|
# - FindBaseAddressString: "\0font\0"
|
||||||
|
|
||||||
|
Ignore ePub book Adobe XPGT stylesheet (page-template.xpgt):
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Not all ePubs have an Adobe XPGT stylesheet, and the ones that do often use
|
||||||
|
it mainly to set the page margins. Unfortunately those margins are added to
|
||||||
|
the page margins set via @page in the CSS stylesheet, and cannot be overidden
|
||||||
|
by the `ePub fixed/ajustable top/bottom margins` patch.
|
||||||
|
This patch should cause any Adobe XPGT stylesheet in the book to be ignored,
|
||||||
|
but for the book's CSS stylesheet still to be used as normal.
|
||||||
|
(You might prefer to remove the margins from the book's XPGT stylesheet
|
||||||
|
before sideloading, instead of using this patch. Calibre's Modify ePub plugin
|
||||||
|
has a useful option for doing this.)
|
||||||
|
- FindBaseAddressString: "\0template\0"
|
||||||
|
- ReplaceString: {Offset: 1, Find: "t", Replace: "_"}
|
||||||
|
|
||||||
|
# The following two patches will not be useful to most people, don't enable them unless you are sure you need them.
|
||||||
|
Ignore ePub book CSS and Adobe XPGT stylesheets:
|
||||||
|
- Enabled: no
|
||||||
|
- FindBaseAddressString: "\0stylesheet\0"
|
||||||
|
- ReplaceString: {Offset: 1, Find: "s", Replace: "_"}
|
||||||
|
- FindBaseAddressString: "\0style-sheet\0"
|
||||||
|
- ReplaceString: {Offset: 1, Find: "s", Replace: "_"}
|
||||||
|
|
||||||
|
Ignore ePub TOC navpoints:
|
||||||
|
- Enabled: no
|
||||||
|
- FindBaseAddressString: "\0navPoint\0"
|
||||||
|
- ReplaceString: {Offset: 1, Find: "n", Replace: "_"}
|
||||||
|
# The following patches are by jackie_w.
|
||||||
|
|
||||||
|
Default ePub monospace font:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Updated for fw 4.19.14123:
|
||||||
|
This patch only affects standard ePub, not kepub.
|
||||||
|
|
||||||
|
The Kobo firmware doesn't include a monospace font, you need to sideload one.
|
||||||
|
If the book's stylesheet specifies font-family:monospace;
|
||||||
|
then the ePub reader will try to use the "Courier" font.
|
||||||
|
|
||||||
|
Unpatched the EPUB reader will now use any installed font with
|
||||||
|
a name beginning "Courier" as the default monospace font.
|
||||||
|
e.g. CourierStd or
|
||||||
|
Courier Prime, available at http://quoteunquoteapps.com/courierprime)
|
||||||
|
|
||||||
|
If your sideloaded monospace fontname does not start with "Courier" then
|
||||||
|
enable this patch and change "Courier" in the replacement string to
|
||||||
|
another font name prefix (7 letters max.). For example, change
|
||||||
|
`normal/Courier` to `normal/Dark`, `bold/Courier` to `bold/Dark`, etc. to
|
||||||
|
use HP's Dark Courier font available at
|
||||||
|
http://h20000.www2.hp.com/hpsc/swd/public/detail?swItemId=lj611en
|
||||||
|
- FindReplaceString: {Find: "/normal/Courier", Replace: "/normal/Dark"}
|
||||||
|
- FindReplaceString: {Find: "/bold/Courier", Replace: "/bold/Dark"}
|
||||||
|
- FindReplaceString: {Find: "/italic/Courier", Replace: "/italic/Dark"}
|
||||||
|
- FindReplaceString: {Find: "/bolditalic/Courier", Replace: "/bolditalic/Dark"}
|
|
@ -0,0 +1,569 @@
|
||||||
|
# The following patch(es) are by geek1011
|
||||||
|
|
||||||
|
Show all games:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Shows all games in beta features. Sone firmware 4.20.14601, this patch is
|
||||||
|
not needed if you have developer mode enabled (search
|
||||||
|
devmodeon/devmodeoff).
|
||||||
|
- FindZlib: "#boggleContainer[devModeOn=false][qApp_deviceIsPika=true]"
|
||||||
|
- ReplaceZlib: {Find: "qproperty-visible: false;", Replace: "qproperty-visible: true;"}
|
||||||
|
|
||||||
|
Remove forgot pin button from lock screen:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Removes the Forgot PIN -> Sign Out button from the lock screen.
|
||||||
|
If this is enabled and you forget your pin, you will need to
|
||||||
|
hard reset your Kobo.
|
||||||
|
- BaseAddress: 0x14405F3
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#lblForgotPin[qApp_deviceIsDragon=true],\n#lblSignOut[qApp_deviceIsDragon=true] {\n font-size: 26px;\n}"
|
||||||
|
Replace: "#lblForgotPin,#lblSignOut{qproperty-visible:false;}"
|
||||||
|
- BaseAddress: 0x14459B0
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#lblForgotPin[qApp_deviceIsDragon=true],\n#lblSignOut[qApp_deviceIsDragon=true] {\n font-size: 26px;\n}"
|
||||||
|
Replace: "#lblForgotPin,#lblSignOut{qproperty-visible:false;}"
|
||||||
|
|
||||||
|
Increase size of kepub chapter progress chart:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: Originally by oren64, rewritten for 4.16.13337 by geek1011.
|
||||||
|
- FindZlib: "#chapterSizes"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Top padding is aready set to 15px, 25px, 33px, vertical aligned to middle.
|
||||||
|
# Progress chart bar sizes:
|
||||||
|
- Find: "#chapterSizes[qApp_deviceIsTrilogy=true] {\n max-height: 56px;\n min-height: 56px;\n}"
|
||||||
|
Replace: "#chapterSizes[qApp_deviceIsTrilogy=true] {\n max-height: 90px;\n min-height: 90px;\n min-width: 385px;\n max-width: 385px;\n}"
|
||||||
|
- Find: "#chapterSizes[qApp_deviceIsPhoenix=true] {\n max-height: 70px;\n min-height: 70px;\n}"
|
||||||
|
Replace: "#chapterSizes[qApp_deviceIsPhoenix=true] {\n max-height: 130px;\n min-height: 130px;\n min-width: 495px;\n max-width: 495px;\n}"
|
||||||
|
- Find: "#chapterSizes[qApp_deviceIsDragon=true] {\n max-height: 100px;\n min-height: 100px;\n}"
|
||||||
|
Replace: "#chapterSizes[qApp_deviceIsDragon=true] {\n max-height: 170px;\n min-height: 170px;\n min-width: 678px;\n max-width: 678px;\n}"
|
||||||
|
- Find: "#chapterSizes[qApp_deviceIsDaylight=true] {\n max-height: 130px;\n min-height: 130px;\n}"
|
||||||
|
Replace: "#chapterSizes[qApp_deviceIsDaylight=true] {\n max-height: 215px;\n min-height: 215px;\n min-width: 865px;\n max-width: 865px;\n}"
|
||||||
|
# The following patch(es) are ported from GeoffR's patch zips
|
||||||
|
|
||||||
|
Reduce top/bottom page spacer:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Reduces the blank space that remains at the top/bottom of the page when
|
||||||
|
the "Chapter progress" / "Book progress" reading settings options are set to Off.
|
||||||
|
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: "MediumVertSpacer"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# 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}"
|
||||||
|
# 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}"
|
||||||
|
# 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}"
|
||||||
|
# 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}"
|
||||||
|
# LibraH2O: 50px --> 25px
|
||||||
|
- Find: "MediumVertSpacer[qApp_deviceIsStorm=true] {\n min-height: 50px;\n max-height: 50px;\n}"
|
||||||
|
Replace: "MediumVertSpacer[qApp_deviceIsStorm=true] {\n min-height: 25px;\n max-height: 25px;\n}"
|
||||||
|
|
||||||
|
Custom synopsis details line spacing:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: Sets the line spacing for Book details synopsis.
|
||||||
|
- FindZlib: "body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- {Find: "line-height: 1.45em;", Replace: "line-height: 1.3em;"}
|
||||||
|
# Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- {Find: "line-height: 1.4em;", Replace: "line-height: 1.3em;"}
|
||||||
|
# AuraHD/H2O/GloHD/ClaraHD (Dragon) and
|
||||||
|
# AuraOne (Daylight) and LibraH2O (Storm)
|
||||||
|
- {Find: "line-height: 1.35em;", Replace: "line-height: 1.3em;"}
|
||||||
|
|
||||||
|
Custom synopsis font size:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: Increase synopsis font size
|
||||||
|
- FindZlib: "body[qApp_deviceIsTrilogy=true] {\n font-size: 19px;"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
- {Find: "font-size: 19px;", Replace: "font-size: 20px;"} # Touch/Mini (Trilogy)
|
||||||
|
- {Find: "font-size: 23px;", Replace: "font-size: 25px;"} # Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- {Find: "font-size: 29px;", Replace: "font-size: 32px;"} # AuraHD/H2O (Dragon)
|
||||||
|
- {Find: "font-size: 32px;", Replace: "font-size: 35px;"} # GloHD/ClaraHD (Alyssum, Nova)
|
||||||
|
- {Find: "font-size: 34px;", Replace: "font-size: 37px;"} # LibraH2O (Storm)
|
||||||
|
- {Find: "font-size: 37px;", Replace: "font-size: 40px;"} # AuraONE/Forma (Daylight)
|
||||||
|
|
||||||
|
Increase home screen cover size:
|
||||||
|
- Enabled: no
|
||||||
|
- PatchGroup: Home screen layout tweaks
|
||||||
|
- Description: Reduces the home screen margins, allowing larger cover images.
|
||||||
|
- FindZlib: "#row1col2"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- {Find: "qproperty-leftMargin: 26;", Replace: "qproperty-leftMargin: 10;"}
|
||||||
|
- {Find: "qproperty-rightMargin: 26;", Replace: "qproperty-rightMargin: 10;"}
|
||||||
|
# Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- {Find: "qproperty-leftMargin: 36;", Replace: "qproperty-leftMargin: 12;"}
|
||||||
|
- {Find: "qproperty-rightMargin: 36;", Replace: "qproperty-rightMargin: 12;"}
|
||||||
|
# AuraHD/H2O/GloHD/ClaraHD (Dragon)
|
||||||
|
- {Find: "qproperty-leftMargin: 50;", Replace: "qproperty-leftMargin: 16;"}
|
||||||
|
- {Find: "qproperty-rightMargin: 50;", Replace: "qproperty-rightMargin: 16;"}
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- {Find: "qproperty-leftMargin: 65;", Replace: "qproperty-leftMargin: 20;"}
|
||||||
|
- {Find: "qproperty-rightMargin: 65;", Replace: "qproperty-rightMargin: 20;"}
|
||||||
|
# LibraH2O (Storm)
|
||||||
|
- {Find: "qproperty-leftMargin: 56;", Replace: "qproperty-leftMargin: 18;"}
|
||||||
|
- {Find: "qproperty-rightMargin: 56;", Replace: "qproperty-rightMargin: 18;"}
|
||||||
|
# The following patch(es) are ported from jackie_w's patches
|
||||||
|
|
||||||
|
Dictionary pop-up - increase available text area:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Increase the area available for dictionary definitions in the dictionary pop-up
|
||||||
|
by reducing some of the excess whitespace used (header, footer, margins).
|
||||||
|
This patch was formerly known as 'Dictionary pop-up frame size increase', but in
|
||||||
|
fw 4.10.11591, Kobo removed access to the code which specifies pop-up frame size.
|
||||||
|
fw 4.12.12111, Kobo removed access to the code which could reduce footer size.
|
||||||
|
fw 4.20.14601 Kobo added new DictionaryViewFooter CSS stream to control footer height again.
|
||||||
|
# Part 1
|
||||||
|
- FindZlib: "#InlineDictionaryView"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Part 1a: #dictionary - reduce top/left margins
|
||||||
|
# Touch/Mini
|
||||||
|
- Find: "#dictionary[qApp_deviceIsTrilogy=true] {\n margin-top: 20px;\n margin-left: 10px;\n}"
|
||||||
|
Replace: "#dictionary[qApp_deviceIsTrilogy=true] {\n margin-top: 5px;\n margin-left: 0px;\n}"
|
||||||
|
# Glo/Aura/Aura2
|
||||||
|
- Find: "#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 20px;\n margin-left: 20px;\n}"
|
||||||
|
Replace: "#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 7px;\n margin-left: 0px;\n}"
|
||||||
|
# AuraHD/H2O/H2O2/GloHD/ClaraHD
|
||||||
|
- Find: "#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 30px;\n margin-left: 30px;\n}"
|
||||||
|
Replace: "#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 10px;\n margin-left: 0px;\n}"
|
||||||
|
# AuraOne/Forma
|
||||||
|
- Find: "#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 42px;\n margin-left: 42px;\n}"
|
||||||
|
Replace: "#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 14px;\n margin-left: 0px;\n}"
|
||||||
|
#
|
||||||
|
# Part 1b: #header - reduce header height
|
||||||
|
# Touch/Mini
|
||||||
|
- Find: "#header[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}"
|
||||||
|
Replace: "#header[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}"
|
||||||
|
# Glo/Aura/Aura2
|
||||||
|
- Find: "#header[qApp_deviceIsPhoenix=true] {\n max-height: 60px;\n min-height: 60px;\n}"
|
||||||
|
Replace: "#header[qApp_deviceIsPhoenix=true] {\n max-height: 50px;\n min-height: 50px;\n}"
|
||||||
|
# AuraHD/H2O/H2O2/GloHD/ClaraHD/LibraH2O
|
||||||
|
- Find: "#header[qApp_deviceIsDragon=true] {\n max-height: 90px;\n min-height: 90px;\n}"
|
||||||
|
Replace: "#header[qApp_deviceIsDragon=true] {\n max-height: 70px;\n min-height: 70px;\n}"
|
||||||
|
# AuraOne/Forma
|
||||||
|
- Find: "#header[qApp_deviceIsDaylight=true] {\n max-height: 120px;\n min-height: 120px;\n}"
|
||||||
|
Replace: "#header[qApp_deviceIsDaylight=true] {\n max-height: 90px;\n min-height: 90px;\n}"
|
||||||
|
#
|
||||||
|
# Part 1c: #mainContainer - reduce left/right margins
|
||||||
|
# Touch/Mini
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsTrilogy=true] {\n qproperty-leftMargin: 12px;\n qproperty-rightMargin: 12px;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsTrilogy=true] {\n qproperty-leftMargin: 6px;\n qproperty-rightMargin: 6px;\n}"
|
||||||
|
# Glo/Aura/Aura2
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 16px;\n qproperty-rightMargin: 16px;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 8px;\n qproperty-rightMargin: 8px;\n}"
|
||||||
|
# AuraHD/H2O/H2O2/GloHD/ClaraHD
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 22px;\n qproperty-rightMargin: 22px;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 11px;\n qproperty-rightMargin: 11px;\n}"
|
||||||
|
# AuraOne/Forma
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 28px;\n qproperty-rightMargin: 28px;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 14px;\n qproperty-rightMargin: 14px;\n}"
|
||||||
|
# LibraH2O
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsStorm=true] {\n qproperty-leftMargin: 25px;\n qproperty-rightMargin: 25px;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsStorm=true] {\n qproperty-leftMargin: 12px;\n qproperty-rightMargin: 12px;\n}"
|
||||||
|
#
|
||||||
|
# Part 2: DictionaryViewFooter - Reduce vertical height of footer
|
||||||
|
# Touch/Mini
|
||||||
|
- FindReplaceString:
|
||||||
|
Find: "DictionaryViewFooter[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}"
|
||||||
|
Replace: "DictionaryViewFooter[qApp_deviceIsTrilogy=true] {\n max-height: 40px;\n min-height: 40px;\n}"
|
||||||
|
MustMatchLength: yes
|
||||||
|
# Glo/Aura/Aura2
|
||||||
|
- FindReplaceString:
|
||||||
|
Find: "DictionaryViewFooter[qApp_deviceIsPhoenix=true] {\n max-height: 60px;\n min-height: 60px;\n}"
|
||||||
|
Replace: "DictionaryViewFooter[qApp_deviceIsPhoenix=true] {\n max-height: 50px;\n min-height: 50px;\n}"
|
||||||
|
MustMatchLength: yes
|
||||||
|
# AuraHD/H2O/H2O2/GloHD/ClaraHD/LibraH2O
|
||||||
|
- FindReplaceString:
|
||||||
|
Find: "DictionaryViewFooter[qApp_deviceIsDragon=true] {\n max-height: 90px;\n min-height: 90px;\n}"
|
||||||
|
Replace: "DictionaryViewFooter[qApp_deviceIsDragon=true] {\n max-height: 60px;\n min-height: 60px;\n}"
|
||||||
|
MustMatchLength: yes
|
||||||
|
# AuraOne/Forma
|
||||||
|
- FindReplaceString:
|
||||||
|
Find: "DictionaryViewFooter[qApp_deviceIsDaylight=true] {\n max-height: 120px;\n min-height: 120px;\n}"
|
||||||
|
Replace: "DictionaryViewFooter[qApp_deviceIsDaylight=true] {\n max-height: 80px;\n min-height: 80px;\n}"
|
||||||
|
MustMatchLength: yes
|
||||||
|
|
||||||
|
Increase Book Details synopsis area:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Book details page
|
||||||
|
- Increase height of bottom half (Synopsis) by
|
||||||
|
decreasing height of top half (Cover, Title, Author, Series)
|
||||||
|
- See https://www.mobileread.com/forums/showpost.php?p=3311354&postcount=134
|
||||||
|
- fw 4.12/4.16 - rewritten by jackie_w to replace oren64's patch
|
||||||
|
- FindZlib: "#bookInfoWidget"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Portrait mode: #bookInfoWidget[isLandscape=false]:
|
||||||
|
- {Find: "height: 300px;", Replace: "height: 200px;"} #Touch/Mini
|
||||||
|
- {Find: "height: 390px;", Replace: "height: 230px;"} #Glo/Aura/Aura2
|
||||||
|
- {Find: "height: 550px;", Replace: "height: 370px;"} #AuraHD/H2O/H2O2/GloHD/ClaraHD
|
||||||
|
- {Find: "height: 642px;", Replace: "height: 425px;"} #LibraH2O (*untested)
|
||||||
|
- {Find: "height: 715px;", Replace: "height: 500px;"} #AuraOne/Forma
|
||||||
|
# Landscape mode: #bookInfoWidget[isLandscape=true]:
|
||||||
|
- {Find: "height: 210px;", Replace: "height: 200px;"} #Touch/Mini
|
||||||
|
- {Find: "height: 265px;", Replace: "height: 230px;"} #Glo/Aura/Aura2
|
||||||
|
- {Find: "height: 420px;", Replace: "height: 370px;"} #AuraHD/H2O/H2O2/GloHD/ClaraHD
|
||||||
|
- {Find: "height: 490px;", Replace: "height: 425px;"} #LibraH2O (*untested)
|
||||||
|
- {Find: "height: 540px;", Replace: "height: 500px;"} #AuraOne/Forma
|
||||||
|
|
||||||
|
Increase library cover size:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Increase the cover thumbnail size in My Books main book list
|
||||||
|
See screenshots - https://www.mobileread.com/forums/showpost.php?p=3241532&postcount=82
|
||||||
|
N.B. Settings for LibraH2O are an initial guess. User testing required.
|
||||||
|
fw 4.17 - rewritten by jackie_w to replace oren64's patch
|
||||||
|
- FindZlib: "#coverPixmapView"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# coverPixmapView increase cover thumbnail width/height:
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- {Find: "width: 60px;", Replace: "width: 85px;"}
|
||||||
|
- {Find: "height: 90px;", Replace: "height: 100px;"}
|
||||||
|
# Glo/Aura/Aura2 (Phoenix)
|
||||||
|
- {Find: "width: 70px;", Replace: "width: 100px;"}
|
||||||
|
- {Find: "height: 110px;", Replace: "height: 130px;"}
|
||||||
|
# AuraHD/H2O/H2O2/GloHD/ClaraHD (Dragon)
|
||||||
|
- {Find: "width: 108px;", Replace: "width: 140px;"}
|
||||||
|
- {Find: "height: 168px;", Replace: "height: 190px;"}
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- {Find: "width: 140px;", Replace: "width: 190px;"}
|
||||||
|
- {Find: "height: 218px;", Replace: "height: 255px;"}
|
||||||
|
# LibraH2O (Storm) *untested*
|
||||||
|
- {Find: "width: 126px;", Replace: "width: 165px;"}
|
||||||
|
- {Find: "height: 196px;", Replace: "height: 225px;"}
|
||||||
|
|
||||||
|
Custom collection/author header title font:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Change font appearance in Collection and Author list header
|
||||||
|
See https://www.mobileread.com/forums/showpost.php?p=3520879&postcount=42
|
||||||
|
fw 4.17.13694 rewritten by jackie_w to replace
|
||||||
|
oren64's patch "Custom font to collection and author titles"
|
||||||
|
# First set:
|
||||||
|
- FindZlib: "#header,\n#backButton,\n#moreLink {"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# #header #headerTitle Change font-family, case, font-size
|
||||||
|
#
|
||||||
|
# Un-comment next line to un-force UPPERCASE
|
||||||
|
#- {Find: "text-transform: uppercase", Replace: "text-transform: none;"}
|
||||||
|
#
|
||||||
|
# Change font-family.
|
||||||
|
# Note: If new font-family name contains spaces wrap in 'single quotes'
|
||||||
|
# e.g. 'Kobo Nickel'
|
||||||
|
# Un-comment & edit next line to change font-family
|
||||||
|
#- {Find: "font-family: Avenir;", Replace: "font-family: 'Kobo Nickel';"}
|
||||||
|
#
|
||||||
|
# Increase font-size.
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- {Find: "font-size: 16px;", Replace: "font-size: 28px;"}
|
||||||
|
# Glo/Aura/Aura2 (Phoenix)
|
||||||
|
- {Find: "font-size: 20px;", Replace: "font-size: 36px;"}
|
||||||
|
# AuraHD/H2O/H2O2/GloHD/ClaraHD (Dragon)
|
||||||
|
- {Find: "font-size: 28px;", Replace: "font-size: 42px;"}
|
||||||
|
# LibraH2O (Storm)
|
||||||
|
- {Find: "font-size: 32px;", Replace: "font-size: 46px;"}
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- {Find: "font-size: 36px;", Replace: "font-size: 50px;"}
|
||||||
|
# Second set (do the same thing as above):
|
||||||
|
- FindZlib: "#header,\n#backButton {"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
- {Find: "font-size: 16px;", Replace: "font-size: 28px;"}
|
||||||
|
- {Find: "font-size: 20px;", Replace: "font-size: 36px;"}
|
||||||
|
- {Find: "font-size: 28px;", Replace: "font-size: 42px;"}
|
||||||
|
- {Find: "font-size: 32px;", Replace: "font-size: 46px;"}
|
||||||
|
- {Find: "font-size: 36px;", Replace: "font-size: 50px;"}
|
||||||
|
|
||||||
|
Reduce new header/footer height:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Reduce new reading header/footer heights when they are enabled.
|
||||||
|
Affects both ePubs and KePubs.
|
||||||
|
This patch may be of interest to those who used to enable the old
|
||||||
|
"Custom menubar - reduce height by 33%"
|
||||||
|
- FindZlib: "ReadingFooter"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
# Adjust the Replace values of min-height/max-height as you wish.
|
||||||
|
# Keep min-height=max-height
|
||||||
|
Replacements:
|
||||||
|
# ReadingFooter Reduce min/max height by 33%
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- Find: "ReadingFooter[qApp_deviceIsTrilogy=true] {\n min-height: 56;\n max-height: 56px;\n}"
|
||||||
|
Replace: "ReadingFooter[qApp_deviceIsTrilogy=true] {\n min-height: 37px;\n max-height: 37px;\n}"
|
||||||
|
# Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- Find: "ReadingFooter[qApp_deviceIsPhoenix=true] {\n min-height: 71px;\n max-height: 71px;\n}"
|
||||||
|
Replace: "ReadingFooter[qApp_deviceIsPhoenix=true] {\n min-height: 47px;\n max-height: 47px;\n}"
|
||||||
|
# AuraHD/H2O/GloHD/ClaraHD (Dragon)
|
||||||
|
- Find: "ReadingFooter[qApp_deviceIsDragon=true] {\n min-height: 101px;\n max-height: 101px;\n}"
|
||||||
|
Replace: "ReadingFooter[qApp_deviceIsDragon=true] {\n min-height: 66px;\n max-height: 66px;\n}"
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- Find: "ReadingFooter[qApp_deviceIsDaylight=true] {\n min-height: 131px;\n max-height: 131px;\n}"
|
||||||
|
Replace: "ReadingFooter[qApp_deviceIsDaylight=true] {\n min-height: 86px;\n max-height: 86px;\n}"
|
||||||
|
# LibraH2O (Storm)
|
||||||
|
- Find: "ReadingFooter[qApp_deviceIsStorm=true] {\n min-height: 118px;\n max-height: 118px;\n}"
|
||||||
|
Replace: "ReadingFooter[qApp_deviceIsStorm=true] {\n min-height: 78px;\n max-height: 78px;\n}"
|
||||||
|
|
||||||
|
Custom new header/footer font:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
This patch allows you to change font-family and/or font-size in the
|
||||||
|
new header/footer. They will automatically be a matched pair. Full details & screenshots at
|
||||||
|
https://www.mobileread.com/forums/showpost.php?p=3897175&postcount=4
|
||||||
|
N.B: This patch is not suitable for Japanese/Chinese locale users
|
||||||
|
|
||||||
|
- FindZlib: "ReadingFooter"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Part 1. Customise font-family (built-in or sideloaded font)
|
||||||
|
# Please see notes at
|
||||||
|
# https://www.mobileread.com/forums/showpost.php?p=3896190&postcount=2
|
||||||
|
# for general considerations whenever you change font-family in the Kobo GUI
|
||||||
|
|
||||||
|
# #caption[newHeader=true] and #caption[newFooter=true]
|
||||||
|
# N.B: If new font-family contains spaces wrap in 'single quotes', e.g. 'Kobo Nickel'
|
||||||
|
|
||||||
|
# Un-comment and edit replacement font-family to change header/footer font
|
||||||
|
#- {Find: "font-family: Avenir;", Replace: "font-family:Avenir;"}
|
||||||
|
|
||||||
|
|
||||||
|
# Part 2.
|
||||||
|
# 2a. Customise font-size for header/footer
|
||||||
|
# 2b. (optional) Fine-tune footer text position to avoid cutting bottom progressbar
|
||||||
|
# (optional) Fine-tune header text position to avoid possible shadow from top bezel
|
||||||
|
# May be useful to those who have also enabled patch 'Reduce new header/footer height'
|
||||||
|
# and have customised it to aggressively reduce header/footer height.
|
||||||
|
|
||||||
|
# 2a. Change font-size for models other than Touch/Mini (header & footer simultaneously)
|
||||||
|
# #caption[newHeader=true] & #caption[newFooter=true]
|
||||||
|
# Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- Find: "[qApp_deviceIsPhoenix=true] {\n font-size: 16px;\n}"
|
||||||
|
Replace: "[qApp_deviceIsPhoenix=true] {\n font-size: 16px;\n}"
|
||||||
|
# AuraHD/H2O (Dragon)
|
||||||
|
- Find: "[qApp_deviceIsDragon=true] {\n font-size: 21px;\n}"
|
||||||
|
Replace: "[qApp_deviceIsDragon=true] {\n font-size: 21px;\n}"
|
||||||
|
# GloHD (Alyssum)
|
||||||
|
- Find: "[qApp_deviceIsAlyssum=true] {\n font-size: 23px;\n}"
|
||||||
|
Replace: "[qApp_deviceIsAlyssum=true] {\n font-size: 23px;\n}"
|
||||||
|
# ClaraHD (Nova)
|
||||||
|
- Find: "[qApp_deviceIsNova=true] {\n font-size: 23px;\n}"
|
||||||
|
Replace: "[qApp_deviceIsNova=true] {\n font-size: 23px;\n}"
|
||||||
|
# LibraH2O (Storm)
|
||||||
|
- Find: "[qApp_deviceIsStorm=true] {\n font-size: 25px;\n}"
|
||||||
|
Replace: "[qApp_deviceIsStorm=true] {\n font-size: 25px;\n}"
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- Find: "[qApp_deviceIsDaylight=true] {\n font-size: 27px;\n}"
|
||||||
|
Replace: "[qApp_deviceIsDaylight=true] {\n font-size: 27px;\n}"
|
||||||
|
|
||||||
|
# N.B: If you do not have a Touch/Mini and your header/footer
|
||||||
|
# positions are exactly as you like them you do not need the
|
||||||
|
# next 3 Find/Replace pairs.
|
||||||
|
# Leave them as-is or comment them out entirely and forget about them.
|
||||||
|
|
||||||
|
# Don't change the following pair. It exists to split the header/footer styles
|
||||||
|
# which were merged in 4.19.14123.
|
||||||
|
- Find: "#caption[newHeader=true][qApp_deviceIsTrilogy=true],\n#caption[newFooter=true][qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}"
|
||||||
|
Replace: "#caption[newHeader=true][qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}\n#caption[newFooter=true][qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}"
|
||||||
|
|
||||||
|
# 2a. Touch/Mini users only: Adjust footer font-size as required.
|
||||||
|
# 2b. All models (optional): Fine-tune footer position by adjusting margin-top value
|
||||||
|
# A negative margin-top (e.g -10px) moves the footer text slightly upwards
|
||||||
|
# further from the bottom bezel/progressbar, closer to the page content
|
||||||
|
- Find: "#caption[newFooter=true][qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}"
|
||||||
|
Replace: "#caption[newFooter=true] {\n font-size: 13px; margin-top: 0px;}"
|
||||||
|
|
||||||
|
# 2a. Touch/Mini users only: Adjust header font-size as required.
|
||||||
|
# 2b. All models (optional): Fine-tune header position by adjusting margin-bottom value.
|
||||||
|
# A negative margin-bottom (e.g -10px) moves the header text slightly downwards
|
||||||
|
# further from the top bezel, closer to the page content
|
||||||
|
- Find: "#caption[newHeader=true][qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}"
|
||||||
|
Replace: "#caption[newHeader=true] {\n font-size: 13px; margin-bottom: 0px;}"
|
||||||
|
|
||||||
|
# Don't change anything below. It exists to free up some space for
|
||||||
|
# your changes above by removing Japanese/Chinese-specific CSS code blocks
|
||||||
|
# so that kobopatch will run without giving some kind of 'too long' error message.
|
||||||
|
- {Find: "#caption[newHeader=true][localeName=\"ja\"],\n#caption[newFooter=true][localeName=\"ja\"] {\n font-family: Sans-SerifJP, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
|
||||||
|
- {Find: "#caption[newHeader=true][localeName=\"zh\"],\n#caption[newFooter=true][localeName=\"zh\"] {\n font-family: Sans-SerifZH-Simplified, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
|
||||||
|
- {Find: "#caption[newHeader=true][localeName=\"zh-HK\"],\n#caption[newFooter=true][localeName=\"zh-HK\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
|
||||||
|
- {Find: "#caption[newHeader=true][localeName=\"zh-TW\"],\n#caption[newFooter=true][localeName=\"zh-TW\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
|
||||||
|
|
||||||
|
Custom page navigation scrubber:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
This patch allows you to customise various parts of the new 'scrubber'. Full details & screenshots at:
|
||||||
|
https://www.mobileread.com/forums/showpost.php?p=3897174&postcount=3
|
||||||
|
N.B: This patch is not suitable for Japanese/Chinese locale users
|
||||||
|
|
||||||
|
- FindZlib: "#scrubberContainer"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# Part 1. Customise all 3 of these buttons
|
||||||
|
# - Left & Right 'Back to page nnn' (#revertLeft, #revertRight)
|
||||||
|
# - Current chapter name (#chapter)
|
||||||
|
|
||||||
|
# 1a. Customise font-size for desired model(s):
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- Find: "[qApp_deviceIsTrilogy=true] {\n font-size: 19px;"
|
||||||
|
Replace: "[qApp_deviceIsTrilogy=true] {\n font-size: 19px;"
|
||||||
|
# Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- Find: "[qApp_deviceIsPhoenix=true] {\n font-size: 23px;"
|
||||||
|
Replace: "[qApp_deviceIsPhoenix=true] {\n font-size: 23px;"
|
||||||
|
# AuraHD/H2O (Dragon)
|
||||||
|
- Find: "[qApp_deviceIsDragon=true] {\n font-size: 29px;"
|
||||||
|
Replace: "[qApp_deviceIsDragon=true] {\n font-size: 29px;"
|
||||||
|
# GloHD (Alyssum)
|
||||||
|
- Find: "[qApp_deviceIsAlyssum=true] {\n font-size: 32px;"
|
||||||
|
Replace: "[qApp_deviceIsAlyssum=true] {\n font-size: 32px;"
|
||||||
|
# ClaraHD (Nova)
|
||||||
|
- Find: "[qApp_deviceIsNova=true] {\n font-size: 32px;"
|
||||||
|
Replace: "[qApp_deviceIsNova=true] {\n font-size: 32px;"
|
||||||
|
# LibraH2O (Storm)
|
||||||
|
- Find: "[qApp_deviceIsStorm=true] {\n font-size: 34px;"
|
||||||
|
Replace: "[qApp_deviceIsStorm=true] {\n font-size: 34px;"
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- Find: "[qApp_deviceIsDaylight=true] {\n font-size: 37px;"
|
||||||
|
Replace: "[qApp_deviceIsDaylight=true] {\n font-size: 37px;"
|
||||||
|
|
||||||
|
# 1b. Customise other font properties of these 3 buttons (all models):
|
||||||
|
# - font-family (built-in or sideloaded font)
|
||||||
|
# NB: If new font-family name contains spaces, wrap in 'single quotes',
|
||||||
|
# e.g. font-family:'Kobo Nickel';
|
||||||
|
# - font-weight (bold or normal)
|
||||||
|
# - font-style (italic or normal)
|
||||||
|
- Find: "{\n font-family: Avenir;\n font-weight: bold;\n font-style: normal;\n}"
|
||||||
|
Replace: "{font-family:Avenir; font-weight:bold; font-style:normal;}"
|
||||||
|
# Users with CSS knowledge can add extra style properties as desired,
|
||||||
|
# e.g. to make them look more like buttons and less like labels,
|
||||||
|
# use this Replace instead. If it can be done with CSS you can do it here.
|
||||||
|
#Replace: "{font-family:Avenir; font-weight:normal; font-style:normal; background-color:#ddd;}"
|
||||||
|
|
||||||
|
|
||||||
|
# Part 2. Customise the central 'Page x of y' label (#page)
|
||||||
|
# Provided for those who want to create a uniform look & feel
|
||||||
|
# 2a. Customise font-size for desired model(s):
|
||||||
|
# Touch/Mini (Trilogy)
|
||||||
|
- Find: "#page[qApp_deviceIsTrilogy=true] {\n font-size: 17px;"
|
||||||
|
Replace: "#page[qApp_deviceIsTrilogy=true] {\n font-size: 17px;"
|
||||||
|
# Glo/Aura/Aura2E (Phoenix)
|
||||||
|
- Find: "#page[qApp_deviceIsPhoenix=true] {\n font-size: 22px;"
|
||||||
|
Replace: "#page[qApp_deviceIsPhoenix=true] {\n font-size: 22px;"
|
||||||
|
# AuraHD/H2O (Dragon)
|
||||||
|
- Find: "#page[qApp_deviceIsDragon=true] {\n font-size: 26px;"
|
||||||
|
Replace: "#page[qApp_deviceIsDragon=true] {\n font-size: 26px;"
|
||||||
|
# GloHD (Alyssum)
|
||||||
|
- Find: "#page[qApp_deviceIsAlyssum=true] {\n font-size: 30px;"
|
||||||
|
Replace: "#page[qApp_deviceIsAlyssum=true] {\n font-size: 30px;"
|
||||||
|
# ClaraHD (Nova)
|
||||||
|
- Find: "#page[qApp_deviceIsNova=true] {\n font-size: 30px;"
|
||||||
|
Replace: "#page[qApp_deviceIsNova=true] {\n font-size: 30px;"
|
||||||
|
# LibraH2O (Storm)
|
||||||
|
- Find: "#page[qApp_deviceIsStorm=true] {\n font-size: 30px;"
|
||||||
|
Replace: "#page[qApp_deviceIsStorm=true] {\n font-size: 30px;"
|
||||||
|
# AuraOne/Forma (Daylight)
|
||||||
|
- Find: "#page[qApp_deviceIsDaylight=true] {\n font-size: 34px;"
|
||||||
|
Replace: "#page[qApp_deviceIsDaylight=true] {\n font-size: 34px;"
|
||||||
|
|
||||||
|
# 2b. Customise other font properties of 'Page x of y' label (all models)
|
||||||
|
# e.g. text-transform (uppercase or none)
|
||||||
|
# font-family, font-weight, font-style, etc.
|
||||||
|
# Un-comment next 2 lines and change Replace CSS as desired
|
||||||
|
#- Find: "#page {\n padding-left: 0px;\n}"
|
||||||
|
# Replace: "#page {padding-left: 0px; font-family:Georgia; text-transform:none;}"
|
||||||
|
|
||||||
|
Customise Header back button:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Customise in-book button (top left corner) for 'Back to Home', 'Back to My Books' etc
|
||||||
|
- FindZlib: "#ReadingMenuView"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
# 'Back to Home' button un-bolded
|
||||||
|
- Find: "#backLabel #label {\n font-family: Avenir;\n font-style: normal;\n font-weight: bold;"
|
||||||
|
Replace: "#backLabel #label {\n font-family:Avenir;\n font-style:normal;\n font-weight:normal;"
|
||||||
|
# The following patch(es) are ported from oren64's patches
|
||||||
|
|
||||||
|
Increase headlines font:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Increase the font-size of the tab header labels in My Books, Activity, Bookstore...
|
||||||
|
See https://www.mobileread.com/forums/showpost.php?p=3931942&postcount=183
|
||||||
|
- FindZlib: "#tabContainer > N3TabItem"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true] {\n font-size: 16px;\n}"
|
||||||
|
Replace: "#tabContainer > N3TabItem[qApp_deviceIsTrilogy=true] {\n font-size: 28px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 20px;\n}"
|
||||||
|
Replace: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 36px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#tabContainer > N3TabItem[qApp_deviceIsDragon=true] {\n font-size: 28px;\n}"
|
||||||
|
Replace: "#tabContainer > N3TabItem[qApp_deviceIsDragon=true] {\n font-size: 42px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#tabContainer > N3TabItem[qApp_deviceIsStorm=true] {\n font-size: 32px;\n}"
|
||||||
|
Replace: "#tabContainer > N3TabItem[qApp_deviceIsStorm=true] {\n font-size: 46px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#tabContainer > N3TabItem[qApp_deviceIsDaylight=true] {\n font-size: 36px;\n}"
|
||||||
|
Replace: "#tabContainer > N3TabItem[qApp_deviceIsDaylight=true] {\n font-size: 50px;\n}"
|
||||||
|
|
||||||
|
New home screen subtitle custom font:
|
||||||
|
- Enabled: no
|
||||||
|
- Description: |
|
||||||
|
Increase subtitle font size, font color black. Works best when used
|
||||||
|
with with patch `New home screen increasing cover size`
|
||||||
|
- FindZlib: "MetaDataLabel {\n color: #666666;\n qproperty-indent: 0;\n}"
|
||||||
|
- ReplaceZlib: {Find: "MetaDataLabel {\n color: #666666;\n qproperty-indent: 0;\n}", Replace: "MetaDataLabel {\n color: #000000;\n qproperty-indent: 0;\n}"}
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "MetaDataLabel[qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}"
|
||||||
|
Replace: "MetaDataLabel[qApp_deviceIsTrilogy=true] {\n font-size: 14px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "MetaDataLabel[qApp_deviceIsPhoenix=true] {\n font-size: 17px;\n}"
|
||||||
|
Replace: "MetaDataLabel[qApp_deviceIsPhoenix=true] {\n font-size: 18px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "MetaDataLabel[qApp_deviceIsDragon=true] {\n font-size: 24px;\n}"
|
||||||
|
Replace: "MetaDataLabel[qApp_deviceIsDragon=true] {\n font-size: 26px;\n}"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "MetaDataLabel[qApp_deviceIsDaylight=true] {\n font-size: 31px;\n}"
|
||||||
|
Replace: "MetaDataLabel[qApp_deviceIsDaylight=true] {\n font-size: 34px;\n}"
|
||||||
|
|
||||||
|
Remove footer (row3) and increase cover size on new home screen:
|
||||||
|
- Enabled: no
|
||||||
|
- PatchGroup: Home screen layout tweaks
|
||||||
|
- FindZlib: "#mainContainer[qApp_deviceIsTrilogy=true] {\n qproperty-leftMargin: 26;"
|
||||||
|
- ReplaceZlibGroup:
|
||||||
|
Replacements:
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsTrilogy=true] {\n qproperty-leftMargin: 26;\n qproperty-rightMargin: 26;\n qproperty-topMargin: 96;\n qproperty-bottomMargin: 26;\n qproperty-spacing: 10;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsTrilogy=true] {\n qproperty-leftMargin: 10;\n qproperty-rightMargin: 10;\n qproperty-topMargin: 96;\n qproperty-bottomMargin: 26;\n qproperty-spacing: 10;\n}"
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 36;\n qproperty-rightMargin: 36;\n qproperty-topMargin: 126;\n qproperty-bottomMargin: 36;\n qproperty-spacing: 14;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 12;\n qproperty-rightMargin: 12;\n qproperty-topMargin: 126;\n qproperty-bottomMargin: 36;\n qproperty-spacing: 14;\n}"
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 50;\n qproperty-rightMargin: 50;\n qproperty-topMargin: 170;\n qproperty-bottomMargin: 50;\n qproperty-spacing: 20;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 16;\n qproperty-rightMargin: 16;\n qproperty-topMargin: 170;\n qproperty-bottomMargin: 50;\n qproperty-spacing: 20;\n}"
|
||||||
|
- Find: "#mainContainer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 65;\n qproperty-rightMargin: 65;\n qproperty-topMargin: 220;\n qproperty-bottomMargin: 65;\n qproperty-spacing: 26;\n}"
|
||||||
|
Replace: "#mainContainer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-topMargin: 220;\n qproperty-bottomMargin: 65;\n qproperty-spacing: 26;\n}"
|
||||||
|
# Note: this shouldn't conflict with the below patch, as the original row1col2 rule is kept intact, and there's no harm in duplicate rules.
|
||||||
|
- Find: "#row1col2 {\n qproperty-visible: false;\n}"
|
||||||
|
Replace: "#row1col2 {\n qproperty-visible: false;\n}\n#row3 {\n qproperty-visible: false;\n}"
|
||||||
|
|
||||||
|
Remove footer (row3) on new home screen:
|
||||||
|
- Enabled: no
|
||||||
|
- PatchGroup: Home screen visibility tweaks
|
||||||
|
- FindZlib: "#row1col2"
|
||||||
|
- ReplaceZlib:
|
||||||
|
Find: "#row1col2 {\n qproperty-visible: false;\n}"
|
||||||
|
Replace: "#row1col2 {\n qproperty-visible: false;\n}\n#row3 {\n qproperty-visible: false;\n}"
|
Loading…
Reference in New Issue