Re-indent SDDM QML theme properly
This commit is contained in:
parent
ac75b97fc3
commit
de0def570c
@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com
|
||||
* Copyright (c) 2015-2018 Lubuntu Artwork Team
|
||||
* Copyright (c) 2015-2024 Lubuntu Artwork Team
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
@ -92,7 +92,7 @@ Rectangle {
|
||||
|
||||
Text {
|
||||
id: txtMessage
|
||||
anchors.top: usersContainer.bottom;
|
||||
anchors.top: usersContainer.bottom
|
||||
anchors.margins: 20
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
color: "white"
|
||||
@ -103,7 +103,8 @@ Rectangle {
|
||||
|
||||
Item {
|
||||
id: usersContainer
|
||||
width: parent.width; height: 300
|
||||
width: parent.width
|
||||
height: 300
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
ImageButton {
|
||||
@ -114,15 +115,15 @@ Rectangle {
|
||||
source: "angle-left.png"
|
||||
onClicked: listView.decrementCurrentIndex()
|
||||
|
||||
KeyNavigation.backtab: btnShutdown; KeyNavigation.tab: listView
|
||||
KeyNavigation.backtab: btnShutdown
|
||||
KeyNavigation.tab: listView
|
||||
}
|
||||
|
||||
|
||||
|
||||
ListView {
|
||||
id: listView
|
||||
height: parent.height
|
||||
anchors.left: prevUser.right; anchors.right: nextUser.left
|
||||
anchors.left: prevUser.right
|
||||
anchors.right: nextUser.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.margins: 10
|
||||
|
||||
@ -136,7 +137,8 @@ Rectangle {
|
||||
orientation: ListView.Horizontal
|
||||
currentIndex: userModel.lastIndex
|
||||
|
||||
KeyNavigation.backtab: prevUser; KeyNavigation.tab: nextUser
|
||||
KeyNavigation.backtab: prevUser
|
||||
KeyNavigation.tab: nextUser
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
@ -146,18 +148,19 @@ Rectangle {
|
||||
anchors.margins: 10
|
||||
source: "angle-right.png"
|
||||
onClicked: listView.incrementCurrentIndex()
|
||||
KeyNavigation.backtab: listView; KeyNavigation.tab: session
|
||||
KeyNavigation.backtab: listView
|
||||
KeyNavigation.tab: session
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: actionBar
|
||||
anchors.top: parent.top;
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: parent.width; height: 64
|
||||
width: parent.width
|
||||
height: 64
|
||||
color: "#44ffffff"
|
||||
|
||||
Row {
|
||||
@ -184,7 +187,8 @@ Rectangle {
|
||||
index: sessionModel.lastIndex
|
||||
font.pixelSize: 14
|
||||
color: "#44ffffff"
|
||||
KeyNavigation.backtab: nextUser; KeyNavigation.tab: layoutBox
|
||||
KeyNavigation.backtab: nextUser
|
||||
KeyNavigation.tab: layoutBox
|
||||
}
|
||||
|
||||
Text {
|
||||
@ -202,7 +206,8 @@ Rectangle {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
font.pixelSize: 14
|
||||
arrowIcon: "angle-down.png"
|
||||
KeyNavigation.backtab: session; KeyNavigation.tab: btnShutdown
|
||||
KeyNavigation.backtab: session
|
||||
KeyNavigation.tab: btnShutdown
|
||||
}
|
||||
}
|
||||
|
||||
@ -227,7 +232,8 @@ Rectangle {
|
||||
source: "suspend.png"
|
||||
visible: sddm.canSuspend
|
||||
onClicked: sddm.suspend()
|
||||
KeyNavigation.backtab: layoutBox; KeyNavigation.tab: btnReboot
|
||||
KeyNavigation.backtab: layoutBox
|
||||
KeyNavigation.tab: btnReboot
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
@ -236,7 +242,8 @@ Rectangle {
|
||||
source: "reboot.png"
|
||||
visible: sddm.canReboot
|
||||
onClicked: sddm.reboot()
|
||||
KeyNavigation.backtab: btnSuspend; KeyNavigation.tab: btnShutdown
|
||||
KeyNavigation.backtab: btnSuspend
|
||||
KeyNavigation.tab: btnShutdown
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
@ -245,11 +252,9 @@ Rectangle {
|
||||
source: "shutdown.png"
|
||||
visible: sddm.canPowerOff
|
||||
onClicked: sddm.powerOff()
|
||||
KeyNavigation.backtab: btnReboot; KeyNavigation.tab: prevUser
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
KeyNavigation.backtab: btnReboot
|
||||
KeyNavigation.tab: prevUser
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user