summaryrefslogtreecommitdiff
path: root/raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml')
-rw-r--r--raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml b/raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml
index ed614b6..045e298 100644
--- a/raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml
+++ b/raveos-sddm-theme/sddm-rave-theme/Components/SessionButton.qml
@@ -1,5 +1,5 @@
-// Config created by Keyitdev https://git.rp1.hu/gabeszm/sddm-rave-theme
-// Copyright (C) 2022-2025 Keyitdev
+// Config created by gabeszm https://git.rp1.hu/gabeszm/sddm-rave-theme
+// Copyright (C) 2026 gabeszm
// Based on https://github.com/MarianArlt/sddm-sugar-dark
// Distributed under the GPLv3+ License https://www.gnu.org/licenses/gpl-3.0.html
@@ -11,7 +11,7 @@ Item {
height: root.font.pointSize * 1.8
width: parent.width
-
+
property var selectedSession: selectSession.currentIndex
property string textConstantSession
property int loginButtonWidth
@@ -29,7 +29,7 @@ Item {
model: sessionModel
currentIndex: model.lastIndex
textRole: "name"
-
+
Keys.onPressed: function(event) {
if ((event.key == Qt.Key_Left || event.key == Qt.Key_Right) && !popup.opened) {
popup.open();
@@ -40,7 +40,7 @@ Item {
// minus padding
width: popupHandler.width - root.font.pointSize * 1.5
anchors.horizontalCenter: popupHandler.horizontalCenter
-
+
contentItem: Text {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
@@ -50,7 +50,7 @@ Item {
font.family: root.font.family
color: config.DropdownTextColor
}
-
+
background: Rectangle {
color: selectSession.highlightedIndex === index ? Qt.rgba(1, 1, 1, 0.15) : "transparent"
radius: config.RoundCorners !== "" ? parseInt(config.RoundCorners) / 4 : root.font.pointSize * 0.4