//---- CONTENT
// -------------------------------------------------- Footer and Header
// -------------------------------------------------- Library
// -------------------------------------------------- Dictionary
// -------------------------------------------------- Annotations
// -------------------------------------------------- Search
// -------------------------------------------------- TOC

sourcefile=libnickel.so.1.0.0_plus15
targetfile=..\3.0.1_plus_target\usr\local\Kobo\libnickel.so.1.0.0

// -------------------------------------------------- Footer and Header

<patch>
name=ReadingFooter
enabled=true
action=replace_xor_CC
position=13EA170
oldpart=ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n
oldpart=ReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\n
oldpart=ReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n
oldpart=* {\n\tfont-size: 16px;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n
oldpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}
newpart=ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n
newpart=ReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\n
newpart=ReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n
newpart=* {\n\tfont-size: 28px;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 32px;\n}\n\n
newpart=[deviceCodeName="dragon"] {\n\tfont-size: 38px;\n}\n\n
newpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
</patch>

<patch>
name=Header
enabled=true
action=replace_xor_3B
position=1419C38
oldpart=* {\nfont-size: 16px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\nqproperty-leading: 0;\n}
newpart=* {\nfont-size: 28px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\nqproperty-leading: 0;\n}
combineparts
</patch>

// -------------------------------------------------- Library

<patch>
name=Library Books, author
enabled=true
action=replace_xor_65
position=13C1A78
oldpart=* {\nfont-size: 16px;\nfont-family: Avenir;\nmargin-top: 7px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
oldpart=[deviceCodeName="pixie"]{\nfont-size: 17px;\nmargin-top: 5px;\n}
newpart=* {\nfont-size: 24px;\nfont-family: Avenir;\nmargin-top: 1px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 30px;\n}\n\n
newpart=[deviceCodeName="pixie"]{\nfont-size: 25px;\nmargin-top: 3px;\n}
combineparts
</patch>

<patch>
name=Library Books, Title
enabled=true
action=replace_xor_FA
position=13C1968
oldpart=* {\n\tfont-size: 20px;\n\tfont-family: Georgia;\n}\n\n
oldpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tqproperty-forceLeading: 0;\n}\n\n
oldpart=[deviceCodeName="pixie"] {\n\tfont-size: 21px;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 26px;\n}
newpart=* {\n\tfont-size: 24px;\n\tfont-family: Georgia;\n}\n\n
newpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tqproperty-forceLeading: 0;\n}\n\n
newpart=[deviceCodeName="pixie"] {\n\tfont-size: 25px;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 30px;\n}
combineparts
</patch>


<patch>
name=Library Books, Series
note= I did not check whether it really works
enabled=true
action=replace_xor_3B
position=13C1850
oldpart=* {\n\tcolor: #666666;\n\tfont-size: 16px; \n\tfont-family: Avenir;\n\tqproperty-maxNumLines: 1;\n}\n\n
oldpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\n\tfont-size: 18px;\n}\n\n
oldpart=[deviceCodeName="pixie"]{\n\tfont-size: 17px;\n}
newpart=* {\n\tcolor: #666666;\n\tfont-size: 20px; \n\tfont-family: Avenir;\n\tqproperty-maxNumLines: 1;\n}\n\n
newpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\n\tfont-size: 18px;\n}\n\n
newpart=[deviceCodeName="pixie"]{\n\tfont-size: 17px;\n}
combineparts
</patch>

