Small change in LockScreen

This commit is contained in:
Ly-sec 2025-08-24 18:57:15 +02:00
parent 89d0551f3e
commit 4d8cf2207d
3 changed files with 7 additions and 5 deletions

View file

@ -48,6 +48,8 @@ Loader {
property string password: "" property string password: ""
property bool pamAvailable: typeof PamContext !== "undefined" property bool pamAvailable: typeof PamContext !== "undefined"
function unlockAttempt() { function unlockAttempt() {
Logger.log("LockScreen", "Unlock attempt started") Logger.log("LockScreen", "Unlock attempt started")
@ -626,7 +628,7 @@ Loader {
spacing: Style.marginM * scaling spacing: Style.marginM * scaling
NText { NText {
text: "root@noctalia:~$" text: Quickshell.env("USER") + "@noctalia:~$"
color: Color.mPrimary color: Color.mPrimary
font.family: Settings.data.ui.fontFixed font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeL * scaling font.pointSize: Style.fontSizeL * scaling
@ -664,7 +666,7 @@ Loader {
spacing: Style.marginM * scaling spacing: Style.marginM * scaling
NText { NText {
text: "root@noctalia:~$" text: Quickshell.env("USER") + "@noctalia:~$"
color: Color.mPrimary color: Color.mPrimary
font.family: Settings.data.ui.fontFixed font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeL * scaling font.pointSize: Style.fontSizeL * scaling

View file

@ -19,7 +19,7 @@ Variants {
// Only show on screens that have notifications enabled // Only show on screens that have notifications enabled
visible: modelData ? (Settings.data.notifications.monitors.includes(modelData.name) visible: modelData ? (Settings.data.notifications.monitors.includes(modelData.name)
|| (Settings.data.notifications.monitors.length === 0)) : false || (Settings.data.notifications.monitors.length === 0)) : false
// Position based on bar location, like Notification popup does // Position based on bar location, like Notification popup does
anchors { anchors {
@ -57,7 +57,7 @@ Variants {
Component.onCompleted: { Component.onCompleted: {
// Only register toasts for screens that have notifications enabled // Only register toasts for screens that have notifications enabled
if (modelData ? (Settings.data.notifications.monitors.includes(modelData.name) if (modelData ? (Settings.data.notifications.monitors.includes(modelData.name)
|| (Settings.data.notifications.monitors.length === 0)) : false) { || (Settings.data.notifications.monitors.length === 0)) : false) {
// Register this toast with the service // Register this toast with the service
ToastService.allToasts.push(toast) ToastService.allToasts.push(toast)