Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2022, 07:17 PM   #841
allanahk
Connoisseur
allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.
 
allanahk's Avatar
 
Posts: 71
Karma: 2202292
Join Date: Nov 2018
Device: Kobo Libra 2
Quote:
Originally Posted by jackie_w View Post
To digress a little, British Estate Agents sometimes used the phrase "Would suit enthusiast" when trying to sell a house most of us would describe as "don't even think about buying this house unless DIY is your main hobby"

OK, I'm exaggerating a little, but I'd definitely describe these patches as "Would suit enthusiast". In this context I mean they may be OK for someone who understands the detail of how a nickel patch is constructed and customised, but would probably not be OK for someone whose only practical experience of kobopatch is changing 'Enabled: no' to 'Enabled: yes'.

A bit of background detail, the patches you've requested require patching some of the most basic GUI widgets. As such a simple change may be reflected in more of the GUI than you originally intended. This is unlikely to be dangerous but if you're picky enough to want to change parts of the GUI you may also be picky enough to complain when a patch has unintended consequences. Patching some GUI basics is a bit like trying to do keyhole surgery with a butter knife.

Maybe you can see where I'm heading with this. New "official" patches need documenting and ongoing detailed support for the technically-less-able. Realistically, ATM that's all likely to land on my desk. Unfortunately, my current home situation is not conducive to spending a lot of time hand-holding.


TL;DNR Yes they are possible. The real question is whether they are supportable.

However, if there are technically-able users of kobopatch who are interested in what you've proposed and are also prepared to commit to helping out with any ongoing support, I could be persuaded to post some beta patches.
Ok, that's fair! I wasn't sure if my requests were simple to implement or more complex like you say.

Are there any resources/info for creating patches? The yaml files seem straightforward, but how do you know what to put under e.g. FindZlib or ReplaceZlibGroup etc? What files are these modifying? It would be fun to understand the process more - if it's too complicated for me to tinker with then at least it would be interesting to learn about
allanahk is offline   Reply With Quote
Old 07-13-2022, 09:36 PM   #842
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,280
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by allanahk View Post
Ok, that's fair! I wasn't sure if my requests were simple to implement or more complex like you say.

Are there any resources/info for creating patches? The yaml files seem straightforward, but how do you know what to put under e.g. FindZlib or ReplaceZlibGroup etc? What files are these modifying? It would be fun to understand the process more - if it's too complicated for me to tinker with then at least it would be interesting to learn about
The name of the .yaml file reflects the name of the file it is intended to modify. For example libnickel.so.1.0.0.yaml holds the patches for libnickel.so.1.0.0 and nickel.yaml holds the patches for nickel.

