View Single Post
Old 12-04-2022, 11:40 PM   #42
AnAccountName
Junior Member
AnAccountName began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2021
Device: Kobo Libra 2
Quote:
Originally Posted by jackie_w View Post
Following a request in the kobopatch request thread here is a beta patch for anyone who would prefer to see the names in the MyBooks Authors List and/or Collections List without the italics. I've tested in the current firmware, 4.34.20097, but it should work equally well in any firmware released in 2022.

If you decide to try it please leave any comments in this thread. I'll use any feedback (or lack thereof) to decide whether to include it in the standard kobopatch pack for future firmwares.

Copy into your copy of nickel.yaml (or wherever you normally store your customised nickel.yaml patches).
Spoiler:
Code:
beta Customise Authors List and Collections List names:
  - Enabled: no
  - Description: Change font style of MyBooks Authors/Collections names
  
  # Part 1: Authors List name
  - FindZlib: "AuthorsListWidget" # qss/AuthorsListWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # #hTitle Author name label to non-italic
        - Find:    "#hTitle {\n  qproperty-maxNumLines: 1;\n}"
          Replace: "#hTitle {\n  qproperty-maxNumLines:1; font-style:normal;\n}"
  
  # Part 2: Collections List name
  - FindZlib: "GenericListWidget" # qss/GenericListWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # #hTitle Collection name label to non-italic
        - Find:    "#hTitle {\n  qproperty-maxNumLines: 1;\n}"
          Replace: "#hTitle {\n  qproperty-maxNumLines:1; font-style:normal;\n}"
Hi, thank you so so so much!!!!! I just tried it and it works perfectly with my software.
AnAccountName is offline   Reply With Quote