Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SF Symbol support for tool bar, Touch Bar, menu icons #1329

Merged

Commits on Oct 30, 2022

  1. Add SF Symbol support for tool bar, Touch Bar, menu icons

    Can now specify SF Symbols for tool bar / Touch Bar icons. The API
    remains the same where we use the "icon=" syntax in Vim menus to specify
    the icon, and just passing in the symbol name (e.g. 'gear.circle'). Also
    extended this to system named images like 'NSAdvanced' (the old gear
    shaped image), as previously we only had a specical case for Touch Bar
    system named template images. When loading the icon, MacVim will
    automatically determine whether it's an SF Symbol, system named image,
    or a file.
    
    SF Symbols can also be customized to be of a particular symbol style, or
    have a variable number set, by using colon-delimted option strings. For
    example: `aqi.high:palette:variable-0.5` is a symbol that uses the
    palette style, set to 0.5 variable value.
    
    Menu items now also support icons, the same as tool bars. We still don't
    support specifying icons for a submenu (which has been an issue for
    Touch Bar) since the Vim menu API doesn't support a way to do so.
    
    Also add an ability to use a `:template` value to specify that an image
    file is a template image. This is important to fix a minor regression
    introduced in macvim-dev#1214 where every image loaded in were assumed to be
    template.
    
    Add documentation to make this clear. See `:help macvim-toolbar-icon`.
    
    Also see comment in macvim-dev#1105 which requested this feature
    ychin committed Oct 30, 2022
    Configuration menu
    Copy the full SHA
    e3dd806 View commit details
    Browse the repository at this point in the history