1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

Fallback icon font

This commit is contained in:
bbedward
2025-07-17 22:55:14 -04:00
parent fbae03de14
commit 1e6c801507
2 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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