Consolidate OMARCHY_MENU_FONT lookups onto Style.font.menuFamily

Five plugins (menu, launcher, clipboard, emojis, polkit) each looked up
OMARCHY_MENU_FONT with the same env-or-monospace fallback. Hoist the
resolution into Style so plugins read one source of truth, and so the
fallback follows the real fontconfig family Style already tracks instead
of the literal string "monospace".
This commit is contained in:
David Heinemeier Hansson
2026-05-20 20:31:04 +02:00
parent c1fca7cbe4
commit 783cccac3c
6 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ Item {
property color selectedBackground: Color.launcher.selectedBackground
property color selectedText: Color.launcher.selectedText
property color selectedBorder: Color.launcher.selectedBorder
property string fontFamily: Quickshell.env("OMARCHY_MENU_FONT") || "monospace"
property string fontFamily: Style.font.menuFamily
property int cardWidth: 644
property int cardHeight: 400