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

sourcefile=libnickel.so.1.0.0
targetfile=..\3.2.0_target\usr\local\Kobo\libnickel.so.1.0.0

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

<patch>
name=ReadingFooter
enabled=true
action=replace_xor_4B
position=147A568
oldpart=ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n
oldpart=ReadingFooter[qApp_deviceCodeName="kraken"], \nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\n
oldpart=ReadingFooter[qApp_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=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n
oldpart=[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n
oldpart=[qApp_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[qApp_deviceCodeName="kraken"], \nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\n
newpart=ReadingFooter[qApp_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=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 32px;\n}\n\n
newpart=[qApp_deviceCodeName="dragon"] {\n\tfont-size: 38px;\n}\n\n
newpart=[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
</patch>

<patch>
name=Header
enabled=true
action=replace_xor_1D
position=14AE3A0
oldpart=* {\nfont-size: 16px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n
oldpart=[qApp_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=[qApp_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_A9
position=1450758
oldpart=* {\nfont-size: 16px;\nfont-family: Avenir;\nmargin-top: 7px;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
oldpart=[qApp_deviceCodeName="pixie"]{\nfont-size: 17px;\nmargin-top: 5px;\n}
newpart=* {\nfont-size: 24px;\nfont-family: Avenir;\nmargin-top: 1px;\n}\n\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"]{\nfont-size: 30px;\n}\n\n
newpart=[qApp_deviceCodeName="pixie"]{\nfont-size: 25px;\nmargin-top: 1px;\n}
combineparts
</patch>

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


<patch>
name=Library Books, Series
note= there seems to be something wrong
enabled=true
action=replace_xor_5C
position=1450508
oldpart=* {\n\tcolor: #666666;\n\tfont-size: 16px; \n\tfont-family: Avenir;\n\tqproperty-maxNumLines: 1;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"]{\n\tfont-size: 18px;\n}\n\n
oldpart=[qApp_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=[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"]{\n\tfont-size: 22px;\n}\n\n
newpart=[qApp_deviceCodeName="pixie"]{\n\tfont-size: 21px;\n}
combineparts
</patch>

<patch>
name=Library Book, READ/FILETYPE/SIZE
note= I change only color for better readability
enabled=true
action=replace_xor_BB
position=14503F8
oldpart=* {\ncolor: #666666;\nfont-size: 16px; \nfont-family: Avenir;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
oldpart=[qApp_deviceCodeName="pixie"]{\nfont-size: 17px;\n}
newpart=* {\ncolor: #000000;\nfont-size: 16px; \nfont-family: Avenir;\n}\n\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
newpart=[qApp_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=11BC8D4
oldpart=* { font: %1px %2; line-height: %5em; }\n
oldpart=div.descriptionFont { font-family: %3; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\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: 36px; line-height: 42px; } \n
newpart=ol {margin-left: 8px} \n
newpart=ol p { font-size: 36px; 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=11BC8D4
oldpart=* { font: %1px %2; line-height: %5em; }\n
oldpart=div.descriptionFont { font-family: %3; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\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: 34px; line-height: 38px; }\n
newpart=ol {margin-left: 8px}\n
newpart=ol p { font-size: 34px; 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=11BC8D4
oldpart=* { font: %1px %2; line-height: %5em; }\n
oldpart=div.descriptionFont { font-family: %3; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\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), text
enabled=true
action=replace_xor_29
position=1430150
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\npadding-left: 10px;\npadding-top: 10px;\n}\n\n
oldpart=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"] {\nfont-size: 25px;\npadding-left: 12px;\npadding-top: 12px;\n}\n\n
oldpart=[qApp_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=[qApp_deviceCodeName="kraken"], \n[qApp_deviceCodeName="phoenix"] {\nfont-size: 35px;\npadding-left: 12px;\npadding-top: 12px;\n}\n\n
newpart=[qApp_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=false
action=replace_string
position=11B52AC
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=true
action=replace_string
position=11B52AC
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_B1
position=14306C8
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\nbackground-color: #CCCCCC;\npadding-right: 20px;\npadding-top: 5px;\npadding-bottom: 5px;\n}\n\n
oldpart=[qApp_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=[qApp_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=[qApp_deviceCodeName="kraken"] {\nfont-size: 25px;\npadding-right: 25px;\npadding-top: 6px;\npadding-bottom: 6px;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family:A-OTF Gothic MB101 Pr6N;\n}
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\nbackground-color: #CCCCCC;\npadding-right: 20px;\npadding-top: 5px;\npadding-bottom: 5px;\n}\n\n
newpart=[qApp_deviceCodeName="dragon"] {\nbackground-color: white;\nfont-size: 36px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 25px;\npadding-bottom: 25px;\n}\n\n
newpart=[qApp_deviceCodeName="phoenix"] {\nbackground-color: white;\nfont-size: 33px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 0px;\npadding-bottom: 0px;\n}\n\n
newpart=[qApp_deviceCodeName="kraken"] {\nfont-size: 35px;\npadding-right: 25px;\npadding-top: 6px;\npadding-bottom: 6px;\n}\n\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family:A-OTF Gothic MB101 Pr6N;\n}
combineparts
</patch>


<patch>
name=Edit Note, editor field
enabled=true
action=replace_xor_3C
position=1472DF0
oldpart=* {\n\tfont-size:20px;\n\tfont-family: Avenir;\n\tborder: 0px;\t\n\tcolor: #000000;\n}\n\n
oldpart=[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n\tfont-family: Georgia;\n}\n\n
oldpart=[qApp_deviceCodeName="kraken"]{\n\tfont-size: 25px;\n}\n\n
oldpart=[qApp_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=[qApp_deviceCodeName="dragon"] {\n\tfont-size: 36px;\n\tfont-family: Georgia;\n}\n\n
newpart=[qApp_deviceCodeName="kraken"]{\n\tfont-size: 35px;\n}\n\n
newpart=[qApp_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_3C
position=14498B0
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\npadding-left:25px;\n}\n\n
oldpart=[qApp_deviceCodeName="phoenix"] {\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 31px;\n}\n
oldpart=[qApp_deviceCodeName="dragon"] {\nfont-size: 29px;\nfont-family: Georgia;\n}\n\n
oldpart=[qApp_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=[qApp_deviceCodeName="phoenix"] {\nfont-size: 33px;\nfont-family: Georgia;\npadding-left: 31px;\n}\n
newpart=[qApp_deviceCodeName="dragon"] {\nfont-size: 39px;\nfont-family: Georgia;\n}\n\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
</patch>

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

<patch>
name=TOC
enabled=true
action=replace_xor_A9
position=142F118
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\nmin-width: 400px;\n}\n\n
oldpart=[qApp_dragonStyle="true"] {\nfont-family: Georgia;\n}\n\n
oldpart=[qApp_deviceCodeName="dragon"] {\nfont-size: 29px;\nmin-width: 785px;\n}\n\n
oldpart=[qApp_deviceCodeName="phoenix"] {\nfont-size: 25px;\nmin-width: 500px;\n}\n\n
oldpart=[qApp_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=[qApp_dragonStyle="true"] {\nfont-family: Georgia;\n}\n\n
newpart=[qApp_deviceCodeName="dragon"] {\nfont-size: 37px;\nmin-width: 785px;\n}\n\n
newpart=[qApp_deviceCodeName="phoenix"] {\nfont-size: 33px;\nmin-width: 500px;\n}\n\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[enableText="false"] {\ncolor: gray;\n}
combineparts
</patch>

