Vixen
02b45cc4
csharp
public static class EditorIcons

The glyphs the editor's own chrome is drawn with.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

ControlIcons' eight are what a checkbox and a combo box cannot be drawn without. These are what a toolbar cannot be drawn without, which is a different and larger set: doc 20 puts the full editor icon set at roughly a hundred and twenty glyphs and calls it a design dependency rather than an engineering one. What is here is the part the shell needs in order to have a toolbar at all, drawn on the same 24×24 grid so that a real set drops in by name.

⚠ A command with no icon is a labelled button, not a blank one. ToolbarPresenter already falls back to the title, which is doc 20's stated mitigation for exactly this: a missing glyph must cost a wider button and never a button nobody can identify. Nothing here is required by anything.

⚠ One instance each, shared, and mutable all the same. The same bargain ControlIcons makes and for the same reason — Icon scales into a buffer of its own and only reads these — so a caller that mutates one has changed every toolbar in the process.

Fields and properties (34)

  • public static PathBuilder RadioMark

    A filled dot. What marks the chosen member of a radio group.

  • public static PathBuilder New

    A page with a corner turned. New.

  • public static PathBuilder Open

    A folder, open. Open.

  • public static PathBuilder Save

    A floppy disk, because nothing better has ever been agreed on. Save.

  • public static PathBuilder Undo

    An arrow curving back. Undo.

  • public static PathBuilder Redo

    The same, the other way. Redo.

  • public static PathBuilder Delete

    A bin. Delete.

  • public static PathBuilder Translate

    Four arrowheads from a centre. The translate gizmo.

  • public static PathBuilder Rotate

    A ring with an arrowhead on it. The rotate gizmo.

  • public static PathBuilder Scale

    A small square and a large one, cornered. The scale gizmo.

  • public static PathBuilder World

    A globe, of two lines. World space.

  • public static PathBuilder Snap

    A horseshoe. Snapping.

  • public static PathBuilder Grid

    Crossed lines. The floor grid.

  • public static PathBuilder Play

    A triangle. Play.

  • public static PathBuilder Pause

    Two bars. Pause.

  • public static PathBuilder Stop

    A square. Stop.

  • public static PathBuilder Step

    A triangle against a bar. Step one frame.

  • public static PathBuilder Settings

    A cog. Settings.

  • public static PathBuilder Layout

    Two panes and a sidebar. A layout.

  • public static PathBuilder Build

    A hammer's head. Build.

  • public static PathBuilder Profiler

    A stopwatch. The profiler, and anything that measures.

  • public static PathBuilder Console

    A speech line and a chevron. The console.

  • public static PathBuilder Folder

    A folder, closed. What a directory row and a directory tile draw.

  • public static PathBuilder File

    A page with a corner turned. A file nothing more specific claims.

  • public static PathBuilder Cube

    A wireframe box. An entity carrying a mesh.

  • public static PathBuilder Light

    A disc with rays. An entity carrying a light.

  • public static PathBuilder Camera

    A body and a lens hood. An entity carrying a camera.

  • public static PathBuilder Entity

    Three axes from a point. An entity carrying nothing but a transform.

  • public static PathBuilder Component

    A chip with pins. A component, where nothing more specific is declared.

  • public static PathBuilder Speaker

    A cone and two arcs. An entity that makes a noise.

  • public static PathBuilder Eye

    An open eye. A row the scene is drawing.

  • public static PathBuilder EyeOff

    The same eye with a stroke through it. A row that is hidden.

  • public static PathBuilder Help

    A question mark's dot and hook. Help.

  • public static IReadOnlyDictionary<string, PathBuilder> All

    Every glyph above, by the id a plugin or a theme would name it.

Methods (1)

  • public static PathBuilder? Find(string id)

    The glyph with an id, or .

Used by (8)

  • ChromeFixtureVixen.Editor.Ui.Tests
  • ComponentsViewVixen.Editor.App
  • EditorApplicationVixen.Editor.App
  • MenuPresenterVixen.Editor.Ui
  • OutlinerColumnTestsVixen.Editor.App.Tests
  • StandardIconsVixen.Editor.App
  • ToolbarPresenterVixen.Editor.Ui
  • ToolbarSectionTestsVixen.Editor.Ui.Tests