Adds a parameter-panel example (cargo run -p gpui_widgets --example controls) that demonstrates every form control: float/rational/angle sliders with keying diamonds, a spinbox, a combo box, checkboxes, a radio group, a color picker and a curve editor, printing each edit as a request event. Marks all W1 checklist items done in docs/zh/oak-app-rewrite.md. 65 tests pass.
26 lines
617 B
TOML
26 lines
617 B
TOML
[package]
|
|
name = "gpui_widgets"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
authors = ["Oak <oak@users.noreply.github.com>"]
|
|
description = "Form controls, menus, dialogs and NLE widgets built on gpui"
|
|
publish = true
|
|
license = "Apache-2.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
gpui.workspace = true
|
|
gpui_elements = { path = "../gpui_elements" }
|
|
thiserror.workspace = true
|
|
|
|
[dev-dependencies]
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
gpui_platform = { workspace = true, features = ["font-kit", "wayland", "x11"] }
|
|
|
|
[[example]]
|
|
name = "controls"
|
|
path = "examples/controls.rs"
|