If you want to get into disassembling the files, it can be fun figuring out what the various routines do and what needs to be changed to make a patch work.
DNSB is online now   Reply With Quote
Advert
Old 07-14-2022, 09:54 AM   #843
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,803
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by allanahk View Post
Are there any resources/info for creating patches? The yaml files seem straightforward, but how do you know what to put under e.g. FindZlib or ReplaceZlibGroup etc? What files are these modifying? It would be fun to understand the process more - if it's too complicated for me to tinker with then at least it would be interesting to learn about
As for what jackie_w is referring to, you'll need to look at the Qt resource dumps (see the kobopatch release issues on GitHub, and my qrc repo) along with a disassembly of libnickel to figure out exactly where things are used (if it isn't clear from the CSS). The zlib instructions are the ones which replace compressed Qt resources. The group ones do multiple replacements without recompressing each time (which may fail if one makes it too large -- also note that I'll probably be doing something about that part at some point in the future). Pretty much anything involving the zlib CSS stuff is safe to mess with and can be recovered from without a factory reset unless you do something silly like removing the usb connection button and don't have SSH access or something else like NickelMenu installed, or you install mismatched firmware files.

For the other patches, it's a bit more complicated, and I can talk more about them if you're interested when I have a bit more time.

___

P.S. Regarding the other requests I see from the last month, I didn't miss them; I just didn't have enough time to respond. I'll probably get to them at some point if nobody else does them first.

Last edited by geek1011; 07-14-2022 at 09:59 AM.
geek1011 is offline   Reply With Quote
Old 07-15-2022, 12:44 PM   #844
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by allanahk View Post
Ok, that's fair! I wasn't sure if my requests were simple to implement or more complex like you say.
I've had a re-think. What you asked for would normally require 3 patches, each patch having settings for all the Kobo models. Instead I've combined all 3 patches into a single one, but only targeted at a single Kobo model group. The beta patch in the spoiler below should work for all Storm devices, i.e. LibraH2O/Libra2.

Have a look at the patch code to see if the included help notes are clear enough to be usable.
All Replace: lines can be customised as required. If that's too complicated simply enabling the patch will look like the 2nd image in the 2 screenshots (default vs. patched) attached below.

If the patch is considered both useable and useful on a Libra, I can look at creating similar patches for the other Kobo model groups. Feedback welcome.

Place the patch code in nickel.yaml (or wherever you keep all your other custom nickel patches).

'Storm' devices only (LibraH2O/Libra2)
Spoiler:
Code:
beta Increase width available for book Title in Booklists - Storm only:
  - Enabled: no
  - PatchGroup: Booklist layout tweaks
  - Description: |
        'Storm' devices only (LibraH2O/Libra2)
        Increase width available for book Title in GUI Booklists.
          - Part 1:     Customise font-size of book Title
          - Part 2:     (optional) Customise font-size of book Author(s) & Subtitle
          - Part 3:     Customise font-size of book Series and book (time remaining, filetype, filesize)
          - Part 4a/4b: Reduce large left/right margins in Booklists
        To get an idea of what effect this patch has, see screenshots at
            https://www.mobileread.com/forums/showpost.php?p=4239375&postcount=844
        N.B. Not suitable for users of Chinese-HK locale
        
  # Part 1: Customise font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise Title font-size from default 42px
        # add Storm-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true] {font-size:35px;}"
        
  # Part 2: Customise font-size of book Author(s) and Subtitle (optional)
  #         This is an extra option for patchers who would like more control over the
  #         Booklist font-size for both Author & Subtitle. Same value is used for both.
  - FindZlib: "PageLabel[localeName=\"zh-HK\"]," # default.qss (SmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Change Author & Subtitle font-size from default 30px
        # add Storm-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "PageLabel[localeName=\"zh-HK\"],\nSmallElidedLabel[localeName=\"zh-HK\"],\nSmallTouchLabel[localeName=\"zh-HK\"],\nSmallLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}"
          Replace: "SmallElidedLabel[qApp_deviceIsStorm=true] {font-size:30px;}"

  # Part 3: Customise font-size of book Series and book (time remaining, filetype, filesize)
  - FindZlib: "MetaDataElidedLabel[localeName=\"zh-HK\"]," # default.qss (MetaDataElidedLabel, MetaDataLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise font-sizes for:
        # - book Series                               (MetaDataElidedLabel) - default 29px
        # - book (time remaining, filetype, filesize) (MetaDataLabel)       - default 29px
        # add Storm-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "MetaDataElidedLabel[localeName=\"zh-HK\"],\nMetaDataLabel[localeName=\"zh-HK\"],\nMetaDataAdjustingLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  text-transform: none;\n}"
          Replace: "MetaDataElidedLabel[qApp_deviceIsStorm=true] {font-size:30px;}\nMetaDataLabel[qApp_deviceIsStorm=true] {font-size:23px;}"
          
  # Part 4: Reduce large left/right margins in Booklists
  - FindZlib: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:" # default.qss
  - ReplaceZlibGroup:
      Replacements:
        # 4a: Reduce left margin gap between edge of screen and bookcover thumbnails
        # L-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:23;\n}"
        
        # 4b: Reduce right margin gap between edge of screen and book metadata when no vertical scrollbar present
        #     i.e. when Booklist page contains <=5 Book/Series titles or <=10 Author/Collection titles
        # R-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin:23;\n}"


'Daylight' devices only (AuraOne/Forma/Sage/Elipsa/Elipsa2E)
Spoiler:
Code:
beta Increase width available for book Title in Booklists - Daylight only:
  - Enabled: no
  - PatchGroup: Booklist layout tweaks
  - Description: |
        'Daylight' devices only (AuraOne/Forma/Sage/Elipsa)
        Increase width available for book Title in GUI Booklists.
          - Part 1:     Customise font-size of book Title
          - Part 2:     (optional) Customise font-size of book Author(s) & Subtitle
          - Part 3:     Customise font-size of book Series and book (time remaining, filetype, filesize)
          - Part 4a/4b: Reduce large left/right margins in Booklists
        To get an idea of what effect this patch has, see screenshots at
            https://www.mobileread.com/forums/showpost.php?p=4239375&postcount=844
        N.B. Not suitable for users of Chinese-HK locale
        
  # Part 1: Customise font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise Title font-size from default 47px
        # add Daylight-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsDaylight=true] {font-size:38px;}"
        
  # Part 2: Customise font-size of book Author(s) and Subtitle (optional)
  #         This is an extra option for patchers who would like more control over the
  #         Booklist font-size for both Author & Subtitle. Same value is used for both.
  - FindZlib: "PageLabel[localeName=\"zh-HK\"]," # default.qss (SmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Change Author & Subtitle font-size from default 34px
        # add Daylight-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "PageLabel[localeName=\"zh-HK\"],\nSmallElidedLabel[localeName=\"zh-HK\"],\nSmallTouchLabel[localeName=\"zh-HK\"],\nSmallLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}"
          Replace: "SmallElidedLabel[qApp_deviceIsDaylight=true] {font-size:34px;}"

  # Part 3: Customise font-size of book Series and book (time remaining, filetype, filesize)
  - FindZlib: "MetaDataElidedLabel[localeName=\"zh-HK\"]," # default.qss (MetaDataElidedLabel, MetaDataLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise font-sizes for:
        # - book Series                               (MetaDataElidedLabel) - default 32px
        # - book (time remaining, filetype, filesize) (MetaDataLabel)       - default 32px
        # add Daylight-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "MetaDataElidedLabel[localeName=\"zh-HK\"],\nMetaDataLabel[localeName=\"zh-HK\"],\nMetaDataAdjustingLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  text-transform: none;\n}"
          Replace: "MetaDataElidedLabel[qApp_deviceIsDaylight=true] {font-size:32px;}\nMetaDataLabel[qApp_deviceIsDaylight=true] {font-size:23px;}"
          
  # Part 4: Reduce large left/right margins in Booklists
  - FindZlib: "ScrollableContentWidgetBase[qApp_deviceIsDaylight=true] {\n  qproperty-leftMargin:" # default.qss
  - ReplaceZlibGroup:
      Replacements:
        # 4a: Reduce left margin gap between edge of screen and bookcover thumbnails
        # L-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[qApp_deviceIsDaylight=true] {\n  qproperty-leftMargin: 74;\n}"
          Replace: "ScrollableContentWidgetBase[qApp_deviceIsDaylight=true] {\n  qproperty-leftMargin:26;\n}"
        
        # 4b: Reduce right margin gap between edge of screen and book metadata when no vertical scrollbar present
        #     i.e. when Booklist page contains <=5 Book/Series titles or <=10 Author/Collection titles
        # R-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsDaylight=true] {\n  qproperty-rightMargin: 74;\n}"
          Replace: "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsDaylight=true] {\n  qproperty-rightMargin:26;\n}"


GloHD/ClaraHD/Clara2E devices only
Spoiler:
Code:
beta Increase width available for book Title in Booklists - GloHD,Clara only:
  - Enabled: no
  - PatchGroup: Booklist layout tweaks
  - Description: |
        GloHD/ClaraHD/Clara2E devices only
        Increase width available for book Title in GUI Booklists.
          - Part 1:     Customise font-size of book Title
          - Part 2:     (optional) Customise font-size of book Author(s) & Subtitle
          - Part 3:     Customise font-size of book Series and book (time remaining, filetype, filesize)
          - Part 4a/4b: Reduce large left/right margins in Booklists
        To get an idea of what effect this patch has, see screenshots at
            https://www.mobileread.com/forums/showpost.php?p=4239375&postcount=844
        N.B. Not suitable for users of Chinese-HK locale
        
  # Part 1: Customise font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise Title font-size from default 39px
        # add Clara-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsAlyssum=true], HeaderSmallElidedLabel[qApp_deviceIsNova=true] {font-size:35px;}"
        
  # Part 2: Customise font-size of book Author(s) and Subtitle (optional)
  #         This is an extra option for patchers who would like more control over the
  #         Booklist font-size for both Author & Subtitle. Same value is used for both.
  - FindZlib: "PageLabel[localeName=\"zh-HK\"]," # default.qss (SmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Change Author & Subtitle font-size from default 30px
        # add Clara-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "PageLabel[localeName=\"zh-HK\"],\nSmallElidedLabel[localeName=\"zh-HK\"],\nSmallTouchLabel[localeName=\"zh-HK\"],\nSmallLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}"
          Replace: "SmallElidedLabel[qApp_deviceIsAlyssum=true], SmallElidedLabel[qApp_deviceIsNova=true] {font-size:30px;}"

  # Part 3: Customise font-size of book Series and book (time remaining, filetype, filesize)
  - FindZlib: "MetaDataElidedLabel[localeName=\"zh-HK\"]," # default.qss (MetaDataElidedLabel, MetaDataLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise font-sizes for:
        # - book Series                               (MetaDataElidedLabel) - default 25px
        # - book (time remaining, filetype, filesize) (MetaDataLabel)       - default 25px
        # add Clara-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "MetaDataElidedLabel[localeName=\"zh-HK\"],\nMetaDataLabel[localeName=\"zh-HK\"],\nMetaDataAdjustingLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  text-transform: none;\n}"
          Replace: "MetaDataElidedLabel[qApp_deviceIsDragon=true] {font-size:27px;}\nMetaDataLabel[qApp_deviceIsDragon=true] {font-size:22px;}"
          
  # Part 4: Reduce large left/right margins in Booklists
  - FindZlib: "ScrollableContentWidgetBase[qApp_deviceIsDragon=true] {\n  qproperty-leftMargin:" # default.qss
  - ReplaceZlibGroup:
      Replacements:
        # 4a: Reduce left margin gap between edge of screen and bookcover thumbnails
        # L-margin reduction approx. 6mm -> 2mm (Dragon/Alyssum/Nova)
        - Find:    "ScrollableContentWidgetBase[qApp_deviceIsDragon=true] {\n  qproperty-leftMargin: 57;\n}"
          Replace: "ScrollableContentWidgetBase[qApp_deviceIsDragon=true] {\n  qproperty-leftMargin:20;\n}"
        
        # 4b: Reduce right margin gap between edge of screen and book metadata when no vertical scrollbar present
        #     i.e. when Booklist page contains <=5 Book/Series titles or <=10 Author/Collection titles
        # R-margin reduction approx. 6mm -> 2mm (Dragon/Alyssum/Nova)
        - Find:    "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsDragon=true] {\n  qproperty-rightMargin: 57;\n}"
          Replace: "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsDragon=true] {\n  qproperty-rightMargin:20;\n}"


ETA 1: These beta patches are not suitable for kobopatchers who have set their Kobo locale to Chinese-HK. The space occupied by some of the Chinese-specific code was commandeered to simplify this patch for other users.

ETA 2:
  • Added new option (Part 2) to customise font-size of both Author and Subtitle lines in the Booklist. Same font-size is used for both. Cosmetic only, won't affect width available for long book Titles.
  • Changed Series option (Part 3) so only a single Find/Replace is needed to customise font-sizes for Series and (time remaining, filetype, filesize). These 2 values can be different.
  • Equivalent patch for Daylight devices added above.

ETA 3: Added beta patch for GloHD/ClaraHD/Clara2E devices
Attached Thumbnails
Click image for larger version

Name:	booklist_default.png
Views:	443
Size:	357.5 KB
ID:	195014   Click image for larger version

Name:	booklist_35_23.png
Views:	414
Size:	343.7 KB
ID:	195015  

Last edited by jackie_w; 07-01-2023 at 02:47 PM. Reason: See ETA 3
jackie_w is offline   Reply With Quote
Old 07-15-2022, 02:06 PM   #845
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,392
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Would it be possible create a patch that does away with covers and allows for more lines in a list view?
JSWolf is offline   Reply With Quote
Advert
Old 07-15-2022, 03:07 PM   #846
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Would it be possible create a patch that does away with covers and allows for more lines in a list view?
I don't know how to increase the 5 books per page limit on the Book and Series tabs in 'My Books'. I suspect it would need more than a nickel CSS patch.
jackie_w is offline   Reply With Quote
Old 07-16-2022, 04:03 AM   #847
allanahk
Connoisseur
allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.
 
allanahk's Avatar
 
Posts: 71
Karma: 2202292
Join Date: Nov 2018
Device: Kobo Libra 2
Quote:
Originally Posted by jackie_w View Post
I've had a re-think. What you asked for would normally require 3 patches, each patch having settings for all the Kobo models. Instead I've combined all 3 patches into a single one, but only targeted at a single Kobo model group. The beta patch in the spoiler below should work for all Storm devices, i.e. LibraH2O/Libra2.

Have a look at the patch code to see if the included help notes are clear enough to be usable.
All 5 Replace: lines can be customised as required. If that's too complicated simply enabling the patch will look like the 2nd image in the 2 screenshots (default vs. patched) attached below.

If the patch is considered both useable and useful on a Libra, I can look at creating similar patches for the other Kobo model groups. Feedback welcome.

Place the patch code in nickel.yaml (or wherever you keep all your other custom nickel patches).

Spoiler:
Code:
beta Increase width available for book Title in Booklists - Libra only:
  - Enabled: no
  - PatchGroup: Booklist layout tweaks
  - Description: |
        Storm devices only (LibraH2O/Libra2)
        Increase width available for book Title in GUI Booklists.
          - Part 1:     Reduce font-size of book Title
          - Part 2a/2b: Reduce font-size of book (time remaining, filetype, filesize etc.)
          - Part 3a/3b: Reduce large left/right margins in Booklists
        N.B. Not suitable for users of Chinese-HK locale
        
  # Part 1: Reduce font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Reduce Title font-size from 42px (default)
        # add Libra code by commandeering some code used only by ChineseHK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true] {font-size:35px;}"

  # Part 2: Reduce font-size of book (time remaining, filetype, filesize etc.)
  - FindZlib: "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size:" # default.qss (MetaDataElidedLabel, MetaDataLabel, MetaDataAdjustingLabel)
  - ReplaceZlibGroup:
      Replacements:
        # 2a: Reduce font-size of all 3 (MetaDataElidedLabel, MetaDataLabel, MetaDataAdjustingLabel)
        # Booklists (time remaining, filetype, filesize) use MetadataLabel
        # Reduce font-size from 29px (default)
        - Find:    "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size: 29px;\n}"
          Replace: "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size:23px;\n}"
          
        # 2b: Restore default font-size for book Series (MetaDataElidedLabel)
        # add Libra code by commandeering some code used only by ChineseHK locale users
        - Find:    "MetaDataElidedLabel[localeName=\"zh-HK\"],\nMetaDataLabel[localeName=\"zh-HK\"],\nMetaDataAdjustingLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  text-transform: none;\n}"
          Replace: "MetaDataElidedLabel[qApp_deviceIsStorm=true] {font-size:29px;}"
          
  # Part 3: Reduce large left/right margins in Booklists
  - FindZlib: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:" # default.qss (ScrollableContentWidgetBase)
  - ReplaceZlibGroup:
      Replacements:
        # 3a: Reduce left margin gap between edge of screen and bookcover thumbnails
        # L-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:23;\n}"
        
        # 3b: Reduce right margin gap between edge of screen and book metadata when no vertical scrollbar present
        #     i.e. when Booklist page contains <=5 Book/Series titles or <=10 Author/Collection titles
        # R-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin:23;\n}"


ETA: This beta patch is not suitable for kobopatchers who have set their Kobo locale to Chinese-HK. The space occupied by some of the Chinese-specific code was commandeered to simplify this patch for other users.
Brilliant!!! Thanks very much, I've had a play around with the patch code to customise it to my liking and it's fantastic - a definite improvement in terms of using the list space more efficiently.
allanahk is offline   Reply With Quote
Old 07-17-2022, 03:10 PM   #848
BiliBug
Connoisseur
BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.
 
Posts: 96
Karma: 374269
Join Date: Nov 2012
Location: Stockton, NJ
Device: Kobo Sage (Formerly KKB, PW1, PW3, KV, OA3)
Quote:
Originally Posted by jackie_w View Post
I've had a re-think. What you asked for would normally require 3 patches, each patch having settings for all the Kobo models. Instead I've combined all 3 patches into a single one, but only targeted at a single Kobo model group. The beta patch in the spoiler below should work for all Storm devices, i.e. LibraH2O/Libra2.

Have a look at the patch code to see if the included help notes are clear enough to be usable.
All 5 Replace: lines can be customised as required. If that's too complicated simply enabling the patch will look like the 2nd image in the 2 screenshots (default vs. patched) attached below.

If the patch is considered both useable and useful on a Libra, I can look at creating similar patches for the other Kobo model groups. Feedback welcome.

Place the patch code in nickel.yaml (or wherever you keep all your other custom nickel patches).

Spoiler:
Code:
beta Increase width available for book Title in Booklists - Libra only:
  - Enabled: no
  - PatchGroup: Booklist layout tweaks
  - Description: |
        Storm devices only (LibraH2O/Libra2)
        Increase width available for book Title in GUI Booklists.
          - Part 1:     Reduce font-size of book Title
          - Part 2a/2b: Reduce font-size of book (time remaining, filetype, filesize etc.)
          - Part 3a/3b: Reduce large left/right margins in Booklists
        N.B. Not suitable for users of Chinese-HK locale
        
  # Part 1: Reduce font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Reduce Title font-size from 42px (default)
        # add Libra code by commandeering some code used only by ChineseHK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true] {font-size:35px;}"

  # Part 2: Reduce font-size of book (time remaining, filetype, filesize etc.)
  - FindZlib: "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size:" # default.qss (MetaDataElidedLabel, MetaDataLabel, MetaDataAdjustingLabel)
  - ReplaceZlibGroup:
      Replacements:
        # 2a: Reduce font-size of all 3 (MetaDataElidedLabel, MetaDataLabel, MetaDataAdjustingLabel)
        # Booklists (time remaining, filetype, filesize) use MetadataLabel
        # Reduce font-size from 29px (default)
        - Find:    "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size: 29px;\n}"
          Replace: "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size:23px;\n}"
          
        # 2b: Restore default font-size for book Series (MetaDataElidedLabel)
        # add Libra code by commandeering some code used only by ChineseHK locale users
        - Find:    "MetaDataElidedLabel[localeName=\"zh-HK\"],\nMetaDataLabel[localeName=\"zh-HK\"],\nMetaDataAdjustingLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  text-transform: none;\n}"
          Replace: "MetaDataElidedLabel[qApp_deviceIsStorm=true] {font-size:29px;}"
          
  # Part 3: Reduce large left/right margins in Booklists
  - FindZlib: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:" # default.qss (ScrollableContentWidgetBase)
  - ReplaceZlibGroup:
      Replacements:
        # 3a: Reduce left margin gap between edge of screen and bookcover thumbnails
        # L-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:23;\n}"
        
        # 3b: Reduce right margin gap between edge of screen and book metadata when no vertical scrollbar present
        #     i.e. when Booklist page contains <=5 Book/Series titles or <=10 Author/Collection titles
        # R-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin:23;\n}"


ETA: This beta patch is not suitable for kobopatchers who have set their Kobo locale to Chinese-HK. The space occupied by some of the Chinese-specific code was commandeered to simplify this patch for other users.

I would love to see this patch for the Sage.
BiliBug is offline   Reply With Quote
Old 07-17-2022, 03:30 PM   #849
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 229
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
Patch to access "Search in Book" quickly

It's been requested before, but I'm not sure there ever was a response as to feasibility and/or desireability. Hence, I'm reflagging FWIW.

It's a small thing, but as I get older and need the search function within a book more and more to remind me of which character is which, it would be great if a patch could make it so that "search in book" is moved up a level in the UI so that it is one of the options immediately available (i.e., without first having to click "search") when you highlight a word or phrase.

OK, I admit it only saves a single click per search, but I probably use search in book a dozen times per title!

In any event, thanks to all, as always, for these wonderful patches. Without them, I might have gone to the dark side (Kindle) a long time ago.
rogerinnyc is offline   Reply With Quote
Old 07-17-2022, 05:04 PM   #850
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by BiliBug View Post
I would love to see this patch for the Sage.
Check back here in the next day or so. I don't have a Sage to test it on but my Forma should be close enough.
jackie_w is offline   Reply With Quote
Old 07-17-2022, 05:06 PM   #851
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by rogerinnyc View Post
It's been requested before, but I'm not sure there ever was a response as to feasibility and/or desireability. Hence, I'm reflagging FWIW.

It's a small thing, but as I get older and need the search function within a book more and more to remind me of which character is which, it would be great if a patch could make it so that "search in book" is moved up a level in the UI so that it is one of the options immediately available (i.e., without first having to click "search") when you highlight a word or phrase.

OK, I admit it only saves a single click per search, but I probably use search in book a dozen times per title!

In any event, thanks to all, as always, for these wonderful patches. Without them, I might have gone to the dark side (Kindle) a long time ago.
I'm afraid this is not something I can help with. You'll need to wait for @geek1011 to reply.
jackie_w is offline   Reply With Quote
Old 07-17-2022, 05:08 PM   #852
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,392
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by rogerinnyc View Post
It's been requested before, but I'm not sure there ever was a response as to feasibility and/or desireability. Hence, I'm reflagging FWIW.

It's a small thing, but as I get older and need the search function within a book more and more to remind me of which character is which, it would be great if a patch could make it so that "search in book" is moved up a level in the UI so that it is one of the options immediately available (i.e., without first having to click "search") when you highlight a word or phrase.

OK, I admit it only saves a single click per search, but I probably use search in book a dozen times per title!

In any event, thanks to all, as always, for these wonderful patches. Without them, I might have gone to the dark side (Kindle) a long time ago.
I don't know if it can be done, but having a look at NickelMenu and see if maybe you can do this with it.
JSWolf is offline   Reply With Quote
Old 07-17-2022, 10:28 PM   #853
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by jackie_w View Post
I've had a re-think. What you asked for would normally require 3 patches, each patch having settings for all the Kobo models. Instead I've combined all 3 patches into a single one, but only targeted at a single Kobo model group. The beta patch in the spoiler below should work for all Storm devices, i.e. LibraH2O/Libra2.

Have a look at the patch code to see if the included help notes are clear enough to be usable.
All 5 Replace: lines can be customised as required. If that's too complicated simply enabling the patch will look like the 2nd image in the 2 screenshots (default vs. patched) attached below.

If the patch is considered both useable and useful on a Libra, I can look at creating similar patches for the other Kobo model groups. Feedback welcome.

Place the patch code in nickel.yaml (or wherever you keep all your other custom nickel patches).

Spoiler:
Code:
beta Increase width available for book Title in Booklists - Libra only:
  - Enabled: no
  - PatchGroup: Booklist layout tweaks
  - Description: |
        Storm devices only (LibraH2O/Libra2)
        Increase width available for book Title in GUI Booklists.
          - Part 1:     Reduce font-size of book Title
          - Part 2a/2b: Reduce font-size of book (time remaining, filetype, filesize etc.)
          - Part 3a/3b: Reduce large left/right margins in Booklists
        N.B. Not suitable for users of Chinese-HK locale
        
  # Part 1: Reduce font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Reduce Title font-size from 42px (default)
        # add Libra code by commandeering some code used only by ChineseHK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true] {font-size:35px;}"

  # Part 2: Reduce font-size of book (time remaining, filetype, filesize etc.)
  - FindZlib: "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size:" # default.qss (MetaDataElidedLabel, MetaDataLabel, MetaDataAdjustingLabel)
  - ReplaceZlibGroup:
      Replacements:
        # 2a: Reduce font-size of all 3 (MetaDataElidedLabel, MetaDataLabel, MetaDataAdjustingLabel)
        # Booklists (time remaining, filetype, filesize) use MetadataLabel
        # Reduce font-size from 29px (default)
        - Find:    "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size: 29px;\n}"
          Replace: "MetaDataAdjustingLabel[qApp_deviceIsStorm=true] {\n  font-size:23px;\n}"
          
        # 2b: Restore default font-size for book Series (MetaDataElidedLabel)
        # add Libra code by commandeering some code used only by ChineseHK locale users
        - Find:    "MetaDataElidedLabel[localeName=\"zh-HK\"],\nMetaDataLabel[localeName=\"zh-HK\"],\nMetaDataAdjustingLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  text-transform: none;\n}"
          Replace: "MetaDataElidedLabel[qApp_deviceIsStorm=true] {font-size:29px;}"
          
  # Part 3: Reduce large left/right margins in Booklists
  - FindZlib: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:" # default.qss (ScrollableContentWidgetBase)
  - ReplaceZlibGroup:
      Replacements:
        # 3a: Reduce left margin gap between edge of screen and bookcover thumbnails
        # L-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[qApp_deviceIsStorm=true] {\n  qproperty-leftMargin:23;\n}"
        
        # 3b: Reduce right margin gap between edge of screen and book metadata when no vertical scrollbar present
        #     i.e. when Booklist page contains <=5 Book/Series titles or <=10 Author/Collection titles
        # R-margin reduction approx. 6mm -> 2mm
        - Find:    "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin: 67;\n}"
          Replace: "ScrollableContentWidgetBase[noScrollBar=true][qApp_deviceIsStorm=true] {\n  qproperty-rightMargin:23;\n}"


ETA: This beta patch is not suitable for kobopatchers who have set their Kobo locale to Chinese-HK. The space occupied by some of the Chinese-specific code was commandeered to simplify this patch for other users.

I added this to my list of patches that I use. great patch, IMO. I am using Libra 2
Deobulakenyo is offline   Reply With Quote
Old 07-18-2022, 12:41 AM   #854
allanahk
Connoisseur
allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.
 
allanahk's Avatar
 
Posts: 71
Karma: 2202292
Join Date: Nov 2018
Device: Kobo Libra 2
Quote:
Originally Posted by allanahk View Post
Brilliant!!! Thanks very much, I've had a play around with the patch code to customise it to my liking and it's fantastic - a definite improvement in terms of using the list space more efficiently.
I've been tinkering a bit more with the beta patch settings and settled (for now) on the following:
- title font size unchanged
- file type/size font size = 1px
- margin gap as specified in patch code post

I've attached a quick photo of how it looks - it make a huge difference for long book titles and I really don't care at all about the file type/size info, setting it to 1px makes it practically invisible and allows for plenty of title space!

It also allows for longer subtitles - I use this area for genre and word count info (via calibre) and some of my fiction books can be in 4 or 5 genres making a rather long subtitle. Anyway I'm very pleased
Attached Thumbnails
Click image for larger version

Name:	IMG_6369.jpg
Views:	307
Size:	750.3 KB
ID:	195103  
allanahk is offline   Reply With Quote
Old 07-18-2022, 02:22 AM   #855
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by allanahk View Post
I've been tinkering a bit more with the beta patch settings and settled (for now) on the following:
- title font size unchanged
- file type/size font size = 1px
- margin gap as specified in patch code post

I've attached a quick photo of how it looks - it make a huge difference for long book titles and I really don't care at all about the file type/size info, setting it to 1px makes it practically invisible and allows for plenty of title space!

It also allows for longer subtitles - I use this area for genre and word count info (via calibre) and some of my fiction books can be in 4 or 5 genres making a rather long subtitle. Anyway I'm very pleased

Are these books from kobo store? I only have sideloaded books and the "Nonfiction | 190k words" are not shown on my kobo.

Can i make them appear via calibre?
Deobulakenyo is offline   Reply With Quote
Reply

Tags
kobopatch, patches, patching, request, requests


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for PW3 kernel [posted in another thread] mustdie Kindle Developer's Corner 5 10-21-2015 04:28 PM
Kobobooks.com future feature request thread Mrs_Often Kobo Reader 47 11-08-2012 11:59 AM
[Old Thread] Calibre 'feature request' thread Waba Calibre 2 02-10-2010 07:52 PM
Feature request thread? Dahak Calibre 1 08-02-2009 12:51 AM
3rd party software request thread Adam B. iRex 23 11-28-2008 01:08 PM


All times are GMT -4. The time now is 12:15 AM.


MobileRead.com is a privately owned, operated and funded community.