<patch>
name=Library Book, READ/FILETYPE/SIZE
note= I change only color for better readability
enabled=true
action=replace_xor_38
position=13C1758
oldpart=* {\ncolor: #666666;\nfont-size: 16px; \nfont-family: Avenir;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
oldpart=[deviceCodeName="pixie"]{\nfont-size: 17px;\n}
newpart=* {\ncolor: #000000;\nfont-size: 16px; \nfont-family: Avenir;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
newpart=[deviceCodeName="pixie"]{\nfont-size: 17px;\n}
combineparts
</patch>




// -------------------------------------------------- Dictionary

<patch>
name=Dictionary (Georgia)
note=if you use this definition, disable the two other Dictionary definitions
enabled=false
action=replace_string
position=113D6F4
oldpart=* { font: %1px %2; line-height: %4em; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %3em }\n
oldpart=ol p { font-size: %1px; font-weight:normal; }\n
oldpart=b { font-weight: bold; }\n
oldpart=i { font-style: italic; }\n
oldpart=b * { font-weight: bold; }\n
oldpart=i * { font-style: italic; }\n
oldpart=::selection { background: #FFFFFF !important; }
newpart=* { font-family: Georgia ;font-size: 24px; line-height: 28px; } \n
newpart=ol {margin-left: 8px} \n
newpart=ol p { font-size: 24px; font-weight:normal;      }
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic;  }\n\n\n\n\n\n\n\n\n
newpart=::selection { background: #FFFFFF !important; }
combineparts
</patch>

<patch>
name=Dictionary (Gothic)
note=if you use this definition, disable the two other Dictionary definitions
enabled=true
action=replace_string
position=113D6F4
oldpart=* { font: %1px %2; line-height: %4em; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %3em }\n
oldpart=ol p { font-size: %1px; font-weight:normal; }\n
oldpart=b { font-weight: bold; }\n
oldpart=i { font-style: italic; }\n
oldpart=b * { font-weight: bold; }\n
oldpart=i * { font-style: italic; }\n
oldpart=::selection { background: #FFFFFF !important; }
newpart=* { font-family: A-OTF Gothic MB101 Pr6N;font-size: 24px; line-height: 28px; }\n
newpart=ol {margin-left: 8px}\n
newpart=ol p { font-size: 24px; font-weight:normal; }\n
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic; } 
newpart=::selection { background: #FFFFFF !important; }
combineparts
</patch>

<patch>
name=Dictionary (Ryumin)
note=if you use this definition, disable the two other Dictionary definitions
enabled=false
action=replace_string
position=113D6F4
oldpart=* { font: %1px %2; line-height: %4em; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %3em }\n
oldpart=ol p { font-size: %1px; font-weight:normal; }\n
oldpart=b { font-weight: bold; }\n
oldpart=i { font-style: italic; }\n
oldpart=b * { font-weight: bold; }\n
oldpart=i * { font-style: italic; }\n
oldpart=::selection { background: #FFFFFF !important; }
newpart=* { font-family: A-OTF Ryumin Pr6N ;font-size: 24px; line-height: 28px; } \n
newpart=ol {margin-left: 8px} \n
newpart=ol p { font-size: 24px; font-weight:normal;      }
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic; }
newpart=::selection { background: #FFFFFF !important; }
combineparts
</patch>

// -------------------------------------------------- Annotations 
<patch>
name=Annotations (list), highlighted text
enabled=true
action=replace_xor_5C
position=13975A0
oldpart=* {\n\tfont-size: 20px;\n\tfont-family: Avenir;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 24px;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\n\tfont-size: 29px;\n\tfont-family: Georgia;\n}
newpart=* {\n\tfont-size: 30px;\n\tfont-family: Avenir;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 34px;\n}\n\n
newpart=[deviceCodeName="dragon"] {\n\tfont-size: 39px;\n\tfont-family: Georgia;\n}
combineparts
</patch>

<patch>
name=Annotations (list), text
enabled=true
action=replace_xor_FA
position=13A0918
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\npadding-left: 10px;\npadding-top: 10px;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\nfont-size: 25px;\npadding-left: 12px;\npadding-top: 12px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\npadding-left: 10px;\npadding-top: 10px;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\nfont-size: 35px;\npadding-left: 12px;\npadding-top: 12px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
</patch>


<patch>
name=Annotation Details (Latin script)
note=if you use this patch, disable "Annotation Details (JP)" 
enabled=true
action=replace_string
position=113674C
oldpart=<html><body style="font-size: 20px; font-family: sans-serif; ">
newpart=<html><body style="font-size: 28px; font-family: sans-serif; ">
oldpart=<div style="padding-left: 10px; padding-top: 5px; padding-bottom: 3px; background-color: #CCCCCC;">%1</div>
newpart=<div style="padding-left: 10px; padding-top: 5px; padding-bottom: 3px; background-color: #CCCCCC;">%1</div>
oldpart=<div style="color: #404040; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;">%2</div>
newpart=<div style="color: #404040; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;">%2</div>
oldpart=<div style="padding-bottom: 10px; border-top: 2px dotted #AEAEAD;" />
newpart=<div style="padding-bottom: 10px; border-top: 2px dotted #AEAEAD;" />
oldpart=<div style="padding-top: 10px;">%3</div></body></html>
newpart=<div style="padding-top: 10px;">%3</div></body></html>
combineparts
</patch>

<patch>
name=Annotation Details (JP)
note=for usage with Japanese
note=if you use this patch, disable "Annotation Details (Latin script)" 
enabled=false
action=replace_string
position=113674C
oldpart=<html><body style="font-size: 20px; font-family: sans-serif; ">
newpart=<html><body style="font: 28px 'A-OTF Gothic MB101 Pr6N';     ">
oldpart=<div style="padding-left: 10px; padding-top: 5px; padding-bottom: 3px; background-color: #CCCCCC;">%1</div>
newpart=<div style="padding-left: 10px; padding-top: 5px; padding-bottom: 3px; background-color: #CCCCCC;">%1</div>
oldpart=<div style="color: #404040; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;">%2</div>
newpart=<div style="color: #404040; padding-left: 10px; padding-top: 10px; padding-bottom: 10px;">%2</div>
oldpart=<div style="padding-bottom: 10px; border-top: 2px dotted #AEAEAD;" />
newpart=<div style="padding-bottom: 10px; border-top: 2px dotted #AEAEAD;" />
oldpart=<div style="padding-top: 10px;">%3</div></body></html>
newpart=<div style="padding-top: 10px;">%3</div></body></html>
combineparts
</patch>


<patch>
name=Edit Note, highlighted text
enabled=true
action=replace_xor_4D
position=13A0E60
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\nbackground-color: #CCCCCC;\npadding-right: 20px;\npadding-top: 5px;\npadding-bottom: 5px;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\nbackground-color: white;\nfont-size: 26px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 25px;\npadding-bottom: 25px;\n}\n\n
oldpart=[deviceCodeName="phoenix"] {\nbackground-color: white;\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 0px;\npadding-bottom: 0px;\n}\n\n
oldpart=[deviceCodeName="kraken"] {\nfont-size: 25px;\npadding-right: 25px;\npadding-top: 6px;\npadding-bottom: 6px;\n}\n
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\nbackground-color: #CCCCCC;\npadding-right: 20px;\npadding-top: 5px;\npadding-bottom: 5px;\n}\n\n
newpart=[deviceCodeName="dragon"] {\nbackground-color: white;\nfont-size: 26px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 25px;\npadding-bottom: 25px;\n}\n\n
newpart=[deviceCodeName="phoenix"] {\nbackground-color: white;\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 0px;\npadding-bottom: 0px;\n}\n\n
newpart=[deviceCodeName="kraken"] {\nfont-size: 25px;\npadding-right: 25px;\npadding-top: 6px;\npadding-bottom: 6px;\n}\n
combineparts
</patch>


<patch>
name=Edit Note, editor field
enabled=true
action=replace_xor_4D
position=13E2ED8
oldpart=* {\n\tfont-size:20px;\n\tfont-family: Avenir;\n\tborder: 0px;\t\n\tcolor: #000000;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n\tfont-family: Georgia;\n}\n\n
oldpart=[deviceCodeName="kraken"]{\n\tfont-size: 25px;\n}\n\n
oldpart=[deviceCodeName="phoenix"]{\n\tfont-size: 23px;\n\tfont-family: Georgia;\n}\n
newpart=* {\n\tfont-size:30px;\n\tfont-family: Avenir;\n\tborder: 0px;\t\n\tcolor: #000000;\n}\n\n
newpart=[deviceCodeName="dragon"] {\n\tfont-size: 36px;\n\tfont-family: Georgia;\n}\n\n
newpart=[deviceCodeName="kraken"]{\n\tfont-size: 35px;\n}\n\n
newpart=[deviceCodeName="phoenix"]{\n\tfont-size: 33px;\n\tfont-family: Georgia;\n}\n
combineparts
</patch>

// -------------------------------------------------- Search

<patch>
name=Search, history/auto-complete list (in books, in dictionary, in library ...)
enabled=true
action=replace_xor_4D
position=13BB4A8
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\npadding-left:25px;\n}\n\n
oldpart=[deviceCodeName="phoenix"] {\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 31px;\n}\n
oldpart=[deviceCodeName="dragon"] {\nfont-size: 29px;\nfont-family: Georgia;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\npadding-left:25px;\n}\n\n
newpart=[deviceCodeName="phoenix"] {\nfont-size: 33px;\nfont-family: Georgia;\npadding-left: 31px;\n}\n
newpart=[deviceCodeName="dragon"] {\nfont-size: 39px;\nfont-family: Georgia;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
</patch>

// -------------------------------------------------- TOC

<patch>
name=TOC
enabled=true
action=replace_xor_65
position=139F988
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\nmin-width: 400px;\n}\n\n
oldpart=[dragonStyle="true"] {\nfont-family: Georgia;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\nfont-size: 29px;\nmin-width: 785px;\n}\n\n
oldpart=[deviceCodeName="phoenix"] {\nfont-size: 25px;\nmin-width: 500px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[enableText="false"] {\ncolor: gray;\n}
newpart=* {\nfont-size: 28px;\nfont-family: Avenir;\nmin-width: 400px;\n}\n\n
newpart=[dragonStyle="true"] {\nfont-family: Georgia;\n}\n\n
newpart=[deviceCodeName="dragon"] {\nfont-size: 37px;\nmin-width: 785px;\n}\n\n
newpart=[deviceCodeName="phoenix"] {\nfont-size: 33px;\nmin-width: 500px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[enableText="false"] {\ncolor: gray;\n}
combineparts
</patch>
