Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2020, 07:03 PM   #676
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
On other thing I am trying to accomplish: I found this thread for cleaning up the info panel when the device is asleep or powered off and using a custom screensaver: https://www.mobileread.com/forums/sh...7#post=3220397

I have been struggling to translate this into something that the yaml files can understand. I attempted this:

Code:
Changing the info panel in full size screensaver:
  - Enabled: yes
  - Description:
        # 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/showthread.php?p=3220397#post=3220397
  - ReplaceBytes:
        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;`
but it crashes the .bat file. Any ideas on how to do this? Also, my device is obviously none of the ones above, but I'm hoping I can just mess with the pixel settings to fix any issues with that.
mxbndr is offline   Reply With Quote
Old 12-12-2020, 07:11 PM   #677
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
Quote:
Originally Posted by JSWolf View Post
Just ugly as sin. If you ever gave me a Reader that looked like that and was as dumbed down as that, I'd throw it away.

Why do you think this person is stupid?
I get it, JSWolf, you don't agree with my hypotheses about the user experience via a simpler UI, you've said as much on several posts on this site. I'm trying to be humble about my requests because I don't know a lot about how the patches work, and I'm grateful for the help the folks here are providing.

Having said that, when I read your replies I mostly just feel bad for the project I'm working on, so I'd appreciate it if you didn't keep implying my approach is wrong. If you have ideas for how I can help my elderly veteran friend that aren't "this person is stupid" or how if your mother can do it then everyone else should be able to, as well, I'm eager to listen.
mxbndr is offline   Reply With Quote
Advert
Old 12-12-2020, 08:24 PM   #678
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by mxbndr View Post
On other thing I am trying to accomplish: I found this thread for cleaning up the info panel when the device is asleep or powered off and using a custom screensaver: https://www.mobileread.com/forums/sh...7#post=3220397

I have been struggling to translate this into something that the yaml files can understand.
The old patches in those links are really too old to be of much use for fw 4.25.

The CSS resource that needs to be patched to change the look of the full-sized sleep screen is FullScreenDragonPowerView.qss. It's current content in fw 4.25 is:
Spoiler:
Code:
* {
  background: transparent;
  color: black;
}
*[powerOffView=true] {
  color: white;
}
#infoWidget[qApp_deviceIsTrilogy=true] {
  max-width: 300px;
  min-width: 300px;
}
#infoWidget[qApp_deviceIsPhoenix=true] {
  max-width: 380px;
  min-width: 380px;
}
#infoWidget[qApp_deviceIsDragon=true] {
  max-width: 470px;
  min-width: 470px;
}
#infoWidget[qApp_deviceIsDaylight=true] {
  max-width: 611px;
  min-width: 611px;
}
#infoWidget[qApp_deviceIsTrilogy=true],
#infoFrame[qApp_deviceIsTrilogy=true] {
  qproperty-topMargin: 12px;
  qproperty-bottomMargin: 12px;
}
#infoWidget[qApp_deviceIsPhoenix=true],
#infoFrame[qApp_deviceIsPhoenix=true] {
  qproperty-topMargin: 16px;
  qproperty-bottomMargin: 16px;
}
#infoWidget[qApp_deviceIsDragon=true],
#infoFrame[qApp_deviceIsDragon=true] {
  qproperty-topMargin: 22px;
  qproperty-bottomMargin: 22px;
}
#infoWidget[qApp_deviceIsDaylight=true],
#infoFrame[qApp_deviceIsDaylight=true] {
  qproperty-topMargin: 28px;
  qproperty-bottomMargin: 28px;
}
#infoWidget[qApp_deviceIsStorm=true],
#infoFrame[qApp_deviceIsStorm=true] {
  qproperty-topMargin: 25px;
  qproperty-bottomMargin: 25px;
}
#infoWidget[qApp_deviceIsTrilogy=true],
#infoFrame[qApp_deviceIsTrilogy=true] {
  qproperty-rightMargin: 12px;
}
#infoWidget[qApp_deviceIsPhoenix=true],
#infoFrame[qApp_deviceIsPhoenix=true] {
  qproperty-rightMargin: 16px;
}
#infoWidget[qApp_deviceIsDragon=true],
#infoFrame[qApp_deviceIsDragon=true] {
  qproperty-rightMargin: 22px;
}
#infoWidget[qApp_deviceIsDaylight=true],
#infoFrame[qApp_deviceIsDaylight=true] {
  qproperty-rightMargin: 28px;
}
#infoWidget[qApp_deviceIsStorm=true],
#infoFrame[qApp_deviceIsStorm=true] {
  qproperty-rightMargin: 25px;
}
#infoFrame {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}
#infoFrame[qApp_deviceIsTrilogy=true] {
  qproperty-leftMargin: 24px;
}
#infoFrame[qApp_deviceIsPhoenix=true] {
  qproperty-leftMargin: 32px;
}
#infoFrame[qApp_deviceIsDragon=true] {
  qproperty-leftMargin: 44px;
}
#infoFrame[qApp_deviceIsDaylight=true] {
  qproperty-leftMargin: 56px;
}
#infoFrame[qApp_deviceIsStorm=true] {
  qproperty-leftMargin: 50px;
}
#infoFrame[powerOffView=true] {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  border-right: 1px solid white;
}
#batteryStatus {
  font-family: Georgia;
}
#batteryStatus[localeName="ja"] {
  font-family: Sans-SerifJP, sans-serif;
  font-style: normal;
}
#batteryStatus[localeName="zh"] {
  font-family: Sans-SerifZH-Simplified, sans-serif;
  font-style: normal;
}
#batteryStatus[localeName="zh-HK"] {
  font-family: Sans-SerifZH-Traditional, sans-serif;
  font-style: normal;
}
#batteryStatus[localeName="zh-TW"] {
  font-family: Sans-SerifZH-Traditional, sans-serif;
  font-style: normal;
}
#batteryStatus[qApp_deviceIsTrilogy=true] {
  font-size: 17px;
}
#batteryStatus[qApp_deviceIsPhoenix=true] {
  font-size: 22px;
}
#batteryStatus[qApp_deviceIsDragon=true] {
  font-size: 26px;
}
#batteryStatus[qApp_deviceIsAlyssum=true] {
  font-size: 30px;
}
#batteryStatus[qApp_deviceIsNova=true] {
  font-size: 30px;
}
#batteryStatus[qApp_deviceIsStorm=true] {
  font-size: 30px;
}
#batteryStatus[qApp_deviceIsDaylight=true] {
  font-size: 34px;
}
#batteryStatus[qApp_deviceIsTrilogy=true] {
  margin-left: 12px;
}
#batteryStatus[qApp_deviceIsPhoenix=true] {
  margin-left: 16px;
}
#batteryStatus[qApp_deviceIsDragon=true] {
  margin-left: 22px;
}
#batteryStatus[qApp_deviceIsDaylight=true] {
  margin-left: 28px;
}
#batteryStatus[qApp_deviceIsStorm=true] {
  margin-left: 25px;
}
#progressLabel[qApp_deviceIsTrilogy=true] {
  margin-top: 6px;
}
#progressLabel[qApp_deviceIsPhoenix=true] {
  margin-top: 8px;
}
#progressLabel[qApp_deviceIsDragon=true] {
  margin-top: 10px;
}
#progressLabel[qApp_deviceIsDaylight=true] {
  margin-top: 13px;
}
#progressLabel[qApp_deviceIsStorm=true] {
  margin-top: 11px;
}
#batteryStatus[iconView=true][qApp_deviceIsTrilogy=true] {
  margin-left: 6px;
}
#batteryStatus[iconView=true][qApp_deviceIsPhoenix=true] {
  margin-left: 8px;
}
#batteryStatus[iconView=true][qApp_deviceIsDragon=true] {
  margin-left: 10px;
}
#batteryStatus[iconView=true][qApp_deviceIsDaylight=true] {
  margin-left: 13px;
}
#batteryStatus[iconView=true][qApp_deviceIsStorm=true] {
  margin-left: 11px;
}


This is a personal (i.e. not published in standard kobopatch pack) patch of mine. It probably doesn't meet your needs but perhaps there's enough to get your experiments started.
Spoiler:
Code:
jackie_w Screensaver full:
  - Enabled: no
  - Description: |
      FullScreenDragonPowerView.qss
      On fullscreen sleep screensaver reduce size of infoWidget
      Make infoWidget invisible when Sleeping, visible when Powered Off
      N.B: Not suitable for Japanese/Chinese locale users
  - FindZlib: "#infoFrame"
  - ReplaceZlibGroup:
      Replacements:
        # free some space
        - {Find: "#batteryStatus[localeName=\"ja\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#batteryStatus[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#batteryStatus[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#batteryStatus[localeName=\"zh-TW\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        # #infoWidget reduce width
        - {Find: "width: 470px;", Replace: "width: 320px;"} #Dragon
        - {Find: "width: 611px;", Replace: "width: 390px;"} #Daylight
        # #infoWidget, #infoFrame: reduce top/bottom/right margins
        - {Find: "Margin: 22px;", Replace: "Margin: 5px;"}  #Dragon
        - {Find: "Margin: 28px;", Replace: "Margin: 7px;"}  #Daylight
        # #infoFrame: remove Sleeping borders
        - {Find: "#infoFrame {\n  border-top: 1px solid black;\n  border-bottom: 1px solid black;\n  border-right: 1px solid black;\n}\n", Replace: "\n"}
        # #infoFrame: reduce left margin
        - {Find: "leftMargin: 44px;", Replace: "leftMargin: 5px;"}  # Dragon
        - {Find: "leftMargin: 56px;", Replace: "leftMargin: 7px;"}  # Daylight
        # #infoWidget size reduced to zero when Sleeping
        - Find:    "#batteryStatus {\n  font-family: Georgia;\n}"
          Replace: "#infoWidget[powerOffView=false] {\n  min-width:0px; max-width:0px;\n  min-height:0px; max-height:0px;\n  qproperty-topMargin:0px; qproperty-bottomMargin:0px;\n  qproperty-leftMargin:0px; qproperty-rightMargin:0px;\n}\n#batteryStatus {font-family:Georgia;}"
jackie_w is offline   Reply With Quote
Old 12-12-2020, 08:43 PM   #679
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
Quote:
Originally Posted by jackie_w View Post
The old patches in those links are really too old to be of much use for fw 4.25.

The CSS resource that needs to be patched to change the look of the full-sized sleep screen is FullScreenDragonPowerView.qss. It's current content in fw 4.25 is:
Spoiler:
Code:
* {
  background: transparent;
  color: black;
}
*[powerOffView=true] {
  color: white;
}
#infoWidget[qApp_deviceIsTrilogy=true] {
  max-width: 300px;
  min-width: 300px;
}
#infoWidget[qApp_deviceIsPhoenix=true] {
  max-width: 380px;
  min-width: 380px;
}
#infoWidget[qApp_deviceIsDragon=true] {
  max-width: 470px;
  min-width: 470px;
}
#infoWidget[qApp_deviceIsDaylight=true] {
  max-width: 611px;
  min-width: 611px;
}
#infoWidget[qApp_deviceIsTrilogy=true],
#infoFrame[qApp_deviceIsTrilogy=true] {
  qproperty-topMargin: 12px;
  qproperty-bottomMargin: 12px;
}
#infoWidget[qApp_deviceIsPhoenix=true],
#infoFrame[qApp_deviceIsPhoenix=true] {
  qproperty-topMargin: 16px;
  qproperty-bottomMargin: 16px;
}
#infoWidget[qApp_deviceIsDragon=true],
#infoFrame[qApp_deviceIsDragon=true] {
  qproperty-topMargin: 22px;
  qproperty-bottomMargin: 22px;
}
#infoWidget[qApp_deviceIsDaylight=true],
#infoFrame[qApp_deviceIsDaylight=true] {
  qproperty-topMargin: 28px;
  qproperty-bottomMargin: 28px;
}
#infoWidget[qApp_deviceIsStorm=true],
#infoFrame[qApp_deviceIsStorm=true] {
  qproperty-topMargin: 25px;
  qproperty-bottomMargin: 25px;
}
#infoWidget[qApp_deviceIsTrilogy=true],
#infoFrame[qApp_deviceIsTrilogy=true] {
  qproperty-rightMargin: 12px;
}
#infoWidget[qApp_deviceIsPhoenix=true],
#infoFrame[qApp_deviceIsPhoenix=true] {
  qproperty-rightMargin: 16px;
}
#infoWidget[qApp_deviceIsDragon=true],
#infoFrame[qApp_deviceIsDragon=true] {
  qproperty-rightMargin: 22px;
}
#infoWidget[qApp_deviceIsDaylight=true],
#infoFrame[qApp_deviceIsDaylight=true] {
  qproperty-rightMargin: 28px;
}
#infoWidget[qApp_deviceIsStorm=true],
#infoFrame[qApp_deviceIsStorm=true] {
  qproperty-rightMargin: 25px;
}
#infoFrame {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
}
#infoFrame[qApp_deviceIsTrilogy=true] {
  qproperty-leftMargin: 24px;
}
#infoFrame[qApp_deviceIsPhoenix=true] {
  qproperty-leftMargin: 32px;
}
#infoFrame[qApp_deviceIsDragon=true] {
  qproperty-leftMargin: 44px;
}
#infoFrame[qApp_deviceIsDaylight=true] {
  qproperty-leftMargin: 56px;
}
#infoFrame[qApp_deviceIsStorm=true] {
  qproperty-leftMargin: 50px;
}
#infoFrame[powerOffView=true] {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  border-right: 1px solid white;
}
#batteryStatus {
  font-family: Georgia;
}
#batteryStatus[localeName="ja"] {
  font-family: Sans-SerifJP, sans-serif;
  font-style: normal;
}
#batteryStatus[localeName="zh"] {
  font-family: Sans-SerifZH-Simplified, sans-serif;
  font-style: normal;
}
#batteryStatus[localeName="zh-HK"] {
  font-family: Sans-SerifZH-Traditional, sans-serif;
  font-style: normal;
}
#batteryStatus[localeName="zh-TW"] {
  font-family: Sans-SerifZH-Traditional, sans-serif;
  font-style: normal;
}
#batteryStatus[qApp_deviceIsTrilogy=true] {
  font-size: 17px;
}
#batteryStatus[qApp_deviceIsPhoenix=true] {
  font-size: 22px;
}
#batteryStatus[qApp_deviceIsDragon=true] {
  font-size: 26px;
}
#batteryStatus[qApp_deviceIsAlyssum=true] {
  font-size: 30px;
}
#batteryStatus[qApp_deviceIsNova=true] {
  font-size: 30px;
}
#batteryStatus[qApp_deviceIsStorm=true] {
  font-size: 30px;
}
#batteryStatus[qApp_deviceIsDaylight=true] {
  font-size: 34px;
}
#batteryStatus[qApp_deviceIsTrilogy=true] {
  margin-left: 12px;
}
#batteryStatus[qApp_deviceIsPhoenix=true] {
  margin-left: 16px;
}
#batteryStatus[qApp_deviceIsDragon=true] {
  margin-left: 22px;
}
#batteryStatus[qApp_deviceIsDaylight=true] {
  margin-left: 28px;
}
#batteryStatus[qApp_deviceIsStorm=true] {
  margin-left: 25px;
}
#progressLabel[qApp_deviceIsTrilogy=true] {
  margin-top: 6px;
}
#progressLabel[qApp_deviceIsPhoenix=true] {
  margin-top: 8px;
}
#progressLabel[qApp_deviceIsDragon=true] {
  margin-top: 10px;
}
#progressLabel[qApp_deviceIsDaylight=true] {
  margin-top: 13px;
}
#progressLabel[qApp_deviceIsStorm=true] {
  margin-top: 11px;
}
#batteryStatus[iconView=true][qApp_deviceIsTrilogy=true] {
  margin-left: 6px;
}
#batteryStatus[iconView=true][qApp_deviceIsPhoenix=true] {
  margin-left: 8px;
}
#batteryStatus[iconView=true][qApp_deviceIsDragon=true] {
  margin-left: 10px;
}
#batteryStatus[iconView=true][qApp_deviceIsDaylight=true] {
  margin-left: 13px;
}
#batteryStatus[iconView=true][qApp_deviceIsStorm=true] {
  margin-left: 11px;
}


This is a personal (i.e. not published in standard kobopatch pack) patch of mine. It probably doesn't meet your needs but perhaps there's enough to get your experiments started.
Spoiler:
Code:
jackie_w Screensaver full:
  - Enabled: no
  - Description: |
      FullScreenDragonPowerView.qss
      On fullscreen sleep screensaver reduce size of infoWidget
      Make infoWidget invisible when Sleeping, visible when Powered Off
      N.B: Not suitable for Japanese/Chinese locale users
  - FindZlib: "#infoFrame"
  - ReplaceZlibGroup:
      Replacements:
        # free some space
        - {Find: "#batteryStatus[localeName=\"ja\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#batteryStatus[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#batteryStatus[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#batteryStatus[localeName=\"zh-TW\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        # #infoWidget reduce width
        - {Find: "width: 470px;", Replace: "width: 320px;"} #Dragon
        - {Find: "width: 611px;", Replace: "width: 390px;"} #Daylight
        # #infoWidget, #infoFrame: reduce top/bottom/right margins
        - {Find: "Margin: 22px;", Replace: "Margin: 5px;"}  #Dragon
        - {Find: "Margin: 28px;", Replace: "Margin: 7px;"}  #Daylight
        # #infoFrame: remove Sleeping borders
        - {Find: "#infoFrame {\n  border-top: 1px solid black;\n  border-bottom: 1px solid black;\n  border-right: 1px solid black;\n}\n", Replace: "\n"}
        # #infoFrame: reduce left margin
        - {Find: "leftMargin: 44px;", Replace: "leftMargin: 5px;"}  # Dragon
        - {Find: "leftMargin: 56px;", Replace: "leftMargin: 7px;"}  # Daylight
        # #infoWidget size reduced to zero when Sleeping
        - Find:    "#batteryStatus {\n  font-family: Georgia;\n}"
          Replace: "#infoWidget[powerOffView=false] {\n  min-width:0px; max-width:0px;\n  min-height:0px; max-height:0px;\n  qproperty-topMargin:0px; qproperty-bottomMargin:0px;\n  qproperty-leftMargin:0px; qproperty-rightMargin:0px;\n}\n#batteryStatus {font-family:Georgia;}"
mxbndr is offline   Reply With Quote
Old 12-12-2020, 08:52 PM   #680
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
Hmm, so when I put that into libnickel.so.1.0.0.yaml and enable it, the .bat file won't complete and so there is no .tgz file created. I looked at the log file and found this:

Code:
kobopatch.FindZlib index=3 line=1182
          |         FindZlib("#infoFrame") | hex:23696e666f4672616d65
          |         could not apply patch "jackie_w Screensaver full": line 1182: inst 3: FindZlib: could not find string
        --> could not apply patch "jackie_w Screensaver full": line 1182: inst 3: FindZlib: could not find string
Is there something I need to change? I'm game to experiment but I'm not sure how to first get it to a point that it processes normally so that I can analyze it.
mxbndr is offline   Reply With Quote
Advert
Old 12-12-2020, 08:55 PM   #681
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by mxbndr View Post
Hmm, so when I put that into libnickel.so.1.0.0.yaml and enable it, the .bat file won't complete and so there is no .tgz file created.
It's a patch for nickel.yaml not libnickel.so.1.0.0.yaml.
jackie_w is offline   Reply With Quote
Old 12-12-2020, 09:26 PM   #682
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
Quote:
Originally Posted by jackie_w View Post
It's a patch for nickel.yaml not libnickel.so.1.0.0.yaml.
Ah, my mistake. Is that something I could have figured out for myself?
mxbndr is offline   Reply With Quote
Old 12-13-2020, 08:45 AM   #683
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by mxbndr View Post
Ah, my mistake. Is that something I could have figured out for myself?
Only if you'd spent a lot of time using the patch system. From following your link I see why you thought it belonged in libnickel.so.1.0.0.yaml because that's where the relevant code was in 2015.

Since then Kobo have consolidated much of the GUI-related CSS stuff into nickel. A few small CSS streams still remain in libnickel.so.1.0.0, e.g. the one controlling the style of text content in the dictionary widget(s). Don't ask me to explain the rationale, because I can't.

TL, DNR: I should have been more explicit.
jackie_w is offline   Reply With Quote
Old 12-13-2020, 09:21 AM   #684
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: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@jackie_w do you know if the My Books a the bottom line of the home screen can have something else done with it? Since we have two of them, it would make sense if something else can be done with it.
JSWolf is offline   Reply With Quote
Old 12-13-2020, 10:43 AM   #685
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by JSWolf View Post
@jackie_w do you know if the My Books a the bottom line of the home screen can have something else done with it? Since we have two of them, it would make sense if something else can be done with it.
I don't know of any existing way to add/delete/change which Navbuttons exist in the footer.

Speaking with zero "Kobo insider" knowledge, I do wonder whether the fact that 'My Books' and 'Kobo Store' are now present in both Navbuttons and the Home 3x2 grid means that Kobo are due to review the whole Home screen layout situation again.

Cue the MR hyperbole if/when they do.
jackie_w is offline   Reply With Quote
Old 12-13-2020, 11:46 AM   #686
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by jackie_w View Post
jackie_w Screensaver full
Jackie,
and now the widget cannot be moved to the lower left (or right) corner, as before?

I didn’t look, just asking.
Semwize is offline   Reply With Quote
Old 12-13-2020, 12:43 PM   #687
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
Quote:
Originally Posted by jackie_w View Post
Only if you'd spent a lot of time using the patch system. From following your link I see why you thought it belonged in libnickel.so.1.0.0.yaml because that's where the relevant code was in 2015.

Since then Kobo have consolidated much of the GUI-related CSS stuff into nickel. A few small CSS streams still remain in libnickel.so.1.0.0, e.g. the one controlling the style of text content in the dictionary widget(s). Don't ask me to explain the rationale, because I can't.

TL, DNR: I should have been more explicit.
Thanks, that worked a charm. I've inferred that this code is for changing the size and font and colors of the infopanel, including it's border, as well as hiding it under certain conditions. Are there options for moving the infopanel around, as well? Or is that what the "Margins" options are for (rather than the little box that surrounds the infopanel)?
mxbndr is offline   Reply With Quote
Old 12-13-2020, 02:11 PM   #688
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by mxbndr View Post
Thanks, that worked a charm. I've inferred that this code is for changing the size and font and colors of the infopanel, including it's border, as well as hiding it under certain conditions. Are there options for moving the infopanel around, as well? Or is that what the "Margins" options are for (rather than the little box that surrounds the infopanel)?
There used to be options for moving the infopanel around, in the days when your original link was still valid. Unfortunately not anymore.
jackie_w is offline   Reply With Quote
Old 12-13-2020, 10:43 PM   #689
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
Quote:
Originally Posted by jackie_w View Post
There used to be options for moving the infopanel around, in the days when your original link was still valid. Unfortunately not anymore.
Got it, thanks for saving me the trouble. I wonder, is it instead possible to restore the older screensaver screen? The one with "Sleeping" etc at the top of the screen, and "X% read • Expires in Y days" etc at the bottom.
mxbndr is offline   Reply With Quote
Old 12-14-2020, 08:19 AM   #690
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by mxbndr View Post
Got it, thanks for saving me the trouble. I wonder, is it instead possible to restore the older screensaver screen? The one with "Sleeping" etc at the top of the screen, and "X% read • Expires in Y days" etc at the bottom.
Do you mean the 'not-fullscreen screensaver'? If so, that's just a standard checkbox in Settings>Energy saving and privacy
jackie_w is offline   Reply With Quote
Reply

Tags
kobopatch, patches, patching, request, requests


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for PW3 kernel [posted in another thread] mustdie Kindle Developer's Corner 5 10-21-2015 04:28 PM
Kobobooks.com future feature request thread Mrs_Often Kobo Reader 47 11-08-2012 11:59 AM
[Old Thread] Calibre 'feature request' thread Waba Calibre 2 02-10-2010 07:52 PM
Feature request thread? Dahak Calibre 1 08-02-2009 12:51 AM
3rd party software request thread Adam B. iRex 23 11-28-2008 01:08 PM


All times are GMT -4. The time now is 08:26 AM.


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