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.cr

Enum Members

UltraThin = 0
Thin = 1
Regular = 2
Thick = 3
Chrome = 4

Constructors

Instance Method Summary

Constructor Detail

def self.from_symbol(sym : Symbol) : ThicknessStep #

Convert from the legacy Symbol form. Falls back to Regular for unknown symbols — matches the prior step(:foo) fallback semantics.


[View source]

Instance Method Detail

def chrome? #

Returns true if this enum value equals Chrome


[View source]
def regular? #

Returns true if this enum value equals Regular


[View source]
def thick? #

Returns true if this enum value equals Thick


[View source]
def thin? #

Returns true if this enum value equals Thin


[View source]
def to_key : String #

Canonical lowercase snake_case key (matches the legacy Symbol convention :ultra_thin / :thin / :regular / :thick / :chrome).


[View source]
def to_symbol : Symbol #

The legacy Symbol form, used by backwards-compat shims that still accept Symbol parameters.


[View source]
def ultra_thin? #

Returns true if this enum value equals UltraThin


[View source]