struct UI::DesignTokens::MaterialStep

Overview

One material strength step. #blur_radius is the CSS-px / Android-dp value used when the step is selected by the quantizer; #opacity is the per-step fill opacity used by the web @supports not (backdrop- filter) fallback and the Android API < 31 alpha fallback.

Defined in:

ui/design_tokens/material.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(blur_radius : Float64, opacity : Float64, saturation : Float64, luminance : Float64) #

[View source]

Instance Method Detail

def blur_radius : Float64 #

def clone #

[View source]
def copy_with(blur_radius _blur_radius = @blur_radius, opacity _opacity = @opacity, saturation _saturation = @saturation, luminance _luminance = @luminance) #

[View source]
def luminance : Float64 #

def opacity : Float64 #

def saturation : Float64 #