View Single Post
Old 12-04-2022, 06:03 PM   #41
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
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}"
jackie_w is offline   Reply With Quote