klyn.gui.windows.AbstractButton.icon
property
public property icon as Icon
Description

Optional image displayed before the button text.

When the button has no text, the image is centered. SVG images use the active text color, including the hover state, so a single vector asset can follow both light and dark themes.

save = Button("Save")
save.icon = Icon("assets/icons/save.svg")