View Single Post
Old 11-16-2019, 08:29 AM   #381
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,257
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by BenChen View Post
I had a custom nickel.yaml patch that resized the info panel (the one that appears when the device goes into standby). But the 4.18.13737 update appears to have removed all the CSS lines that the patch used.

Did Kobo do something to hide the CSS? Or did it get moved?
<snip>
Note that I was only using the Dragon lines with my GloHD.

Can anyone help? Thanks in advance!
I think the only thing stopping your custom patch working in 4.18.13737 is the first Find/Replace, i.e. the line beginning:
Code:
- {Find: "#batteryStatus[localeName=\"ja\"]
Kobo have added an extra Chinese locale (zh-HK) so this line is no longer correct. However, based on what you are actually changing in this patch I don't think you need this line at all, so just delete it. It's only there to free up some space if the patch needs extra code to be added. The changes you've posted don't need any extra.


In case you're interested ...

If you only need the Dragon settings I think your custom patch could be much simplified to the following and should work for all these models: AuraHD, H2O, H2Ov2, GloHD, ClaraHD.

Spoiler:
Code:
Resize info panel:
  - Enabled: yes
  - Description: |
      Custom patch to change the width of the info panel.
  - FindZlib: "#infoWidget"
  - ReplaceZlibGroup:
      Replacements:
          # #infoWidget reduce width
        - {Find: "width: 470px;", Replace: "width: 235px;"}  #Dragon
          # #infoWidget, #infoFrame: reduce top/bottom/right margins
        - {Find: "Margin: 22px;", Replace: "Margin: 11px;"}  #Dragon
          # #infoFrame: reduce left margin
        - {Find: "leftMargin: 44px;", Replace: "leftMargin: 22px;"}  #Dragon
jackie_w is offline   Reply With Quote