Files
hyprland/config/ags/icons.ts
T
2024-07-31 06:43:26 +05:45

12 lines
333 B
TypeScript

import { LabelProps } from "types/widgets/label";
export const MaterialIcon = (icon: string, size: string = "24px", props?: LabelProps) =>
Widget.Label({
label: icon,
class_name: "icon material_icon",
css: `font-size: ${size};`,
hpack: "center",
vpack: "center",
...props
});