Re-indent SDDM QML theme properly

ubuntu/oracular
Simon Quigley 6 months ago
parent ac75b97fc3
commit de0def570c

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

Loading…
Cancel
Save