Vixen
02b45cc4
csharp
public static class EditorArt

Finding the picture for a type or for a file.

Read the guide page for this →

Remarks

⚠ Over a list rather than over the registry, which keeps this assembly where it is. IEditorRegistry lives in Vixen.Editor.Core with the documents and the command stack, and the shell deliberately knows about neither — so a caller passes registry.All<TypeIcon>() and the matching rule stays in one place all the same.

Methods (2)

  • public static IconArt? Of(IReadOnlyList<TypeIcon> icons, Type? type)

    The picture declared for a type, or for the nearest base type that has one.

  • public static IconArt? Of(IReadOnlyList<AssetIcon> icons, string? importer, string? name)

    The picture for a file, by what claimed it and then by what it is called.

Used by (4)

  • ComponentsViewVixen.Editor.App
  • GridViewTestsVixen.Editor.App.Tests
  • IconContributionTestsVixen.Editor.App.Tests
  • ProjectBrowserVixen.Editor.App