Quote:
Originally Posted by mxbndr
I'm wondering, is there documentation for how to target things in Kobo files?
|
If you want to examine the CSS streams in nickel you need @geek1011's
cssextract executable (e.g. cssextract-windows.exe is the one for Windows). He used to distribute it in every release of kobopatch_xxx.zip but doesn't anymore.
See here for more detail if you're interested. It may still on his GitHub website but I'm not sure exactly where it's stored. Once you've got it, all you do is pull out the nickel file from the relevant kobo firmware zip file and drop it onto the executable. It creates a single text file containing the CSS streams which you can examine at your leisure.
Quote:
Originally Posted by mxbndr
For instance, I can infer from
Code:
- FindZlib: "#row1col2"
that there is a grid with at least 2 columns, and from
Code:
Replace: "#row1col2 {\n qproperty-visible: false;\n}\n#row2 {\n qproperty-visible: false;\n}"
|
The Home screen has a header (time and icons), a footer (4 Nav buttons) and between them is a 3x2 grid. What is in each "cell" can vary a bit, especially if you check the
More>Beta Features>Large Print Mode box.
row1col1 & col2: Recent books
row2col1: MyBooks "tile" (recently duplicated in MyBooks navbutton)
row2col2: a variable "tile" usually showing books from one of your Collections or one of your Authors.
row3col1: link to Kobo store (recently duplicated in Discover navbutton)
row3col2: a random item from a select list of "useful (
maybe) things". There are kobopatches to force this to something you might actually use.
Quote:
Originally Posted by mxbndr
With that in mind, I'm also wondering what one patch would look like.
|
Try
Code:
Remove footer (row3) and My Books (row2) on home screen:
- Enabled: yes
- PatchGroup: Home screen visibility tweaks
- FindZlib: "#row1col2"
- ReplaceZlib:
Find: "#row1col2 {\n qproperty-visible: false;\n}"
Replace: "#row1col2 {\n qproperty-visible: false;\n}\n#row2, #row3 {\n qproperty-visible: false;\n}"
This is the whole contents for HomePageView.qss CSS resource in 4.25.15875 so you can get an idea what the existing Home screen patches are doing.: