struct Tessell::Kit::Palette

Overview

语义色。组件不得在绘制代码里直接写最终色值。

Defined in:

tessell/kit/theme.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(canvas : UInt32, surface : UInt32, surface_raised : UInt32, foreground : UInt32, muted : UInt32, border : UInt32, accent : UInt32, accent_hover : UInt32, accent_pressed : UInt32, accent_foreground : UInt32, danger : UInt32, danger_hover : UInt32, danger_pressed : UInt32, danger_foreground : UInt32, success : UInt32, focus : UInt32, selection : UInt32, scrim : UInt32) #

[View source]

Instance Method Detail

def accent : UInt32 #

[View source]
def accent_foreground : UInt32 #

[View source]
def accent_hover : UInt32 #

[View source]
def accent_pressed : UInt32 #

[View source]
def border : UInt32 #

[View source]
def canvas : UInt32 #

[View source]
def danger : UInt32 #

[View source]
def danger_foreground : UInt32 #

[View source]
def danger_hover : UInt32 #

[View source]
def danger_pressed : UInt32 #

[View source]
def focus : UInt32 #

[View source]
def foreground : UInt32 #

[View source]
def muted : UInt32 #

[View source]
def scrim : UInt32 #

[View source]
def selection : UInt32 #

[View source]
def success : UInt32 #

[View source]
def surface : UInt32 #

[View source]
def surface_raised : UInt32 #

[View source]