1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

Update readme and make nerd fonts optional

This commit is contained in:
bbedward
2025-07-17 22:15:15 -04:00
parent 66671f757b
commit fbae03de14
2 changed files with 31 additions and 13 deletions

View File

@@ -5,6 +5,13 @@ import qs.Services
Rectangle {
id: root
readonly property bool nerdFontAvailable: Qt.fontFamilies()
.indexOf("Symbols Nerd Font") !== -1
Component.onCompleted: {
console.log(Qt.fontFamilies());
}
width: 40
height: 30
radius: Theme.cornerRadius
@@ -12,8 +19,8 @@ Rectangle {
Text {
anchors.centerIn: parent
text: OSDetectorService.osLogo || "apps"
font.family: OSDetectorService.osLogo ? "NerdFont" : Theme.iconFont
text: nerdFontAvailable && OSDetectorService.osLogo || "apps"
font.family: nerdFontAvailable && OSDetectorService.osLogo ? "Symbols Nerd Font" : Theme.iconFont
font.pixelSize: Theme.iconSize - 6
font.weight: Theme.iconFontWeight
color: Theme.surfaceText