ComputedStyle record struct Core
A style with every value resolved against one theme - what a tile draws with, and what BoardTile.ComputedStyle reports (mid-transition too). The font properties are null where the tile leaves the text to what it inherits.
public readonly record struct ComputedStyle
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Properties
AccentColor
public Rgba? AccentColor { get; init; }The colour a control marks its value with, or null for the theme's accent.
Background
public Rgba Background { get; init; }Fill of the box; transparent draws none.
BorderColor
public Rgba BorderColor { get; init; }Colour of the border; transparent draws none.
BorderWidth
public double BorderWidth { get; init; }Strength of the border.
CornerRadius
public double CornerRadius { get; init; }Rounding of the box corners.
Cursor
public GridCursor? Cursor { get; init; }The pointer's shape over the tile, or null for the control's own.
FocusRingColor
public Rgba FocusRingColor { get; init; }Colour of the focus ring.
FocusRingOffset
public double FocusRingOffset { get; init; }Gap between the focused part and the inner edge of its ring.
FocusRingRadius
public double? FocusRingRadius { get; init; }Corner radius of the ring's outer edge, or null to follow the focused part's corners.
FocusRingWidth
public double FocusRingWidth { get; init; }Stroke of the focus ring; 0 draws none.
FontFamily
public string? FontFamily { get; init; }Text family, or null to inherit.
FontSize
public double? FontSize { get; init; }Text size, or null to inherit.
FontWeight
public FontWeight? FontWeight { get; init; }Text weight, or null to inherit.
Foreground
public Rgba? Foreground { get; init; }Text colour, or null to inherit.
Lift
public double Lift { get; init; }Rise above the tile's place, in logical units.
Opacity
public double Opacity { get; init; }Opacity of the tile, 0..1.
Padding
public Insets Padding { get; init; }Space between the box and the control.
Shadow
public Rgba Shadow { get; init; }Colour of the shadow; transparent draws none.
ShadowBlur
public double ShadowBlur { get; init; }How far the shadow blurs out.
Methods
Resolve
public static ComputedStyle Resolve(ArionStyle style, ArionTheme theme);style under theme.
