public static class InspectorThemeThe stylesheet the inspector's own elements come with.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A sheet after ControlTheme and AdvancedTheme and written against the same tokens, on the same terms NodeGraphTheme is: the controls a drawer builds are already styled by those two, and what is here is only the six elements this assembly adds — the view, its body, a row, a row's label, a row's editor slot, and the component group a vector drawer builds.
⚠ Both of those have to be loaded first. Every colour below is a var(--…) against a token one of them declares, and a custom property nothing declared substitutes to nothing.
⚠ Without this the inspector lays out as rows of rows. CSS's initial flex-direction is row and LayoutStyleBuilder starts from CSS's initial values, so an element nothing styles is a row — which puts the search box beside the fields, and every member beside the one before it. Each flex-direction: column below that reads as redundant beside a browser stylesheet is not.
⚠ A field's background is --surface-sunken and not --surface. The control set gives a text box --surface, which is right on a page and wrong in a tool window: dock-group is --surface too, so a box drawn in the panel's own colour is a border around nothing. Sunk rather than raised because a field is a hole you type into, which is the convention every editor with a docked inspector already follows.
Fields and properties (1)
public static string CssThe stylesheet's text, for a caller that wants to read or amend it.
Methods (1)
public static int Install(UiDocument document)Loads the theme into a document.
Used by (6)
- BrushInspectorMarkupTestsVixen.Editor.Terrain.Tests
- EditorApplicationVixen.Editor.App
- InspectorFixtureVixen.Editor.Inspector.Tests
- MarkupBindingTestsVixen.Editor.Inspector.Tests
- PanelTestsVixen.Editor.Inspector.Tests
- ViewHarnessVixen.Editor.AssetEditors.Tests