Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/usr/share/lipstick-jolla-home-qt5/lockscreen/LockItem.qml 2024-12-18 07:44:34.822956100 +0100
- +++ b/usr/share/lipstick-jolla-home-qt5/lockscreen/LockItem.qml 2024-12-19 02:42:49.930051784 +0100
- @@ -14,6 +14,7 @@
- import Nemo.DBus 2.0
- import com.jolla.lipstick 0.1
- import org.nemomobile.lipstick 0.1
- +import org.nemomobile.configuration 1.0
- import "../backgrounds"
- import "../main"
- import "../statusarea"
- @@ -117,6 +118,17 @@
- enabled: !lockScreen.lowPowerMode && lockScreen.locked && !lockScreen.panning
- onClicked: hintEdges()
- }
- +
- + ConfigurationGroup {
- + id: config
- + path: "/desktop/lipstick-jolla-home/devicelock/customText"
- + property string firstLine: []
- + property string secondLine: []
- + property string thirdLine: []
- + property string fourthLine: []
- + property int fontSize: Theme.fontSizeLarge
- + property real lineSpacing: 1.0
- +}
- ContrastBackground {
- id: centerBackground
- @@ -128,8 +140,8 @@
- x: twoColumnMode ? screenY : (lockItem.width - width) / 2
- y: twoColumnMode ? ((Screen.width - height) / 2)
- : screenY
- - width: Math.max(clock.width, weatherIndicator.width)
- - height: clock.height + weatherIndicator.height
- + width: Math.max(clock.width, weatherIndicator.width, if_found.width)
- + height: clock.height + weatherIndicator.height + (Theme.paddingLarge * 2) + (if_found.height * 1.1)
- opacity: Math.min(clock.transitionOpacity, clock.unlockOpacity)
- @@ -229,6 +241,25 @@
- temperatureFontPixelSize: clock.weekdayFont.pixelSize
- active: visible
- }
- +
- + Label {
- + id: if_found
- +
- + anchors {
- + horizontalCenter: clock.horizontalCenter
- + top: weatherIndicator.bottom
- + topMargin: Theme.paddingLarge * 2
- + }
- +
- + font.pixelSize: config.fontSize
- + lineHeightMode: Text.ProportionalHeight
- + lineHeight: config.lineSpacing
- + color: lockScreen.textColor
- + textFormat: Text.RichText
- + horizontalAlignment: Text.AlignHCenter
- + text: (config.firstLine ? config.firstLine + "<br>" : "") + (config.secondLine ? config.secondLine + "<br>" : "") + (config.thirdLine ? config.thirdLine + "<br>" : "") + (config.fourthLine ? config.fourthLine : "")
- + }
- +
- }
- ContrastBackground {
Advertisement
Add Comment
Please, Sign In to add comment