Table of Contents

Class VectorStyle

Namespace
PluginUI
Assembly
PluginUI.dll

Visual parameters of vector-drawn controls (the "IVStyle" of iPlug2): what to show and which colors to use. Every control resolves its style as control.Style ?? theme.StyleFor(control); derive variants with with.

public sealed record VectorStyle : IEquatable<VectorStyle>
Inheritance
VectorStyle
Implements
Inherited Members

Constructors

VectorStyle(Color, Color, Color, Color, Color, Color, Color, Color, Color, TextStyle, TextStyle, bool, bool, bool, bool, float, float, float, float, float, float)

Visual parameters of vector-drawn controls (the "IVStyle" of iPlug2): what to show and which colors to use. Every control resolves its style as control.Style ?? theme.StyleFor(control); derive variants with with.

public VectorStyle(Color Background, Color Fill, Color Pressed, Color Frame, Color Accent, Color LabelColor, Color ValueColor, Color Shadow, Color Hover, TextStyle LabelText, TextStyle ValueText, bool ShowLabel = true, bool ShowValue = true, bool DrawFrame = true, bool DrawShadow = true, float Roundness = 0.3, float FrameThickness = 1, float TrackThickness = 4, float ShadowBlur = 5, float ShadowOffset = 2, float WidgetFraction = 1)

Parameters

Background Color
Fill Color
Pressed Color
Frame Color
Accent Color
LabelColor Color
ValueColor Color
Shadow Color
Hover Color
LabelText TextStyle
ValueText TextStyle
ShowLabel bool
ShowValue bool
DrawFrame bool
DrawShadow bool
Roundness float
FrameThickness float
TrackThickness float
ShadowBlur float
ShadowOffset float
WidgetFraction float

Properties

Accent

public Color Accent { get; init; }

Property Value

Color

Background

public Color Background { get; init; }

Property Value

Color

DrawFrame

public bool DrawFrame { get; init; }

Property Value

bool

DrawShadow

public bool DrawShadow { get; init; }

Property Value

bool

Fill

public Color Fill { get; init; }

Property Value

Color

Frame

public Color Frame { get; init; }

Property Value

Color

FrameThickness

public float FrameThickness { get; init; }

Property Value

float

Hover

public Color Hover { get; init; }

Property Value

Color

LabelColor

public Color LabelColor { get; init; }

Property Value

Color

LabelText

public TextStyle LabelText { get; init; }

Property Value

TextStyle

Pressed

public Color Pressed { get; init; }

Property Value

Color

Roundness

public float Roundness { get; init; }

Property Value

float

Shadow

public Color Shadow { get; init; }

Property Value

Color

ShadowBlur

public float ShadowBlur { get; init; }

Property Value

float

ShadowOffset

public float ShadowOffset { get; init; }

Property Value

float

ShowLabel

public bool ShowLabel { get; init; }

Property Value

bool

ShowValue

public bool ShowValue { get; init; }

Property Value

bool

TrackThickness

public float TrackThickness { get; init; }

Property Value

float

ValueColor

public Color ValueColor { get; init; }

Property Value

Color

ValueText

public TextStyle ValueText { get; init; }

Property Value

TextStyle

WidgetFraction

public float WidgetFraction { get; init; }

Property Value

float

Methods

Bare()

Returns a variant without label and value texts.

public VectorStyle Bare()

Returns

VectorStyle

WithAccent(Color)

Returns a variant with another accent color.

public VectorStyle WithAccent(Color accent)

Parameters

accent Color

Returns

VectorStyle