Sigil

Color field

A color input.

GUITUIRuns in the browsercolor_field

Preview

Color field, Default, light themeColor field, Default, dark theme

Usage example

fn color_field_demo() -> ColorFieldBuilder {    color_field(signal(Rgba8 {        r: 90,        g: 140,        b: 255,        a: 255,    }))}
fn color_field_demo()-> ColorFieldBuilder {  color_field(signal(Rgba8 {    r: 90,    g: 140,    b: 255,    a: 255,  }))}

States

All 6 captured states, each drawn by the window host and by the terminal host.

  • Color field, Default, light themeColor field, Default, dark theme
    Default
  • Color field, Hover, light themeColor field, Hover, dark theme
    Hover
  • Color field, Pressed, light themeColor field, Pressed, dark theme
    Pressed
  • Color field, Focused, light themeColor field, Focused, dark theme
    Focused
  • Color field, Disabled, light themeColor field, Disabled, dark theme
    Disabled
  • Color field, Invalid, light themeColor field, Invalid, dark theme
    Invalid

API

NameSignaturePurpose
color_fieldfn color_field(value: Signal<Rgba8>) -> ColorFieldBuilderA color input.