1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-31 17:02:51 -05:00

settings: undo mono font filtering

This commit is contained in:
bbedward
2026-01-28 22:07:08 -05:00
parent 10923346d7
commit f49f98ff85

View File

@@ -23,20 +23,7 @@ Item {
fonts.sort();
fonts.unshift("Default");
cachedFontFamilies = fonts;
var monoFonts = [];
for (var j = 0; j < availableFonts.length; j++) {
var fontName2 = availableFonts[j];
if (fontName2.startsWith("."))
continue;
var lowerName = fontName2.toLowerCase();
if (lowerName.includes("mono") || lowerName.includes("code") || lowerName.includes("console") || lowerName.includes("terminal") || lowerName.includes("courier") || lowerName.includes("jetbrains") || lowerName.includes("fira") || lowerName.includes("hack") || lowerName.includes("source code") || lowerName.includes("cascadia")) {
monoFonts.push(fontName2);
}
}
monoFonts.sort();
monoFonts.unshift("Default");
cachedMonoFamilies = monoFonts;
cachedMonoFamilies = fonts;
}
Timer {