pub enum MacSystemIcon {
    PreferencesGeneral,
    PreferencesAdvanced,
    PreferencesUserAccounts,
    Add,
    Remove,
    Folder,
}
Expand description

These icons are system-provided icons that are guaranteed to exist in all versions of macOS that Cacao supports. These will use SFSymbols on Big Sur and onwards (11.0+), and the correct controls for prior macOS versions.

Note that this list is by default small, as icons that match across OS’s is limited in nature. You’ll need to determine if and/or how you choose to support icons for systems older than Big Sur; SFSymbols does not exist on Catalina, Mojave, and earlier.

You can opt to include vector assets in your bundle, or draw icons with Image::draw by converting Core Graphics calls (e.g, PaintCode can work well for this).

Variants

PreferencesGeneral

A standard “General” preferences icon. This is intended for usage in Preferences toolbars.

PreferencesAdvanced

A standard “Advanced” preferences icon. This is intended for usage in Preferences toolbars.

PreferencesUserAccounts

A standard “Accounts” preferences icon. This is intended for usage in Preferences toolbars.

Add

Returns a stock “+” icon that’s common to the system. Use this for buttons that need the symbol.

Remove

A stock “-” icon that’s common to the system. Use this for buttons that need the symbol.

Folder

Returns a Folder icon.

Implementations

Maps system icons to their pre-11.0 framework identifiers.

Maps system icons to their SFSymbols-counterparts for use on 11.0+.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.