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
Rectangle {
anchors.fill: parent
color: "transparent"
//visible: primaryScreen
color: "#00000000"
//color: "#e6000000"
// ^ This matches hyprlock but it looks kinda bad :<
visible: primaryScreen
// Within that bg, we have a login box with everything in it
Rectangle {
@@ -102,7 +116,7 @@ Rectangle {
width: parent.width
text: textConstants.userName
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
}
SaltTextBox {
@@ -110,7 +124,7 @@ Rectangle {
width: parent.width; height: 50
text: userModel.lastUser
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
radius: 8
textColor: "#ebdbb2"
borderWidth: 4
@@ -140,14 +154,14 @@ Rectangle {
width: parent.width
text: textConstants.password
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
}
SaltPasswordBox {
id: password
width: parent.width; height: 50
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
radius: 8
textColor: "#ebdbb2"
borderWidth: 4
@@ -179,14 +193,14 @@ Rectangle {
text: textConstants.session
wrapMode: TextEdit.WordWrap
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
}
SaltComboBox {
id: session
width: parent.width; height: 50
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
radius: 8
textColor: "#ebdbb2"
borderColor: "#32302f"
@@ -211,7 +225,7 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
text: textConstants.prompt
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
}
}
@@ -230,7 +244,7 @@ Rectangle {
KeyNavigation.backtab: session; KeyNavigation.tab: shutdownButton
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
textColor: "#282828"
color: "#458588"
disabledColor: "#32302f"
@@ -255,7 +269,7 @@ Rectangle {
KeyNavigation.backtab: loginButton; KeyNavigation.tab: rebootButton
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
textColor: "#ebdbb2"
color: "#32302f"
disabledColor: "#32302f"
@@ -273,7 +287,7 @@ Rectangle {
KeyNavigation.backtab: shutdownButton; KeyNavigation.tab: name
font.family: "IBM Plex Sans"
font.pixelSize: 13
font.pixelSize: 14
textColor: "#ebdbb2"
color: "#32302f"
disabledColor: "#32302f"

BIN
theme/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB