From fac7a0193c4d9747e9fac04a32e55ecba2784b77 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:36:00 +0200 Subject: [PATCH] overview: make app icons work more properly --- .config/ags/modules/overview/overview_hyprland.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index d4f7cc3ae..dae007aca 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -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: {