enum
UI::DesignTokens::ThicknessStep
Overview
Discrete thickness step. Drives web backdrop-filter: blur(...) radius
and Android RenderEffect.createBlurEffect radius via the per-step
blur_radius and opacity constants on MaterialStep.
Defined in:
ui/design_tokens/material.crEnum Members
-
UltraThin =
0 -
Thin =
1 -
Regular =
2 -
Thick =
3 -
Chrome =
4
Constructors
-
.from_symbol(sym : Symbol) : ThicknessStep
Convert from the legacy Symbol form.
Instance Method Summary
-
#chrome?
Returns
trueif this enum value equalsChrome -
#regular?
Returns
trueif this enum value equalsRegular -
#thick?
Returns
trueif this enum value equalsThick -
#thin?
Returns
trueif this enum value equalsThin -
#to_key : String
Canonical lowercase snake_case key (matches the legacy Symbol convention
:ultra_thin/:thin/:regular/:thick/:chrome). -
#to_symbol : Symbol
The legacy Symbol form, used by backwards-compat shims that still accept
Symbolparameters. -
#ultra_thin?
Returns
trueif this enum value equalsUltraThin
Constructor Detail
Convert from the legacy Symbol form. Falls back to Regular for
unknown symbols — matches the prior step(:foo) fallback semantics.
Instance Method Detail
Canonical lowercase snake_case key (matches the legacy Symbol
convention :ultra_thin / :thin / :regular / :thick / :chrome).
The legacy Symbol form, used by backwards-compat shims that still
accept Symbol parameters.