Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import Sailfish.Silica 1.0
- import org.nemomobile.lipstick 0.1
- import org.nemomobile.configuration 1.0
- Page {
- id: page
- ConfigurationGroup {
- id: customSHUTDOWNscreen
- path: "/desktop/lipstick/shutdownscreen"
- property string shutdown: shutdownInput.text
- property string reboot: rebootInput.text
- }
- property bool rotated: Lipstick.compositor.topmostWindowOrientation & (Qt.LandscapeOrientation | Qt.InvertedLandscapeOrientation)
- SilicaFlickable {
- anchors.fill: parent
- contentHeight: content.height
- Column {
- id: content
- width: parent.width
- spacing: Theme.paddingLarge
- PageHeader {
- title: "Shutdown screen"
- }
- Label {
- width: parent.width
- wrapMode: Text.WordWrap
- anchors.left: parent.left
- anchors.leftMargin: Theme.paddingSmall*2
- anchors.right: parent.right
- anchors.rightMargin: Theme.paddingSmall*2
- horizontalAlignment: Text.AlignHLeft
- color: Theme.highlightColor
- font.pixelSize: Theme.fontSizeSmall
- text: "Change the \"One moment...\" and \"Goodbye!\" text to your prefered custom text."
- }
- Item {
- width: parent.width
- height: Theme.paddingMedium
- }
- TextArea {
- id: rebootInput
- width: parent.width
- placeholderText: "Type your Reboot-text here"
- label: "Enter your Reboot-text"
- text: customSHUTDOWNscreen.reboot
- focusOutBehavior: customSHUTDOWNscreen.reboot = text
- }
- Item {
- width: parent.width
- height: Theme.paddingMedium
- }
- TextArea {
- id: shutdownInput
- width: parent.width
- placeholderText: "Type your Shutdown-text here"
- label: "Enter your Shutdown-text"
- text: customSHUTDOWNscreen.shutdown
- focusOutBehavior: customSHUTDOWNscreen.shutdown = text
- }
- Item {
- width: parent.width
- height: Screen.sizeCategory < Screen.Large ? Theme.paddingLarge*6 : (rotated ? Theme.paddingLarge*6 : Theme.paddingLarge*18)
- }
- Label {
- width: parent.width
- wrapMode: Text.Wrap
- horizontalAlignment: Text.AlignHCenter
- text: "Created by Schturman\nThanks to Markkyboy & Eatdirt\nfor finding a correct place for changing."
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement