View Single Post
Old 10-26-2014, 09:29 AM   #45
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by GeoffR View Post
For simple changes you only need to modify some of the following lines:
Spoiler:
Code:
# Example for AuraHD/H2O:
replace_string = DBDC0D, `min-height: 70px;`, `min-height: 50px;`
replace_string = DBDC20, `max-height: 70px;`, `max-height: 50px;`
replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 170;`
replace_string = DBDC58, `font-size: 16px;`, `font-size: 26px;`
replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom: 8px;`
replace_string = DBDC80, `margin-top: 0px;`, `margin-top: 0px;`
#
# Uncomment one of the following if you wish the footer to use a fixed font.
# (And enable one of the Custom header style patches below with the same font.)
#
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family:  Amasis;`
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family:  Avenir;`
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family: Georgia;`
There are two things you can do to further reduce the space between the text and footer:

1. Add a negative margin-top to the footer:
Code:
replace_string = DBDC80, `margin-top: 0px;`, `margin-top:-5px;`
2. Reduce the height of the footer, and add some bottom padding to keep the footer the same distance from the bezel:
Code:
replace_string = DBDC0D, `min-height: 70px;`, `min-height: 40px;`
replace_string = DBDC20, `max-height: 70px;`, `max-height: 40px;`
replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom:13px;`
There is a complication that some fonts (such as Gothic) will be cut off at the bottom if you reduce the height too much. To avoid this you can also change the font-family used for the footer to one that doesn't suffer the cut-off problem, such as Avenir for example:
Code:
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family:  Amasis;`
replace_string = DBDC92, `/*font-family:none;*/`, `font-family:  Avenir;`
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family: Georgia;`
Played a bit with these settings.
I use this settings now for Glo and Aura HD:
Spoiler:


<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
replace_string = DBDBFC, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 170;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\n* {\n\tfont-size: 16px;\n\tpadding-bottom: 0px;\n\tmargin-top: 0px;\n\t/*font-family:none;*/\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
#
# Uncomment the replace_string lines of one of the examples below, comment out
# the rest. If you choose to make further changes to the examples, BE CAREFUL
# NOT TO ALTER THE LENGTH OF THE REPLACEMENT STRINGS! (Add or remove spaces if
# necessary to keep the total length the same.)
#
# Example for Nick's Glo:
replace_string = DBDC0D, `min-height: 70px;`, `min-height: 40px;`
replace_string = DBDC20, `max-height: 70px;`, `max-height: 40px;`
replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 105;`
replace_string = DBDC58, `font-size: 16px;`, `font-size: 28px;`
replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom: 7px;`
replace_string = DBDC80, `margin-top: 0px;`, `margin-top:10px;`
#
# Example for Nick's Aura HD:
#replace_string = DBDC0D, `min-height: 70px;`, `min-height: 50px;`
#replace_string = DBDC20, `max-height: 70px;`, `max-height: 50px;`
#replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 170;`
#replace_string = DBDC58, `font-size: 16px;`, `font-size: 35px;`
#replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom: 8px;`
#replace_string = DBDC80, `margin-top: 0px;`, `margin-top:13px;`
#
# Uncomment one of the following if you wish the footer to use a fixed font.
# (And enable one of the Custom header style patches below using the same font.)
#
replace_string = DBDC92, `/*font-family:none;*/`, `font-family: Amasis;`
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family: Avenir;`
#replace_string = DBDC92, `/*font-family:none;*/`, `font-family: Georgia;`
#
</Patch>

Gives me this result: ( still a bit to much wasted space on the Aura HD bottom,but I can't get that better.)
Click image for larger version

Name:	glo.png
Views:	938
Size:	130.2 KB
ID:	130187 Glo. and Click image for larger version

Name:	Aura.png
Views:	961
Size:	162.8 KB
ID:	130186 Aura HD.
Thanks GeoffR for pointing out where the values stand for, the more I know what the values do, the more I can find my way in it.

Last edited by Nick_1964; 10-26-2014 at 10:08 AM.
Nick_1964 is offline   Reply With Quote