MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

MentorTheme enum

The MentorTheme enum of Novior.MentorAgent.Abstractions.Models: Visual theme of the MentorAgent widget.

View as Markdown
On this page

Visual theme of the MentorAgent widget.

Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.

public enum MentorTheme

Terminal
dotnet add package Novior.MentorAgent.Abstractions
ValueNumberDescription
Default0Dark translucent glass with a blue accent: the baseline in MentorAgent.css, a navy panel at 55% opacity over a blur. On a light page it shows as dark grey with the page behind it; there, use MentorTheme.Minimal.
Dark1Dark and nearly opaque: a near-black panel at 85%, darker than MentorTheme.Default. For apps that are already dark, where the default glass looks washed out.
Minimal2Light: a white panel, thin borders and a soft shadow. The theme for a light page.
Custom3No theme overrides: the widget renders like MentorTheme.Default, from the baseline values in MentorAgent.css, and the host's own stylesheet changes what it overrides. PrimaryColor, if set, is still applied. Nothing has to be set by hand.
Auto4Follows the visitor's system setting (prefers-color-scheme): MentorTheme.Minimal when it asks for light, which is also what a browser reports when the system states no preference, and MentorTheme.Default when it asks for dark. It follows the system, not your page: on a page that is always light, a visitor whose system is dark sees the dark widget.