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
BackgroundColorFillColorPressedColorFrameColorAccentColorLabelColorColorValueColorColorShadowColorHoverColorLabelTextTextStyleValueTextTextStyleShowLabelboolShowValueboolDrawFrameboolDrawShadowboolRoundnessfloatFrameThicknessfloatTrackThicknessfloatShadowBlurfloatShadowOffsetfloatWidgetFractionfloat
Properties
Accent
public Color Accent { get; init; }
Property Value
Background
public Color Background { get; init; }
Property Value
DrawFrame
public bool DrawFrame { get; init; }
Property Value
DrawShadow
public bool DrawShadow { get; init; }
Property Value
Fill
public Color Fill { get; init; }
Property Value
Frame
public Color Frame { get; init; }
Property Value
FrameThickness
public float FrameThickness { get; init; }
Property Value
Hover
public Color Hover { get; init; }
Property Value
LabelColor
public Color LabelColor { get; init; }
Property Value
LabelText
public TextStyle LabelText { get; init; }
Property Value
Pressed
public Color Pressed { get; init; }
Property Value
Roundness
public float Roundness { get; init; }
Property Value
Shadow
public Color Shadow { get; init; }
Property Value
ShadowBlur
public float ShadowBlur { get; init; }
Property Value
ShadowOffset
public float ShadowOffset { get; init; }
Property Value
ShowLabel
public bool ShowLabel { get; init; }
Property Value
ShowValue
public bool ShowValue { get; init; }
Property Value
TrackThickness
public float TrackThickness { get; init; }
Property Value
ValueColor
public Color ValueColor { get; init; }
Property Value
ValueText
public TextStyle ValueText { get; init; }
Property Value
WidgetFraction
public float WidgetFraction { get; init; }
Property Value
Methods
Bare()
Returns a variant without label and value texts.
public VectorStyle Bare()
Returns
WithAccent(Color)
Returns a variant with another accent color.
public VectorStyle WithAccent(Color accent)
Parameters
accentColor