Skip to main content

command_icon

Function command_icon 

Source
pub fn command_icon<'a>(
    app: &AppHandle,
    command: &CommandId,
    name: &'a str,
) -> &'a str
Expand description

A command’s icon as menus and the palette show it: the side bars’ toggles declare their icons for the default position (the primary side bar on the left), and mirror them while it is on the right, as the title bar’s toggles do (toggle_icon). Any other command’s icon, or a name that is not a side’s, is shown as declared.