View Single Post
Old 12-12-2020, 06:33 PM   #276
mxbndr
Grateful Plebe
mxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavens
 
Posts: 39
Karma: 13638
Join Date: Dec 2012
Device: Kindle 3, Kobo Libra H2O
Is it possible to add the code to the libnickel.so.1.0.0.yaml file? I'm trying to patch this on my Libra H20. This is the code I mean (presumably with tweaks for the Libra H2O):

Code:
<Patch>
patch_name = `Changing the info panel in full size screensaver`
patch_enable = `no`
# Multi-version patch: 3.13.1-3.19.5761+
#
## Warning if you charge in sleep mode the text "sleeping" is cut
# https://www.mobileread.com/forums/sh...7#post=3220397
#
find_base_address = `QWidget[qApp_deviceIsDragon="true"] {\n\tmin-height: 1000px;`
#QWidget-height from the top-Kobo Aura HD\H2O
#To move the info pannel to the botten corner change 0000px to 1290px 
replace_string = 0027, `min-height: 1000px;`, `min-height: 0000px;`
replace_string = 003C, `max-height: 1000px;`, `max-height: 0000px;`
#
#QWidget-height from the top-Kobo glo+Kobo Aura
#To move the info pannel to the botten corner change 000px to 904px 
replace_string = 007B, `min-height: 680px;`, `min-height: 000px;`
replace_string = 008F, `max-height: 680px;`, `max-height: 000px;`
#
#QWidget-height from the top-Kobo Mini
#To move the info pannel to the botten corner change 000px to 700px 
replace_string = 00CD, `min-height: 510px;`, `min-height: 000px;`
replace_string = 00E1, `max-height: 510px;`, `max-height: 000px;`
#
#
find_base_address = `#infoWidget {\n\tbackground-color: rgba(255, 255, 255, 234);`
#background-color transparent
replace_string = 000F, `background-color: rgba(255, 255, 255, 234);`, `background-color: rgba(255, 255, 255, 120);`
replace_string = 0062, `background-color: rgba(0, 0, 0, 234);`, `background-color: rgba(0, 0, 0, 120);`
#
#
find_base_address = `#infoWidget[qApp_deviceIsDragon="true"] {\n\tmin-width: 470px;`
# infoWidget-box width height-Kobo Aura HD\H2O
replace_string = 002B, `min-width: 470px;`, `min-width: 350px;`
replace_string = 003E, `min-height: 260px;`, `min-height: 150px;`
replace_string = 0052, `max-height: 260px;`, `max-height: 150px;`
# infoWidget-box width height-Kobo glo+Kobo Aura
replace_string = 0094, `min-width: 380px;`, `min-width: 260px;`
replace_string = 00A7, `min-height: 230px;`, `min-height: 120px;`
replace_string = 00BB, `max-height: 230px;`, `max-height: 120px;`
# infoWidget-box width height-Kobo Mini  
replace_string = 00FD, `min-width: 300px;`, `min-width: 200px;`
replace_string = 0110, `min-height: 160px;`, `min-height: 100px;`
replace_string = 0124, `max-height: 160px;`, `max-height: 100px;`
#
#
find_base_address = `#infoFrame {\n\tborder-top: 1px solid black;`
# infoFrame-Margin-Kobo Aura HD\H2O
replace_string = 0144, `qproperty-leftMargin: 60;`, `qproperty-leftMargin: 02;`
replace_string = 015F, `qproperty-topMargin: 25;`, `qproperty-topMargin: 02;`
replace_string = 0179, `qproperty-bottomMargin: 25;`, `qproperty-bottomMargin: 02;`
# infoFrame-Margin-Kobo glo+Kobo Aura
replace_string = 01C3, `qproperty-leftMargin: 40;`, `qproperty-leftMargin: 02;`
replace_string = 01DE, `qproperty-topMargin: 20;`, `qproperty-topMargin: 02;`
replace_string = 01F8, `qproperty-bottomMargin: 20;`, `qproperty-bottomMargin: 02;`
# infoFrame-Margin-Kobo Mini 
replace_string = 0242, `qproperty-leftMargin: 30;`, `qproperty-leftMargin: 02;`
replace_string = 025D, `qproperty-topMargin: 10;`, `qproperty-topMargin: 02;`
replace_string = 0277, `qproperty-bottomMargin: 10;`, `qproperty-bottomMargin: 02;`
</Patch>
Perhaps this could fit in with the existing "Allow showing info panel on random screensaver" patch? That's this one:

Code:
Allow showing info panel on random screensaver:
  - Enabled: yes
  - Description: |
      See https://www.mobileread.com/forums/showthread.php?t=321609. This patch
      allows showing the info panel even when using a random screensaver image
      from .kobo/screensaver (note that full-screen covers needs to be enabled
      for the screensaver to show).
  - ReplaceBytes:
      Base: "PowerViewController::updateCover()"
      Offset: 252
      FindInstBLX: {SymPLT: "FullScreenDragonPowerView::setInfoPanelVisible(bool)"}
      ReplaceInstNOP: true
mxbndr is offline   Reply With Quote