diff --git a/Main.qml b/Main.qml index b905349..a4ed92f 100644 --- a/Main.qml +++ b/Main.qml @@ -37,10 +37,16 @@ Item { } height: 50 background: null - font.family: "Rajdhani" - font.capitalization: Font.AllUppercase - font.bold: true - font.pointSize: 30 + contentItem: Text { + text: session.displayText + color: "white" + font.family: "Rajdhani" + font.capitalization: Font.AllUppercase + font.bold: true + font.pointSize: 30 + verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight + } indicator: Image { id: sessionArrow source: "icons/down-arrow.png" @@ -130,6 +136,7 @@ Item { font.family: "Rajdhani" font.pointSize: 30 font.bold: true + color: "white" Keys.onEscapePressed: { mainStack.forceActiveFocus(); } @@ -162,13 +169,14 @@ Item { font.family: "Rajdhani" font.pointSize: 30 font.bold: true + color: "white" Keys.onEscapePressed: { mainStack.forceActiveFocus(); } onAccepted: { attemptingToLogin = true var username = usernameField.text - if !usingCustomUser { + if (!usingCustomUser) { username = userModel.lastUser.name } sddm.login(username, passwordField.text, session.index)