View Single Post
Old 06-07-2016, 03:41 PM   #18
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by pipcat View Post
Updated patch-nickel-css scripts, with an option to generate bad-eyes format. Instead of executing python patch.py we can run python patch_badeyes.py and get a .txt with our customizations for bad-eyes pack.

Tshering, these are two examples, zlib and not, with myglohd.css modifications. newpart are some lines shorter than oldpart. Is that ok for patchit.exe ?
Spoiler:
<patch>
name=4A192E (found 16, nozlib)
enabled=true
action=replace_string
position=autodetect
oldpart=#InlineDictionaryView {\n\tmin-width: 500px;\n\tmax-width: 500px;\n\tmin-height: 220px;\n\tmax-height: 220px;\n}\n
oldpart=#InlineDictionaryView[qApp_deviceIsPhoenix="true"] {\n\tmin-width: 650px;\n\tmax-width: 650px;\n\tmin-height: 280px;\n\tmax-height: 280px;\n}\n
oldpart=#InlineDictionaryView[qApp_deviceIsDragon="true"] {\n\tmin-width: 980px;\n\tmax-width: 980px;\n\tmin-height: 350px;\n\tmax-height: 350px;\n}\n
newpart=/* [MOD]: Increased dictionary view */\n#InlineDictionaryView {\n\tmin-width: 980px;\n\tmax-width: 980px;\n\tmin-height: 400px;\n\tmax-height: 400px;\n}\n
combineparts
</patch>

Spoiler:
<patch>
name=4A3061 (found 28, zlib)
enabled=true
action=replace_zlib
position=autodetect
oldpart=#RecentBookTile[qApp_deviceIsTrilogy="true"] {\n qproperty-percentFontSize: 20;\n qproperty-progressFontSize: 20;\n qproperty-topMargin: 15;\n qproperty-coverBorder: 4;\n}\n
oldpart=#RecentBookTile[qApp_deviceIsPhoenix="true"] {\n qproperty-percentFontSize: 28;\n qproperty-progressFontSize: 22;\n qproperty-topMargin: 15;\n qproperty-coverBorder: 4;\n}\n
oldpart=#RecentBookTile[qApp_deviceIsDragon="true"] {\n qproperty-percentFontSize: 36;\n qproperty-progressFontSize: 26;\n qproperty-topMargin: 20;\n qproperty-coverBorder: 6;\n}\n
oldpart=#RecentBookTile[qApp_deviceIsAlyssum="true"] {\n qproperty-percentFontSize: 39;\n qproperty-progressFontSize: 30;\n qproperty-topMargin: 20;\n qproperty-coverBorder: 6;\n}\n
oldpart=#recentBookTileInfo {\n background-color: transparent;\n}\n
oldpart=#recentBookTileInfo[qApp_deviceIsTrilogy="true"] {\n qproperty-topMargin: 15;\n qproperty-bottomMargin: 15;\n}\n
oldpart=#recentBookTileInfo[qApp_deviceIsPhoenix="true"] {\n qproperty-topMargin: 15;\n qproperty-bottomMargin: 15;\n}\n
oldpart=#recentBookTileInfo[qApp_deviceIsDragon="true"] {\n qproperty-topMargin: 10;\n qproperty-bottomMargin: 15;\n}\n
oldpart=#annotation {\n min-height: 75px;\n max-height: 75px;\n}\n
oldpart=#annotation[qApp_deviceIsTrilogy="true"] {\n min-height: 52px;\n max-height: 52px;\n}\n
oldpart=QLabel {\n background-color: transparent;\n}\n
oldpart=QLabel[qApp_deviceIsTrilogy="true"] {\n font-size: 18px;\n}\n
newpart=/* [MOD]: Removed cover border in most recent book thumbnail */\n#RecentBookTile {\n qproperty-percentFontSize: 39;\n qproperty-progressFontSize: 30;\n qproperty-topMargin: 20;\n qproperty-coverBorder: 0;\n}\n\n
newpart=#recentBookTileInfo {\n background-color: transparent;\n qproperty-topMargin: 10;\n qproperty-bottomMargin: 15;\n}\n\n
newpart=#annotation {\n min-height: 75px;\n max-height: 75px;\n}\n\n
newpart=QLabel {\n background-color: transparent;\n}\n
combineparts
</patch>
The shorter lines are ok. The first patch (no zlip) does work, the second has some problems; there is for instance one space missing in the last oldpart. Maybe you did some editing when posting it here. Or maybe double spaces and such things get lost if you post it outside from code tags.

Last edited by tshering; 06-07-2016 at 04:00 PM.
tshering is offline   Reply With Quote