Table of Contents

Class InkwellTheme

Namespace
The.Web.Shell
Assembly
Instagile.Web.Client.dll
public class InkwellTheme : CancellableComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
InkwellTheme
Implements
Inherited Members

Fields

DarkModePreference

Preference key for the stored colour-scheme choice: true (dark), false (light), or unset (follow the platform).

public const string DarkModePreference = "The.Web.DarkMode"

Field Value

string

Properties

BaseUnit

The base metric unit, in pixels. Defaults to 4 in the compact register and 5 in low density; set to override either.

[Parameter]
public int? BaseUnit { get; set; }

Property Value

int?

ChildContent

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

DarkMode

Forces dark (true) or light (false) presentation. When null, the current user's stored DarkModePreference applies, and users without one follow the platform's prefers-color-scheme.

[Parameter]
public bool? DarkMode { get; set; }

Property Value

bool?

LowDensity

Rescales the core metrics and switches entity views to the low-density (consumer) register.

[Parameter]
public bool LowDensity { get; set; }

Property Value

bool

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

OnInitialized()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

protected override void OnInitialized()