Change LockScreen
This commit is contained in:
parent
eccbc3d782
commit
181b82d42a
1 changed files with 88 additions and 51 deletions
|
|
@ -9,6 +9,7 @@ import Quickshell.Services.Pam
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import qs.Settings
|
import qs.Settings
|
||||||
import qs.Services
|
import qs.Services
|
||||||
|
import qs.Components
|
||||||
import "../Helpers/Weather.js" as WeatherHelper
|
import "../Helpers/Weather.js" as WeatherHelper
|
||||||
|
|
||||||
WlSessionLock {
|
WlSessionLock {
|
||||||
|
|
@ -316,11 +317,46 @@ WlSessionLock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Corners {
|
||||||
|
id: topRightCorner
|
||||||
|
position: "bottomleft"
|
||||||
|
size: 1.3
|
||||||
|
fillColor: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
||||||
|
offsetX: screen.width / 2 + 31
|
||||||
|
offsetY: 0
|
||||||
|
anchors.top: parent.top
|
||||||
|
//anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
visible: Settings.settings.showCorners
|
||||||
|
z: 50
|
||||||
|
}
|
||||||
|
|
||||||
|
Corners {
|
||||||
|
id: topLeftCorner
|
||||||
|
position: "bottomright"
|
||||||
|
size: 1.3
|
||||||
|
fillColor: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
||||||
|
offsetX: - Screen.width / 2 - 31
|
||||||
|
offsetY: 0
|
||||||
|
anchors.top: parent.top
|
||||||
|
//anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
visible: Settings.settings.showCorners
|
||||||
|
z: 51
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: infoColumn.width + 16
|
||||||
|
height: infoColumn.height
|
||||||
|
color: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
bottomLeftRadius: 20
|
||||||
|
bottomRightRadius: 20
|
||||||
|
|
||||||
// Top-center info panel (clock + weather)
|
// Top-center info panel (clock + weather)
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
id: infoColumn
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.topMargin: 40
|
anchors.topMargin: 0
|
||||||
spacing: 8
|
spacing: 8
|
||||||
// Clock
|
// Clock
|
||||||
Text {
|
Text {
|
||||||
|
|
@ -375,6 +411,7 @@ WlSessionLock {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update clock every second
|
// Update clock every second
|
||||||
Timer {
|
Timer {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue