summaryrefslogtreecommitdiff
path: root/raveos-sddm-theme/sddm-rave-theme/Components/Input.qml
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-sddm-theme/sddm-rave-theme/Components/Input.qml')
-rw-r--r--raveos-sddm-theme/sddm-rave-theme/Components/Input.qml28
1 files changed, 0 insertions, 28 deletions
diff --git a/raveos-sddm-theme/sddm-rave-theme/Components/Input.qml b/raveos-sddm-theme/sddm-rave-theme/Components/Input.qml
index fd29314..61fed97 100644
--- a/raveos-sddm-theme/sddm-rave-theme/Components/Input.qml
+++ b/raveos-sddm-theme/sddm-rave-theme/Components/Input.qml
@@ -21,7 +21,6 @@ Column {
Item {
id: errorMessageField
- // change also in selectSession
height: root.font.pointSize * 2
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
@@ -67,7 +66,6 @@ Column {
}
}
- // Profilkép
Item {
id: avatarField
@@ -114,7 +112,6 @@ Column {
if (!p || p === "") return
var s = p.toString().trim()
if (s === "") return
- // Ignore generic silhouette icon installed in SDDM faces directory
if (s === "/usr/share/sddm/faces/.face.icon" || s === "file:///usr/share/sddm/faces/.face.icon") return
var url = (s.startsWith("file://") || s.startsWith("image://") || s.startsWith("qrc://") || s.startsWith("http")) ? s : ("file://" + s)
if (list.indexOf(url) === -1) {
@@ -122,12 +119,10 @@ Column {
}
}
- // 1. Direct icon reported by SDDM (AccountsService or explicit face config)
if (directIcon !== "") {
addCandidate(directIcon)
}
- // 2. AccountsService system icons (standard across Linux - world-readable 644)
if (uName !== "") {
addCandidate("/var/lib/AccountsService/icons/" + uName)
addCandidate("/var/lib/AccountsService/icons/" + uName + ".png")
@@ -136,7 +131,6 @@ Column {
addCandidate("/var/lib/AccountsService/icons/" + uName + ".svg")
}
- // 3. User's home directory faces
if (home !== "") {
addCandidate(home + "/.face")
addCandidate(home + "/.face.icon")
@@ -156,7 +150,6 @@ Column {
addCandidate("/home/" + uName + "/.avatar")
}
- // 4. System SDDM faces directory
if (uName !== "") {
addCandidate("/usr/share/sddm/faces/" + uName + ".face.icon")
addCandidate("/usr/share/sddm/faces/" + uName + ".png")
@@ -168,7 +161,6 @@ Column {
addCandidate("/var/lib/sddm/faces/" + uName)
}
- // 5. Configured theme avatar
if (config.UserAvatar && config.UserAvatar !== "") {
addCandidate(config.UserAvatar)
}
@@ -217,13 +209,11 @@ Column {
function onDataChanged() { avatarField.updateAvatarSource() }
}
- // Avatar kör
Item {
anchors.centerIn: parent
width: root.font.pointSize * 5.2
height: root.font.pointSize * 5.2
- // Avatar drop shadow
Rectangle {
anchors.fill: parent
anchors.topMargin: root.font.pointSize * 0.15
@@ -238,7 +228,6 @@ Column {
clip: true
color: Qt.rgba(1, 1, 1, 0.15)
- // The mask source
Item {
id: avatarMask
anchors.fill: parent
@@ -282,7 +271,6 @@ Column {
opacity: 0.85
}
- // Draw the border on top of everything!
Rectangle {
anchors.fill: parent
radius: parent.width / 2
@@ -340,7 +328,6 @@ Column {
}
}
- // Container button / click area
Item {
id: userSelectorButton
anchors.centerIn: parent
@@ -358,7 +345,6 @@ Column {
}
KeyNavigation.down: password
- // Background with drop shadow and frosted glass
Item {
anchors.fill: parent
Rectangle {
@@ -379,7 +365,6 @@ Column {
}
}
- // Left Icon (User icon)
Button {
id: userFieldLeftIcon
width: parent.height
@@ -396,7 +381,6 @@ Column {
background: Rectangle { color: "transparent" }
}
- // Username display in the middle (Non-editable, clean text)
Text {
id: username
anchors.centerIn: parent
@@ -414,7 +398,6 @@ Column {
styleColor: Qt.rgba(0, 0, 0, 0.40)
}
- // Dropdown Arrow Button on Right
Item {
id: userDropdownBtn
width: parent.height
@@ -453,7 +436,6 @@ Column {
}
}
- // Whole field click area
MouseArea {
id: userSelectorMouseArea
anchors.fill: parent
@@ -469,7 +451,6 @@ Column {
}
}
- // Dropdown Popup
Popup {
id: userDropdownPopup
@@ -482,7 +463,6 @@ Column {
z: 100
background: Item {
- // Drop shadow underlay
Rectangle {
anchors.fill: parent
anchors.topMargin: root.font.pointSize * 0.15
@@ -490,7 +470,6 @@ Column {
color: Qt.rgba(0, 0, 0, 0.40)
}
- // Frosted Glass body (minimally translucent)
Rectangle {
anchors.fill: parent
radius: config.RoundCorners !== "" ? parseInt(config.RoundCorners) : root.font.pointSize * 0.8
@@ -561,7 +540,6 @@ Column {
anchors.rightMargin: root.font.pointSize * 0.8
spacing: root.font.pointSize * 0.8
- // Mini avatar in dropdown row
Item {
width: root.font.pointSize * 2.4
height: root.font.pointSize * 2.4
@@ -620,7 +598,6 @@ Column {
}
}
- // Username & realName
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
@@ -841,7 +818,6 @@ Column {
KeyNavigation.down: rebootBtn
- // Drop shadow
Rectangle {
anchors.fill: parent
anchors.topMargin: root.font.pointSize * 0.12
@@ -915,7 +891,6 @@ Column {
anchors.bottomMargin: root.font.pointSize * 0.3
spacing: root.font.pointSize * 1.8
- // Reboot gomb
Column {
spacing: root.font.pointSize * 0.5
@@ -923,7 +898,6 @@ Column {
width: root.font.pointSize * 4.2
height: root.font.pointSize * 4.2
- // Button shadow
Rectangle {
anchors.fill: parent
anchors.topMargin: root.font.pointSize * 0.12
@@ -979,7 +953,6 @@ Column {
}
}
- // Shutdown gomb
Column {
spacing: root.font.pointSize * 0.5
@@ -987,7 +960,6 @@ Column {
width: root.font.pointSize * 4.2
height: root.font.pointSize * 4.2
- // Button shadow
Rectangle {
anchors.fill: parent
anchors.topMargin: root.font.pointSize * 0.12