alfred3.util.icon#
- alfred3.util.icon(name: str, ml: int = 0, mr: int = 0, size: str = '1rem', spin: bool = False) str [source]#
Returns HTML code for displaying font-awesome icons.
These icons can be used in all places where HTML code is rendered, i.e. TextElements, and all labels of elements.
- Parameters
name – The icon name, as shown on https://fontawesome.com/icons?d=gallery&m=free
ml – Margin to the left, can be an integer from 0 to 5.
mr – Margin to the right, can be an integer from 0 to 5.