Skip to content

Commit

Permalink
Updated patch: Dictionary pop-up frame size increase
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Jul 11, 2018
1 parent fd41db5 commit 794d3cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/versions/4.9.11311/libnickel.so.1.0.0.yaml/geoffr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ ePub fixed top/bottom margins:
# size (two digits) in pixels:
- ReplaceString: {Offset: 0x18, Find: "00", Replace: "00"}

ePub disable built-in body padding-bottom` :
ePub disable built-in body padding-bottom:
- Enabled: no
- PatchGroup: ePub padding-bottom alternatives
- Description: |
Expand Down
8 changes: 6 additions & 2 deletions src/versions/4.9.11311/nickel.yaml/jackie_w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ Dictionary pop-up frame size increase:
- ReplaceZlib:
Offset: 0
Find: "#dictionary {\n max-height: 376px;\n min-height: 376px;\n margin-top: 20px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 20px;\n margin-left: 20px;\n}\n#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 30px;\n margin-left: 30px;\n}\n#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 42px;\n margin-left: 42px;\n}"
Replace: "#dictionary {\n max-height: 622px;\n min-height: 622px;\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 10px;\n margin-left: 15px;\n}\n#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 10px;\n margin-left: 20px;\n}"
Replace: "#dictionary {\n max-height: 622px;\n min-height: 622px;\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 10px;\n margin-left: 15px;\n}\n#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 10px;\n margin-left: 20px;\n}"
- ReplaceZlib:
Offset: 0
Find: "#textEdit[qApp_deviceIsTrilogy=true] {\n max-height: 152px;\n min-height: 152px;\n max-width: 515px;\n min-width: 515px;\n}\n#textEdit[qApp_deviceIsPhoenix=true] {\n max-height: 190px;\n min-height: 190px;\n max-width: 638px;\n min-width: 638px;\n}\n#textEdit[qApp_deviceIsDragon=true] {\n max-height: 256px;\n min-height: 256px;\n max-width: 930px;\n min-width: 930px;\n}\n#textEdit[qApp_deviceIsDaylight=true] {\n max-height: 336px;\n min-height: 336px;\n max-width: 1209px;\n min-width: 1209px;\n}"
Replace: "#textEdit[qApp_deviceIsTrilogy=true] {\n max-height: 228px;\n min-height: 228px;\n max-width: 515px;\n min-width: 515px;\n}\n#textEdit[qApp_deviceIsPhoenix=true] {\n max-height: 300px;\n min-height: 300px;\n max-width: 658px;\n min-width: 658px;\n}\n#textEdit[qApp_deviceIsDragon=true] {\n max-height: 452px;\n min-height: 452px;\n max-width: 960px;\n min-width: 960px;\n}\n#textEdit[qApp_deviceIsDaylight=true] {\n max-height: 582px;\n min-height: 582px;\n max-width: 1253px;\n min-width: 1253px;\n}"
- ReplaceZlib:
Offset: 0
Find: "#footer {\n max-height: 46px;\n min-height: 46px;\n}\n#footer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-bottomMargin: 20;\n max-height: 60px;\n min-height: 60px;\n}\n#footer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 25;\n qproperty-rightMargin: 25;\n qproperty-bottomMargin: 25;\n max-height: 90px;\n min-height: 90px;\n}\n#footer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 32;\n qproperty-rightMargin: 32;\n qproperty-bottomMargin: 32;\n max-height: 120px;\n min-height: 120px;\n}"
Replace: "#footer {\n max-height: 35px;\n min-height: 35px;\n}\n#footer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-bottomMargin: 0;\n max-height: 40px;\n min-height: 40px;\n}\n#footer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 25;\n qproperty-rightMargin: 25;\n qproperty-bottomMargin: 0;\n max-height: 50px;\n min-height: 50px;\n}\n#footer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 32;\n qproperty-rightMargin: 32;\n qproperty-bottomMargin: 0;\n max-height: 60px;\n min-height: 60px;\n}"
Replace: "#footer {\n max-height: 35px;\n min-height: 35px;\n}\n#footer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-bottomMargin: 0;\n max-height: 40px;\n min-height: 40px;\n}\n#footer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 25;\n qproperty-rightMargin: 25;\n qproperty-bottomMargin: 0;\n max-height: 50px;\n min-height: 50px;\n}\n#footer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 32;\n qproperty-rightMargin: 32;\n qproperty-bottomMargin: 0;\n max-height: 60px;\n min-height: 60px;\n}"
- ReplaceZlib:
Offset: 0
Find: "#header[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}\n#header[qApp_deviceIsPhoenix=true] {\n max-height: 60px;\n min-height: 60px;\n}\n#header[qApp_deviceIsDragon=true] {\n max-height: 90px;\n min-height: 90px;\n}\n#header[qApp_deviceIsDaylight=true] {\n max-height: 120px;\n min-height: 120px;\n}"
Replace: "#header[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}\n#header[qApp_deviceIsPhoenix=true] {\n max-height: 60px;\n min-height: 60px;\n}\n#header[qApp_deviceIsDragon=true] {\n max-height: 70px;\n min-height: 70px;\n}\n#header[qApp_deviceIsDaylight=true] {\n max-height: 90px;\n min-height: 90px;\n}"
2 changes: 1 addition & 1 deletion src/versions/4.9.11314/libnickel.so.1.0.0.yaml/geoffr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ ePub fixed top/bottom margins:
# size (two digits) in pixels:
- ReplaceString: {Offset: 0x18, Find: "00", Replace: "00"}

ePub disable built-in body padding-bottom` :
ePub disable built-in body padding-bottom:
- Enabled: no
- PatchGroup: ePub padding-bottom alternatives
- Description: |
Expand Down
8 changes: 6 additions & 2 deletions src/versions/4.9.11314/nickel.yaml/jackie_w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ Dictionary pop-up frame size increase:
- ReplaceZlib:
Offset: 0
Find: "#dictionary {\n max-height: 376px;\n min-height: 376px;\n margin-top: 20px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 20px;\n margin-left: 20px;\n}\n#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 30px;\n margin-left: 30px;\n}\n#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 42px;\n margin-left: 42px;\n}"
Replace: "#dictionary {\n max-height: 622px;\n min-height: 622px;\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 10px;\n margin-left: 15px;\n}\n#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 10px;\n margin-left: 20px;\n}"
Replace: "#dictionary {\n max-height: 622px;\n min-height: 622px;\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsPhoenix=true] {\n margin-top: 5px;\n margin-left: 10px;\n}\n#dictionary[qApp_deviceIsDragon=true] {\n margin-top: 10px;\n margin-left: 15px;\n}\n#dictionary[qApp_deviceIsDaylight=true] {\n margin-top: 10px;\n margin-left: 20px;\n}"
- ReplaceZlib:
Offset: 0
Find: "#textEdit[qApp_deviceIsTrilogy=true] {\n max-height: 152px;\n min-height: 152px;\n max-width: 515px;\n min-width: 515px;\n}\n#textEdit[qApp_deviceIsPhoenix=true] {\n max-height: 190px;\n min-height: 190px;\n max-width: 638px;\n min-width: 638px;\n}\n#textEdit[qApp_deviceIsDragon=true] {\n max-height: 256px;\n min-height: 256px;\n max-width: 930px;\n min-width: 930px;\n}\n#textEdit[qApp_deviceIsDaylight=true] {\n max-height: 336px;\n min-height: 336px;\n max-width: 1209px;\n min-width: 1209px;\n}"
Replace: "#textEdit[qApp_deviceIsTrilogy=true] {\n max-height: 228px;\n min-height: 228px;\n max-width: 515px;\n min-width: 515px;\n}\n#textEdit[qApp_deviceIsPhoenix=true] {\n max-height: 300px;\n min-height: 300px;\n max-width: 658px;\n min-width: 658px;\n}\n#textEdit[qApp_deviceIsDragon=true] {\n max-height: 452px;\n min-height: 452px;\n max-width: 960px;\n min-width: 960px;\n}\n#textEdit[qApp_deviceIsDaylight=true] {\n max-height: 582px;\n min-height: 582px;\n max-width: 1253px;\n min-width: 1253px;\n}"
- ReplaceZlib:
Offset: 0
Find: "#footer {\n max-height: 46px;\n min-height: 46px;\n}\n#footer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-bottomMargin: 20;\n max-height: 60px;\n min-height: 60px;\n}\n#footer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 25;\n qproperty-rightMargin: 25;\n qproperty-bottomMargin: 25;\n max-height: 90px;\n min-height: 90px;\n}\n#footer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 32;\n qproperty-rightMargin: 32;\n qproperty-bottomMargin: 32;\n max-height: 120px;\n min-height: 120px;\n}"
Replace: "#footer {\n max-height: 35px;\n min-height: 35px;\n}\n#footer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-bottomMargin: 0;\n max-height: 40px;\n min-height: 40px;\n}\n#footer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 25;\n qproperty-rightMargin: 25;\n qproperty-bottomMargin: 0;\n max-height: 50px;\n min-height: 50px;\n}\n#footer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 32;\n qproperty-rightMargin: 32;\n qproperty-bottomMargin: 0;\n max-height: 60px;\n min-height: 60px;\n}"
Replace: "#footer {\n max-height: 35px;\n min-height: 35px;\n}\n#footer[qApp_deviceIsPhoenix=true] {\n qproperty-leftMargin: 20;\n qproperty-rightMargin: 20;\n qproperty-bottomMargin: 0;\n max-height: 40px;\n min-height: 40px;\n}\n#footer[qApp_deviceIsDragon=true] {\n qproperty-leftMargin: 25;\n qproperty-rightMargin: 25;\n qproperty-bottomMargin: 0;\n max-height: 50px;\n min-height: 50px;\n}\n#footer[qApp_deviceIsDaylight=true] {\n qproperty-leftMargin: 32;\n qproperty-rightMargin: 32;\n qproperty-bottomMargin: 0;\n max-height: 60px;\n min-height: 60px;\n}"
- ReplaceZlib:
Offset: 0
Find: "#header[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}\n#header[qApp_deviceIsPhoenix=true] {\n max-height: 60px;\n min-height: 60px;\n}\n#header[qApp_deviceIsDragon=true] {\n max-height: 90px;\n min-height: 90px;\n}\n#header[qApp_deviceIsDaylight=true] {\n max-height: 120px;\n min-height: 120px;\n}"
Replace: "#header[qApp_deviceIsTrilogy=true] {\n max-height: 46px;\n min-height: 46px;\n}\n#header[qApp_deviceIsPhoenix=true] {\n max-height: 60px;\n min-height: 60px;\n}\n#header[qApp_deviceIsDragon=true] {\n max-height: 70px;\n min-height: 70px;\n}\n#header[qApp_deviceIsDaylight=true] {\n max-height: 90px;\n min-height: 90px;\n}"

0 comments on commit 794d3cd

Please sign in to comment.