From 1e6c8015075dff6df0b3ead88e8f46336547d615 Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 17 Jul 2025 22:55:14 -0400 Subject: [PATCH] Fallback icon font --- Common/Theme.qml | 6 ++++-- Widgets/TopBar/LauncherButton.qml | 4 ---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Common/Theme.qml b/Common/Theme.qml index 793c003d..b91ec5ac 100644 --- a/Common/Theme.qml +++ b/Common/Theme.qml @@ -387,8 +387,10 @@ Singleton { // Transparency system - can be overridden by Prefs property real panelTransparency: 0.85 property real popupTransparency: 0.92 - property string iconFont: "Material Symbols Rounded" - property string iconFontFilled: "Material Symbols Rounded" + property string iconFont: { Qt.fontFamilies() + .indexOf("Material Symbols Rounded") !== -1 ? "Material Symbols Rounded" : "Material Icons Round" } + property string iconFontFilled: { Qt.fontFamilies() + .indexOf("Material Symbols Rounded") !== -1 ? "Material Symbols Rounded" : "Material Icons Rounded" } property int iconFontWeight: Font.Normal property int iconFontFilledWeight: Font.Medium diff --git a/Widgets/TopBar/LauncherButton.qml b/Widgets/TopBar/LauncherButton.qml index bfc53f40..8245c1ea 100644 --- a/Widgets/TopBar/LauncherButton.qml +++ b/Widgets/TopBar/LauncherButton.qml @@ -8,10 +8,6 @@ Rectangle { readonly property bool nerdFontAvailable: Qt.fontFamilies() .indexOf("Symbols Nerd Font") !== -1 - Component.onCompleted: { - console.log(Qt.fontFamilies()); - } - width: 40 height: 30 radius: Theme.cornerRadius