Vixen
02b45cc4
csharp
public readonly record struct OverlayTheme

What the overlays look like: colours, text size, and the space around things.

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

Remarks

One value passed down rather than each overlay picking its own, so that "everything readable" and "everything out of the way" are one adjustment instead of nine. The defaults are tuned for a bright scene: a dark, mostly opaque backing and light text, because a diagnostic that is legible only over a dark skybox is a diagnostic that vanishes exactly when a level is bright.

Fields and properties (14)

  • public static OverlayTheme Default

    The settings an overlay gets when nobody has said otherwise.

  • public float TextSize

    The cap height of overlay text, in pixels.

  • public float Padding

    How far a panel's contents sit inside its edges, in pixels.

  • public float Margin

    How far a panel sits from the edge of the screen, in pixels.

  • public float Gap

    How far apart two stacked panels sit, in pixels.

  • public float FillSpacing

    How far apart a fill's scanlines are. One is solid; two is half the segments.

  • public Color4 Background

    What is drawn behind a panel.

  • public Color4 Border

    The line round a panel's edge.

  • public Color4 Text

    Ordinary text.

  • public Color4 Heading

    A panel's title, and anything else that labels rather than reports.

  • public Color4 Muted

    Text that has faded out of relevance — an older log line, a disabled entry.

  • public Color4 Good

    A number that is where it should be.

  • public Color4 Warning

    A number that is close to a limit.

  • public Color4 Bad

    A number that is past one.

Methods (2)

  • public OverlayTheme()

    Builds the default theme.

  • public static Color4 Fade(Color4 colour, float alpha)

    The same colour at a different opacity.

Used by (9)

  • AudioOverlayVixen.Audio
  • ConsoleOverlayVixen.Engine
  • ConsoleTestsVixen.Engine.Tests
  • DiagnosticOverlaysVixen.Engine
  • FrameGraphOverlayVixen.Engine
  • FrameStatsOverlayVixen.Engine
  • LogOverlayVixen.Engine
  • OverlayRegionVixen.Engine
  • OverlaySurfaceVixen.Engine