icons: add regex substitutions (#487)

This commit is contained in:
end-4
2024-05-10 23:31:39 +07:00
parent 10d64ad6fe
commit f56f8c250c
4 changed files with 28 additions and 25 deletions
@@ -67,7 +67,7 @@ export default (overviewMonitor = 0) => {
const iconName = substitute(c);
const appIcon = iconExists(iconName) ? Widget.Icon({
icon: substitute(c),
icon: iconName,
size: Math.min(w, h) * userOptions.overview.scale / 2.5,
}) : MaterialIcon('terminal', 'gigantic', {
css: `font-size: ${Math.min(w, h) * userOptions.overview.scale / 2.5}px`,
@@ -424,4 +424,4 @@ export default (overviewMonitor = 0) => {
)
}),
});
}
}