fluid.theme

This module defines templates and structs used to build themes, including a set of special setters to use within theme definitions. Because of the amount of general symbols defined by the module, it is not imported by default and has to be imported explicitly. Do not import this globally, but within functions that define themes.

Members

Functions

makeTheme
deprecated Theme makeTheme(Ts )
Undocumented in source. Be warned that the author may not have intended to support it.
opacity
auto opacity(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
when
WhenRule!predicate when(Args args)

Branch out in a rule to apply styling based on a runtime condition.

Mixin templates

DefineStyles
deprecated mixintemplate DefineStyles(args...)
Undocumented in source.
defineStyles
deprecated mixintemplate defineStyles(args...)
Undocumented in source.

Structs

Breadcrumbs
struct Breadcrumbs
Undocumented in source.
ChildrenRule
struct ChildrenRule

A version of Rule that affects children.

Field
struct Field(string fieldName, T)

Field allows defining and performing partial changes to members of Style.

Rule
struct Rule

Rules specify changes that are to be made to the node's style.

Selector
struct Selector

Selector is used to pick a node based on its type and specified tags.

StyleTemplate
struct StyleTemplate
Undocumented in source.
Theme
struct Theme

Node theme.

WhenRule
struct WhenRule(alias dg)
Undocumented in source.

Templates

FieldValue
template FieldValue(T)
Undocumented in source.
children
template children(T : Node = Node, tags...)

Create a rule that affects the children of a node. To be placed inside a regular rule.

rule
template rule(T : Node = Node, tags...)

Create a style rule for the given node.

Meta