Compare commits

..

2 Commits

Author SHA1 Message Date
25dc28e9e4 Slightly bump font size 2025-01-12 04:40:31 -06:00
d89d86a70b Fixups, add bg 2025-01-12 04:38:56 -06:00
2 changed files with 26 additions and 12 deletions

View File

@@ -56,11 +56,25 @@ Rectangle {
} }
} }
Background {
anchors.fill: parent
source: Qt.resolvedUrl(config.background)
fillMode: Image.PreserveAspectCrop
onStatusChanged: {
var defaultBackground = Qt.resolvedUrl(config.defaultBackground)
if (status == Image.Error && source != defaultBackground) {
source = defaultBackground
}
}
}
// Background // Background
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: "transparent" color: "#00000000"
//visible: primaryScreen //color: "#e6000000"
// ^ This matches hyprlock but it looks kinda bad :<
visible: primaryScreen
// Within that bg, we have a login box with everything in it // Within that bg, we have a login box with everything in it
Rectangle { Rectangle {
@@ -102,7 +116,7 @@ Rectangle {
width: parent.width width: parent.width
text: textConstants.userName text: textConstants.userName
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
} }
SaltTextBox { SaltTextBox {
@@ -110,7 +124,7 @@ Rectangle {
width: parent.width; height: 50 width: parent.width; height: 50
text: userModel.lastUser text: userModel.lastUser
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
radius: 8 radius: 8
textColor: "#ebdbb2" textColor: "#ebdbb2"
borderWidth: 4 borderWidth: 4
@@ -140,14 +154,14 @@ Rectangle {
width: parent.width width: parent.width
text: textConstants.password text: textConstants.password
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
} }
SaltPasswordBox { SaltPasswordBox {
id: password id: password
width: parent.width; height: 50 width: parent.width; height: 50
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
radius: 8 radius: 8
textColor: "#ebdbb2" textColor: "#ebdbb2"
borderWidth: 4 borderWidth: 4
@@ -179,14 +193,14 @@ Rectangle {
text: textConstants.session text: textConstants.session
wrapMode: TextEdit.WordWrap wrapMode: TextEdit.WordWrap
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
} }
SaltComboBox { SaltComboBox {
id: session id: session
width: parent.width; height: 50 width: parent.width; height: 50
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
radius: 8 radius: 8
textColor: "#ebdbb2" textColor: "#ebdbb2"
borderColor: "#32302f" borderColor: "#32302f"
@@ -211,7 +225,7 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
text: textConstants.prompt text: textConstants.prompt
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
} }
} }
@@ -230,7 +244,7 @@ Rectangle {
KeyNavigation.backtab: session; KeyNavigation.tab: shutdownButton KeyNavigation.backtab: session; KeyNavigation.tab: shutdownButton
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
textColor: "#282828" textColor: "#282828"
color: "#458588" color: "#458588"
disabledColor: "#32302f" disabledColor: "#32302f"
@@ -255,7 +269,7 @@ Rectangle {
KeyNavigation.backtab: loginButton; KeyNavigation.tab: rebootButton KeyNavigation.backtab: loginButton; KeyNavigation.tab: rebootButton
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
textColor: "#ebdbb2" textColor: "#ebdbb2"
color: "#32302f" color: "#32302f"
disabledColor: "#32302f" disabledColor: "#32302f"
@@ -273,7 +287,7 @@ Rectangle {
KeyNavigation.backtab: shutdownButton; KeyNavigation.tab: name KeyNavigation.backtab: shutdownButton; KeyNavigation.tab: name
font.family: "IBM Plex Sans" font.family: "IBM Plex Sans"
font.pixelSize: 13 font.pixelSize: 14
textColor: "#ebdbb2" textColor: "#ebdbb2"
color: "#32302f" color: "#32302f"
disabledColor: "#32302f" disabledColor: "#32302f"

BIN
theme/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB