Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-21-2026, 07:07 PM   #16
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,798
Karma: 83105959
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: For patch to increase chapter progress chart size, it makes it bars skinny. Is there way to make them thicker?
ownedbycats is offline   Reply With Quote
Old 04-21-2026, 07:39 PM   #17
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: 83,406
Karma: 153646249
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 ownedbycats View Post
Question: For patch to increase chapter progress chart size, it makes it bars skinny. Is there way to make them thicker?
Edit nickel.yaml and find the patch. It should be obvious what to change.
JSWolf is offline   Reply With Quote
Old 04-22-2026, 01:23 PM   #18
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,798
Karma: 83105959
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I see this:

Code:
  - ReplaceZlibGroup:
      Replacements:
      # Top padding is already set to 15px, 25px, 33px, vertical aligned to middle.
      # Progress chart bar sizes:
      - Find:    "#chapterSizes[qApp_deviceIsTrilogy=true] {\n  max-height: 56px;\n  min-height: 56px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsTrilogy=true] {\n  max-height: 90px;\n  min-height: 90px;\n  min-width: 385px;\n  max-width: 385px;\n}"
      - Find:    "#chapterSizes[qApp_deviceIsPhoenix=true] {\n  max-height: 70px;\n  min-height: 70px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsPhoenix=true] {\n  max-height: 130px;\n  min-height: 130px;\n  min-width: 495px;\n  max-width: 495px;\n}"
      - Find:    "#chapterSizes[qApp_deviceIsDragon=true] {\n  max-height: 100px;\n  min-height: 100px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsDragon=true] {\n  max-height: 170px;\n  min-height: 170px;\n  min-width: 678px;\n  max-width: 678px;\n}"
      - Find:    "#chapterSizes[qApp_deviceIsDaylight=true] {\n  max-height: 130px;\n  min-height: 130px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsDaylight=true] {\n  max-height: 215px;\n  min-height: 215px;\n  min-width: 865px;\n  max-width: 865px;\n}"
Thing is, the width seems pretty big for the skinny bars
ownedbycats is offline   Reply With Quote
Old 04-22-2026, 01:35 PM   #19
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: 83,406
Karma: 153646249
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 ownedbycats View Post
I see this:

Code:
  - ReplaceZlibGroup:
      Replacements:
      # Top padding is already set to 15px, 25px, 33px, vertical aligned to middle.
      # Progress chart bar sizes:
      - Find:    "#chapterSizes[qApp_deviceIsTrilogy=true] {\n  max-height: 56px;\n  min-height: 56px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsTrilogy=true] {\n  max-height: 90px;\n  min-height: 90px;\n  min-width: 385px;\n  max-width: 385px;\n}"
      - Find:    "#chapterSizes[qApp_deviceIsPhoenix=true] {\n  max-height: 70px;\n  min-height: 70px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsPhoenix=true] {\n  max-height: 130px;\n  min-height: 130px;\n  min-width: 495px;\n  max-width: 495px;\n}"
      - Find:    "#chapterSizes[qApp_deviceIsDragon=true] {\n  max-height: 100px;\n  min-height: 100px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsDragon=true] {\n  max-height: 170px;\n  min-height: 170px;\n  min-width: 678px;\n  max-width: 678px;\n}"
      - Find:    "#chapterSizes[qApp_deviceIsDaylight=true] {\n  max-height: 130px;\n  min-height: 130px;\n}"
        Replace: "#chapterSizes[qApp_deviceIsDaylight=true] {\n  max-height: 215px;\n  min-height: 215px;\n  min-width: 865px;\n  max-width: 865px;\n}"
Thing is, the width seems pretty big for the skinny bars
Try larger numbers and see if that helps. If not, then I'd say the size you have is as wide as you're allowed. But it can't hurt to try.
JSWolf is offline   Reply With Quote
Old 04-22-2026, 01:48 PM   #20
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,324
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by ownedbycats View Post
Question: For patch to increase chapter progress chart size, it makes it bars skinny. Is there way to make them thicker?
Quote:
Originally Posted by JSWolf View Post
Edit nickel.yaml and find the patch. It should be obvious what to change.
I don't believe either of you are correct in your understanding of patch
Increase size of kepub/audio chapter progress chart which patches 2 nickel CSS resources (ReadingMenuStatsView.qss and AudioMenuStatsView.qss)

The existing patch (unedited) does 2 things:
  1. Increases the height of each bar
  2. Increases the number of visible bars by increasing the horizontal space available to display them.
I believe the width of each chapter bar remains unchanged.


@ownedbycats,

If you also want to change the width of each bar you would need an additional nickel custom patch for a different nickel CSS resource, namely PagingBarGraphWidget.qss.

