enum UI::LabelRole

Overview

Semantic Apple label roles. Unlike ThemeColor (a baked RGBA value), a LabelRole is a symbolic reference that the AppKit / UIKit renderers resolve at render time to the platform's dynamic system color (NSColor.labelColor / UIColor.labelColor and siblings). These track the current appearance (light / dark) and accessibility Increase Contrast automatically.

Defined in:

ui/theme.cr

Enum Members

Primary = 0
Secondary = 1
Tertiary = 2
Quaternary = 3

Instance Method Summary

Instance Method Detail

def primary? #

Returns true if this enum value equals Primary


[View source]
def quaternary? #

Returns true if this enum value equals Quaternary


[View source]
def secondary? #

Returns true if this enum value equals Secondary


[View source]
def tertiary? #

Returns true if this enum value equals Tertiary


[View source]