CanvasTheme
Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll
The theme’s brushes, numbers and fonts as a control finds them (dark or light), for what is drawn in code: a node canvas (NodeCanvasPainter), an overlay on a picture.
public class CanvasThemeConstructors
Section titled “Constructors”CanvasTheme
Section titled “CanvasTheme”CanvasTheme(Control control)The theme’s brushes, numbers and fonts as a control finds them (dark or light), for what is drawn in code: a node canvas (NodeCanvasPainter), an overlay on a picture.
Methods
Section titled “Methods”FormattedText Body(string text, IBrush brush, FontWeight weight = Normal)The theme’s body text (12 px).
IBrush Brush(string key)The theme’s brush of key (for example Oadm.Accent), grey when the theme has none.
Typeface Font(string key, FontWeight weight = Normal)The theme’s font family of key at weight, else the default font.
Number
Section titled “Number”double Number(string key, double fallback)The theme’s number of key (a font size, a radius), else fallback.
FormattedText Small(string text, IBrush brush, string font = "Oadm.FontFamily")The theme’s small text (11 px), e.g. the tags and labels on a picture.
static IBrush Tint(IBrush brush, double opacity)A brush of the same colour at opacity.