Module cushy::styles::components
source · Expand description
All style components supported by the built-in widgets.
Structs§
- The set of controls to allow focusing via tab key and initial focus selection.
- The base
Dimension
to use to space multiple lines of text. Unless overridden, all other sizes for built-in widgets will be based on this dimension. - The base
Dimension
to use as the normal text size. Unless overridden, all other sizes for built-in widgets will be based on this dimension. - A set of radius descriptions for how much roundness to apply to the shapes of widgets.
- The background color to use when drawing a default widget that is activated.
- The foreground color to use when drawing a default widget that is activated.
- The background color to use when drawing a default widget.
- The background color to use when drawing a default widget that is disabled.
- The foreground color to use when drawing a default widget that is disabled.
- The foreground color to use when drawing a default widget.
- The background color to use when drawing a default widget that is hovered by the cursor.
- The foreground color to use when drawing a default widget that is hovered by the cursor.
- A
Color
to be used as an outline color. - A
Color
to be used to accent a disabled widget. - The
EasingFunction
to apply to animations that have no inherent directionality. - The
EasingFunction
to apply to animations that transition a value from “nothing” to “something”. For example, if an widget is animating a color’s alpha channel towards opaqueness, it would query for this style component. Otherwise, it would useEasingOut
. - The
EasingFunction
to apply to animations that transition a value from “something” to “nothing”. For example, if an widget is animating a color’s alpha channel towards transparency, it would query for this style component. Otherwise, it would useEasingIn
. - The error color from the current theme.
- A
Color
to be used as to indicate keyboard focus. - The font family to render text using.
- The font style to apply to text rendering.
- The font (boldness) weight to apply to text rendering.
- The
FontFamilyList
to apply to h1 headings. - The
Style
to apply to h1 headings. - The
Weight
to apply to h1 headings. - The
FontFamilyList
to apply to h2 headings. - The
Style
to apply to h2 headings. - The
Weight
to apply to h2 headings. - The
FontFamilyList
to apply to h3 headings. - The
Style
to apply to h3 headings. - The
Weight
to apply to h3 headings. - The
FontFamilyList
to apply to h4 headings. - The
Style
to apply to h4 headings. - The
Weight
to apply to h4 headings. - The
FontFamilyList
to apply to h5 headings. - The
Style
to apply to h5 headings. - The
Weight
to apply to h5 headings. - The
FontFamilyList
to apply to h6 headings. - The
Style
to apply to h6 headings. - The
Weight
to apply to h6 headings. - The default
FontFamilyList
to apply to headings. - The default
Style
to apply to headings. - The default
Weight
to apply to headings. - A
Color
to be used as a highlight color. - The horizontal alignment of the content of a widget.
- Intrinsic, uniform padding for a widget.
- The
VisualOrder
strategy to use when laying out content. - The
Dimension
to use to space multiple lines of text. - The smallest line height on a series of 8 steps.
- The second-smallest line height on a series of 8 steps.
- The base line height on a series of 8 steps.
- The fifth-largest line height on a series of 8 steps.
- The fourth-largest line height on a series of 8 steps.
- The third-largest line height on a series of 8 steps.
- The second-largest line height on a series of 8 steps.
- The largest line height on a series of 8 steps.
- The opaqueness of drawing calls
- A
Color
to be used as a background color for widgets that render an opaque background. - A
Color
to be used as an outline color. - The width of outlines drawn around widgets.
- The primary color from the current theme.
- A
Color
to be use for the transparent surface behind an overlay. - The secondary color from the current theme.
- The
Color
of the surface for the user interface to draw upon. - The tertiary color from the current theme.
- The
Color
to use when rendering text. - The
Color
to use when rendering text in a more subdued tone. - The
Dimension
to use as the size to render text. - The smallest text size on a series of 8 steps.
- The second-smallest text size on a series of 8 steps.
- The base text size on a series of 8 steps.
- The fifth-largest text size on a series of 8 steps.
- The fourth-largest text size on a series of 8 steps.
- The third-largest text size on a series of 8 steps.
- The second-largest text size on a series of 8 steps.
- The largest text size on a series of 8 steps.
- The vertical alignment of the content of a widget.
- A
Color
to be used to accent a widget. - A
Color
to be used as the background color of a widget.