forked from Shinonome/dots-hyprland
overview: make app icons work more properly
This commit is contained in:
@@ -74,11 +74,15 @@ export default () => {
|
|||||||
|
|
||||||
if (c.length == 0) c = initialClass;
|
if (c.length == 0) c = initialClass;
|
||||||
const iconName = substitute(c);
|
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,
|
icon: iconName,
|
||||||
size: Math.min(w, h) * userOptions.overview.scale / 2.5,
|
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({
|
return Widget.Button({
|
||||||
attribute: {
|
attribute: {
|
||||||
|
|||||||
Reference in New Issue
Block a user