From 91978706279a19a3ac96393630876f3e50cbc518 Mon Sep 17 00:00:00 2001 From: Nippy Date: Fri, 9 Oct 2026 10:49:26 +0200 Subject: fix --- .../sddm-rave-theme/Components/UserSwitcher.qml | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'raveos-sddm-theme/sddm-rave-theme/Components/UserSwitcher.qml') diff --git a/raveos-sddm-theme/sddm-rave-theme/Components/UserSwitcher.qml b/raveos-sddm-theme/sddm-rave-theme/Components/UserSwitcher.qml index f87b4d0..30d4013 100644 --- a/raveos-sddm-theme/sddm-rave-theme/Components/UserSwitcher.qml +++ b/raveos-sddm-theme/sddm-rave-theme/Components/UserSwitcher.qml @@ -9,13 +9,11 @@ import QtQuick.Effects 6.5 Item { id: userSwitcher - // Csak akkor látható ha több mint 1 felhasználó van visible: userModel.count > 1 width: switchBtn.implicitWidth + root.font.pointSize * 2 height: switchBtn.implicitHeight + root.font.pointSize * 0.6 - // Kiválasztott felhasználó indexe (kívülről beállítható) property int selectedIndex: 0 property string selectedName: { if (userModel.count < 1) return "" @@ -25,7 +23,6 @@ Item { signal userSwitched(int idx, string name) - // ── Segédfüggvények ─────────────────────────────────────────────────────────────────── function resolveUserIcon(idx) { var list = [] var count = (typeof userModel !== "undefined" && userModel) ? userModel.count : 0 @@ -64,7 +61,6 @@ Item { return userModel.data(userModel.index(idx, 0), Qt.UserRole + 1) || "" } - // ── Gomb (chip stílus) ──────────────────────────────────────────────────── Rectangle { id: switchBtn anchors.centerIn: parent @@ -90,7 +86,6 @@ Item { anchors.centerIn: parent spacing: root.font.pointSize * 0.5 - // Mini avatar kör Rectangle { id: miniAvatarCircle width: root.font.pointSize * 1.6 @@ -159,7 +154,6 @@ Item { } } - // Felhasználónév Text { anchors.verticalCenter: parent.verticalCenter text: userSwitcher.selectedName @@ -170,14 +164,12 @@ Item { font.family: root.font.family } - // Nyíl ikon Text { anchors.verticalCenter: parent.verticalCenter text: "⌄" color: Qt.rgba(1, 1, 1, 0.70) font.pointSize: root.font.pointSize * 0.85 font.family: root.font.family - // Csak ha több user van, akkor látszik a nyíl visible: userModel.count > 1 rotation: popup.visible ? 180 : 0 @@ -190,12 +182,10 @@ Item { anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - // Csak akkor nyit popup-ot ha több felhasználó van onClicked: if (userModel.count > 1) { popup.visible ? popup.close() : popup.open() } } } - // ── Felhasználó-lista popup ─────────────────────────────────────────────── Popup { id: popup @@ -225,7 +215,6 @@ Item { border.width: root.font.pointSize * 0.08 } - // Fejléc Column { width: parent.width spacing: root.font.pointSize * 0.4 @@ -239,14 +228,12 @@ Item { bottomPadding: root.font.pointSize * 0.2 } - // Elválasztó vonal Rectangle { width: parent.width height: root.font.pointSize * 0.08 color: Qt.rgba(1, 1, 1, 0.12) } - // Felhasználók listája ListView { id: userList width: parent.width @@ -264,7 +251,6 @@ Item { height: root.font.pointSize * 4 radius: config.RoundCorners !== "" ? parseInt(config.RoundCorners) / 2 : root.font.pointSize * 0.6 - // Kiemelés: aktív felhasználó property bool isActive: index === userSwitcher.selectedIndex color: isActive ? Qt.rgba(1, 1, 1, 0.12) @@ -280,7 +266,6 @@ Item { anchors.leftMargin: root.font.pointSize * 0.7 spacing: root.font.pointSize * 0.8 - // Avatar kör Rectangle { id: delegateAvatarCircle width: root.font.pointSize * 3 @@ -336,7 +321,6 @@ Item { } } - // Felhasználónév Text { anchors.verticalCenter: parent.verticalCenter text: userSwitcher.getUserName(index) @@ -347,7 +331,6 @@ Item { } } - // Aktív jelző csík a bal oldalon Rectangle { visible: delegateRect.isActive width: root.font.pointSize * 0.23 -- cgit v1.3