diff --git a/src/components/bar/modules/systray/index.tsx b/src/components/bar/modules/systray/index.tsx
index 4c13fb0..5a92caf 100644
--- a/src/components/bar/modules/systray/index.tsx
+++ b/src/components/bar/modules/systray/index.tsx
@@ -16,12 +16,12 @@ const createMenu = (menuModel: Gio.MenuModel, actionGroup: Gio.ActionGroup | nul
return menu;
};
-const MenuCustomIcon = ({ iconLabel, iconColor, item }: MenuCustomIconProps): JSX.Element => {
+const MenuCustomIcon = ({ iconLabel, iconColor, iconSize, item }: MenuCustomIconProps): JSX.Element => {
return (
);
@@ -98,10 +98,16 @@ const SysTray = (): BarBoxChild => {
if (matchedCustomIcon !== undefined) {
const iconLabel = custIcons[matchedCustomIcon].icon || '';
const iconColor = custIcons[matchedCustomIcon].color;
+ const iconSize = custIcons[matchedCustomIcon].size || '1.3em';
return (
-
+
);
}
@@ -139,6 +145,7 @@ const SysTray = (): BarBoxChild => {
interface MenuCustomIconProps {
iconLabel: string;
iconColor: string;
+ iconSize: string;
item: AstalTray.TrayItem;
}
diff --git a/src/configuration/modules/config/bar/systray/types.ts b/src/configuration/modules/config/bar/systray/types.ts
index 66db26a..6b8cc11 100644
--- a/src/configuration/modules/config/bar/systray/types.ts
+++ b/src/configuration/modules/config/bar/systray/types.ts
@@ -2,5 +2,6 @@ export type SystrayIconMap = {
[key: string]: {
icon: string;
color: string;
+ size: string;
};
};