You can experiment with this test patch for your LibraH2O. Put it wherever you keep your other custom nickel patches. Edit the bold, red bit until you get the look you want:
Code:
test Change width of kepub/audio chapter bars:
  - Enabled: no
  - Description: |
        Make kepub chapter bars thinner/thicker to increase/decrease number of visible bars
  - FindZlib: "#barGraph" # qss/PagingBarGraphWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # #barGraph - change bar width and/or bar spacing
          # Dragon
          # No specific Alyssum/Nova/Storm values. Use Dragon values for Clara*, Libra*
        - Find:    "#barGraph[qApp_deviceIsDragon=true] {\n  qproperty-barWidth: 11;\n  qproperty-spacing: 3;\n}"
          Replace: "#barGraph[qApp_deviceIsDragon=true] {\n  qproperty-barWidth: 15;\n  qproperty-spacing: 3;\n}"
jackie_w is offline   Reply With Quote
Old 04-22-2026, 02:20 PM   #21
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: 83,406
Karma: 153646249
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 jackie_w View Post
I don't believe either of you are correct in your understanding of patch
Increase size of kepub/audio chapter progress chart which patches 2 nickel CSS resources (ReadingMenuStatsView.qss and AudioMenuStatsView.qss)

The existing patch (unedited) does 2 things:
  1. Increases the height of each bar
  2. Increases the number of visible bars by increasing the horizontal space available to display them.
I believe the width of each chapter bar remains unchanged.


@ownedbycats,

If you also want to change the width of each bar you would need an additional nickel custom patch for a different nickel CSS resource, namely PagingBarGraphWidget.qss.

You can experiment with this test patch for your LibraH2O. Put it wherever you keep your other custom nickel patches. Edit the bold, red bit until you get the look you want:
Code:
test Change width of kepub/audio chapter bars:
  - Enabled: no
  - Description: |
        Make kepub chapter bars thinner/thicker to increase/decrease number of visible bars
  - FindZlib: "#barGraph" # qss/PagingBarGraphWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # #barGraph - change bar width and/or bar spacing
          # Dragon
          # No specific Alyssum/Nova/Storm values. Use Dragon values for Clara*, Libra*
        - Find:    "#barGraph[qApp_deviceIsDragon=true] {\n  qproperty-barWidth: 11;\n  qproperty-spacing: 3;\n}"
          Replace: "#barGraph[qApp_deviceIsDragon=true] {\n  qproperty-barWidth: 15;\n  qproperty-spacing: 3;\n}"
Do you want me to add this to the current patches?
JSWolf is offline   Reply With Quote
Old 04-22-2026, 02:54 PM   #22
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,324
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Do you want me to add this to the current patches?
Not really. The quick-and-dirty test patch only covers a subset of devices - AuraHD/AuraH2O/AuraH2O2/GloHD/Clara*/Libra*. To become "official" it would need to be expanded to include the rest of the Kobo devices. This wouldn't be difficult but @ownedbycats is the only person to register any interest in all the years we've had kobopatch.

This may be "famous last words" but FWIW I wouldn't be surprised to find that the test patch keeps working as-is through any future versions (if any) of fw4.38.xxxxx. The kepub/audio chapter barchart CSS has rarely (if ever) changed since Kobo audiobooks were launched.
jackie_w is offline   Reply With Quote
Old 04-22-2026, 03:14 PM   #23
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: 83,406
Karma: 153646249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
OK, I'll just leave it here and anyone who wants it can add it in.
JSWolf is offline   Reply With Quote
Old 04-22-2026, 05:30 PM   #24
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,798
Karma: 83105959
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It worked! thanks
ownedbycats is offline   Reply With Quote
Old 05-03-2026, 12:18 PM   #25
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 1,096
Karma: 12503116
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, reMarkable PaperPro
Bad eyesight. This question was supposed to be here:

I have a question regarding the kobopatch.yaml. There are huge swaths marked as
Code:
## Does not work
.

Is it just the line below that doesn't work or how is this to be interpreted?

Specifically, I want to patch the
Code:
Unify font sizes
, is this part broken?
rantanplan is offline   Reply With Quote
Old 05-03-2026, 02:37 PM   #26
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: 51,952
Karma: 180003020
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
As far as I know, that only applies to the patch immediately below the warning.

Since Unify Font Sizes is one of the two patches I use, I can safely say that it is working for me.
DNSB is online now   Reply With Quote
Old 05-04-2026, 05:11 AM   #27
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: 83,406
Karma: 153646249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I just had a look at there is no comment that Unify font sizes does not work.

When you see the comment ##Does not work, it only applies to the patch directly underneath the comment.
JSWolf is offline   Reply With Quote
Old 05-04-2026, 06:29 AM   #28
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 1,096
Karma: 12503116
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, reMarkable PaperPro
Thank you for the clarification.
rantanplan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware 4.45.23684 geek1011 Kobo Reader 27 05-05-2026 08:53 PM
Unofficial Patches for 4.38.23429 JSWolf Kobo Developer's Corner 65 12-11-2025 06:30 AM
Do you patch your Kobo? How many patches do you use? Sirtel Kobo Reader 108 10-25-2019 08:41 AM
Glo What hacks/patches etc do I need? catsknit Kobo Reader 23 04-02-2018 10:38 AM


All times are GMT -4. The time now is 12:50 PM.


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