Workin on it
This commit is contained in:
parent
a0323ad50a
commit
947bd69a2e
@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: sddm
|
target: sddm
|
||||||
|
|
||||||
function onLoginSucceeded() {
|
function onLoginSucceeded() {
|
||||||
errorMessage.color = "#83a598"
|
errorMessage.color = "#83a598"
|
||||||
errorMessage.text = textConstants.loginSucceeded
|
errorMessage.text = textConstants.loginSucceeded
|
||||||
@ -56,45 +55,37 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Background
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
//visible: primaryScreen
|
//visible: primaryScreen
|
||||||
|
|
||||||
|
// Display an unobtrusive clock in the corner
|
||||||
Clock {
|
Clock {
|
||||||
id: clock
|
id: clock
|
||||||
anchors.margins: 5
|
anchors.margins: 64
|
||||||
anchors.top: parent.top; anchors.right: parent.right
|
anchors.bottom: parent.bottom; anchors.right: parent.right
|
||||||
|
color: "#cc32302f"
|
||||||
color: "#ebdbb2"
|
|
||||||
timeFont.family: "IBM Plex Sans"
|
timeFont.family: "IBM Plex Sans"
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
// Within that bg, we have a login box with everything in it
|
||||||
|
Rectangle {
|
||||||
id: rectangle
|
id: rectangle
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: Math.max(320, mainColumn.implicitWidth + 50)
|
width: Math.max(600, mainColumn.implicitWidth + 50)
|
||||||
height: Math.max(320, mainColumn.implicitHeight + 50)
|
height: Math.max(800, mainColumn.implicitHeight + 50)
|
||||||
|
color: "#cc32302f"
|
||||||
source: Qt.resolvedUrl("rectangle.png")
|
radius: 8
|
||||||
|
|
||||||
|
// Lay out everything within as a column
|
||||||
Column {
|
Column {
|
||||||
id: mainColumn
|
id: mainColumn
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 12
|
spacing: 12
|
||||||
Text {
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
color: "#ebdbb2"
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
height: text.implicitHeight
|
|
||||||
width: parent.width
|
|
||||||
text: textConstants.welcomeText.arg(sddm.hostName)
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
font.pixelSize: 24
|
|
||||||
elide: Text.ElideRight
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// This column contains the UN field
|
||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 4
|
spacing: 4
|
||||||
@ -103,7 +94,6 @@
|
|||||||
color: "#ebdbb2"
|
color: "#ebdbb2"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: textConstants.userName
|
text: textConstants.userName
|
||||||
font.bold: true
|
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,7 +122,6 @@
|
|||||||
color: "#ebdbb2"
|
color: "#ebdbb2"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: textConstants.password
|
text: textConstants.password
|
||||||
font.bold: true
|
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +158,6 @@
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
text: textConstants.session
|
text: textConstants.session
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
font.bold: true
|
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +189,6 @@
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
text: textConstants.layout
|
text: textConstants.layout
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
font.bold: true
|
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,6 +225,7 @@
|
|||||||
id: loginButton
|
id: loginButton
|
||||||
text: textConstants.login
|
text: textConstants.login
|
||||||
width: parent.btnWidth
|
width: parent.btnWidth
|
||||||
|
radius: 8
|
||||||
|
|
||||||
onClicked: sddm.login(name.text, password.text, sessionIndex)
|
onClicked: sddm.login(name.text, password.text, sessionIndex)
|
||||||
|
|
||||||
@ -248,6 +236,7 @@
|
|||||||
id: shutdownButton
|
id: shutdownButton
|
||||||
text: textConstants.shutdown
|
text: textConstants.shutdown
|
||||||
width: parent.btnWidth
|
width: parent.btnWidth
|
||||||
|
radius: 8
|
||||||
|
|
||||||
onClicked: sddm.powerOff()
|
onClicked: sddm.powerOff()
|
||||||
|
|
||||||
@ -258,6 +247,7 @@
|
|||||||
id: rebootButton
|
id: rebootButton
|
||||||
text: textConstants.reboot
|
text: textConstants.reboot
|
||||||
width: parent.btnWidth
|
width: parent.btnWidth
|
||||||
|
radius: 8
|
||||||
|
|
||||||
onClicked: sddm.reboot()
|
onClicked: sddm.reboot()
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 195 KiB |
@ -1,17 +1,16 @@
|
|||||||
[SddmGreeterTheme]
|
[SddmGreeterTheme]
|
||||||
Name=Maldives
|
Name=Salt Gruvbox
|
||||||
Description=Maldives Theme
|
Description=Gruvbox SDDM Theme
|
||||||
Author=Abdurrahman AVCI
|
Author=Abdurrahman AVCI, Salt
|
||||||
Copyright=(c) 2013, Abdurrahman AVCI
|
Copyright=(c) 2013, Abdurrahman AVCI, (c) 2025 Salt
|
||||||
License=CC-BY-SA
|
License=CC-BY-SA
|
||||||
Type=sddm-theme
|
Type=sddm-theme
|
||||||
Version=0.1
|
Version=0.1
|
||||||
Website=https://github.com/sddm/sddm
|
Website=https://git.desu.ltd/salt/sddm-theme
|
||||||
Screenshot=maldives.jpg
|
|
||||||
MainScript=Main.qml
|
MainScript=Main.qml
|
||||||
ConfigFile=theme.conf
|
ConfigFile=theme.conf
|
||||||
TranslationsDirectory=translations
|
TranslationsDirectory=translations
|
||||||
Email=abdurrahmanavci@gmail.com
|
Email=jacob@babor.tech
|
||||||
Theme-Id=maldives
|
Theme-Id=salt-gruvbox
|
||||||
Theme-API=2.0
|
Theme-API=2.0
|
||||||
QtVersion=6
|
QtVersion=6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user