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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user