Honor the user's font on the lock screen

LockView hardcoded font.family to "monospace" in two places, ignoring
the user's OMARCHY_MENU_FONT / fontconfig choice that every other
summoned surface (menu, launcher, polkit, emojis, clipboard) respects.

Bind to Style.font.family so a font change via omarchy-font-set or
fontconfig propagates to the lock screen too.
This commit is contained in:
David Heinemeier Hansson
2026-05-20 19:47:16 +02:00
parent 9baf3f7f79
commit 4d58dfa27a
+2 -2
View File
@@ -112,7 +112,7 @@ Item {
color: Color.lock.text
selectionColor: Color.lock.selection
selectedTextColor: Color.lock.text
font.family: "monospace"
font.family: Style.font.family
font.pixelSize: text.length > 0 ? root.passwordDotFontSize : root.fieldFontSize
cursorVisible: activeFocus && root.showPasswordCursor && text.length > 0
cursorDelegate: Rectangle {
@@ -148,7 +148,7 @@ Item {
text: root.authenticatingPassword ? "Checking…" : (root.failureMessage.length > 0 ? root.failureMessage : root.placeholderText)
visible: passwordInput.text.length === 0
color: (!root.authenticatingPassword && root.failureMessage.length > 0) ? Color.lock.textError : Color.lock.text
font.family: "monospace"
font.family: Style.font.family
font.pixelSize: root.fieldFontSize
font.italic: !root.authenticatingPassword && root.failureMessage.length > 0
horizontalAlignment: Text.AlignHCenter