Advertisement
Guest User

ShutDownItem.qml-patched

a guest
Jun 18th, 2016
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2015 Jolla Ltd.
  4. ** Contact: Andres Gomez <andres.gomez@jolla.com>
  5. **
  6. ****************************************************************************/
  7.  
  8. import QtQuick 2.0
  9. import Sailfish.Silica 1.0
  10. import org.nemomobile.configuration 1.0
  11.  
  12. Rectangle {
  13. id: shutDownItem
  14.  
  15. property alias message: shutDownMessage.text
  16. property string userName
  17.  
  18. color: "black"
  19. anchors.fill: parent
  20. Behavior on opacity {
  21. NumberAnimation {
  22. duration: 1000
  23. onRunningChanged: if (!running) opacityAnimationFinished()
  24. }
  25. }
  26.  
  27. signal opacityAnimationFinished()
  28.  
  29. ConfigurationGroup {
  30. id: customSHUTDOWNscreen
  31. path: "/desktop/lipstick/shutdownscreen"
  32. property string shutdown: shutdownInput.text
  33. }
  34.  
  35. Label {
  36. id: shutDownMessage
  37. anchors.centerIn: parent
  38. width: parent.width - 2 * Theme.horizontalPageMargin
  39. // Non themable color since we always want it white over black
  40. color: "white"
  41. font.pixelSize: Theme.fontSizeExtraLarge
  42. horizontalAlignment: Text.AlignHCenter
  43. wrapMode: Text.WordWrap
  44. text: customSHUTDOWNscreen.shutdown !== ""
  45. //: Shut down message
  46. //% "Goodbye %1!"
  47. ? customSHUTDOWNscreen.shutdown
  48. //% "Goodbye!"
  49. : qsTrId("sailfish-components-lipstick-la-goodbye")
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement