overview: make app icons work more properly

This commit is contained in:
end-4
2025-04-03 12:36:00 +02:00
parent 5c1803b754
commit fac7a0193c
@@ -74,11 +74,15 @@ export default () => {
if (c.length == 0) c = initialClass;
const iconName = substitute(c);
const appIcon = iconExists(iconName) ? Widget.Icon({
// const appIcon = iconExists(iconName) ? Widget.Icon({
// 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`,
// });
const appIcon = Widget.Icon({
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`,
});
return Widget.Button({
attribute: {