Guest User

ICE patch

a guest
Dec 18th, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 2.49 KB | Source Code | 0 0
  1. --- a/usr/share/lipstick-jolla-home-qt5/lockscreen/LockItem.qml 2024-12-18 07:44:34.822956100 +0100
  2. +++ b/usr/share/lipstick-jolla-home-qt5/lockscreen/LockItem.qml 2024-12-19 02:42:49.930051784 +0100
  3. @@ -14,6 +14,7 @@
  4.  import Nemo.DBus 2.0
  5.  import com.jolla.lipstick 0.1
  6.  import org.nemomobile.lipstick 0.1
  7. +import org.nemomobile.configuration 1.0
  8.  import "../backgrounds"
  9.  import "../main"
  10.  import "../statusarea"
  11. @@ -117,6 +118,17 @@
  12.          enabled: !lockScreen.lowPowerMode && lockScreen.locked && !lockScreen.panning
  13.          onClicked: hintEdges()
  14.      }
  15. +    
  16. +    ConfigurationGroup {
  17. +        id: config
  18. +        path: "/desktop/lipstick-jolla-home/devicelock/customText"
  19. +        property string firstLine: []
  20. +        property string secondLine: []
  21. +        property string thirdLine: []
  22. +        property string fourthLine: []
  23. +        property int fontSize: Theme.fontSizeLarge
  24. +        property real lineSpacing: 1.0
  25. +}
  26.  
  27.      ContrastBackground {
  28.          id: centerBackground
  29. @@ -128,8 +140,8 @@
  30.          x: twoColumnMode ? screenY : (lockItem.width - width) / 2
  31.          y: twoColumnMode ? ((Screen.width - height) / 2)
  32.                           : screenY
  33. -        width: Math.max(clock.width, weatherIndicator.width)
  34. -        height: clock.height + weatherIndicator.height
  35. +        width: Math.max(clock.width, weatherIndicator.width, if_found.width)
  36. +        height: clock.height + weatherIndicator.height + (Theme.paddingLarge * 2) + (if_found.height * 1.1)
  37.  
  38.          opacity: Math.min(clock.transitionOpacity, clock.unlockOpacity)
  39.  
  40. @@ -229,6 +241,25 @@
  41.              temperatureFontPixelSize: clock.weekdayFont.pixelSize
  42.              active: visible
  43.          }
  44. +        
  45. +        Label {
  46. +          id: if_found
  47. +          
  48. +          anchors {
  49. +              horizontalCenter: clock.horizontalCenter
  50. +              top: weatherIndicator.bottom
  51. +              topMargin: Theme.paddingLarge * 2
  52. +              }
  53. +              
  54. +          font.pixelSize: config.fontSize
  55. +          lineHeightMode: Text.ProportionalHeight
  56. +          lineHeight: config.lineSpacing
  57. +          color: lockScreen.textColor
  58. +          textFormat: Text.RichText
  59. +          horizontalAlignment: Text.AlignHCenter
  60. +          text: (config.firstLine ? config.firstLine + "<br>" : "") + (config.secondLine ? config.secondLine + "<br>" : "") + (config.thirdLine ? config.thirdLine + "<br>" : "") + (config.fourthLine ? config.fourthLine : "")
  61. +          }
  62. +
  63.      }
  64.  
  65.      ContrastBackground {
  66.  
Advertisement
Add Comment
Please, Sign In to add comment