Files
Mike-Solar 16ae7c42df gpui_widgets defect fixes: menu checkmarks, dock ratios, meter orientation, CPU frames, drop-frame timecode
- menu: add runtime set-checked path (MenuItem::set_checked/clear_checked,
  Menu::set_item_checked recursive, MenuBar::set_item_checked)
- dock: Split now stores per-child ratios (sum 1.0) so 3+ panels on one
  axis keep distinct sizes; resize_split_child adjusts a single boundary,
  resize_split keeps its two-arg whole-share semantics; one handle per
  boundary; DockLayoutState VERSION bumped to 2 for the new ratios field
- audio_meter: MeterOrientation::Vertical for the 26px transport strip,
  segments lit bottom to top
- viewer: ViewerFrameSource::CpuFrame + set_cpu_frame (BGRA8 RenderImage
  via the sprite atlas) for platforms without CVPixelBuffer
- timeline: TimeDisplay::TimecodeDropFrame (SMPTE drop-frame for NTSC
  rates, non-drop fallback otherwise)
- gpui_widgets: regression test pinning the fractional spacing helpers
  (py_0p5/py_1p5/py_2p5/py_3p5 already exist; no _0_5 aliases added)
2026-08-10 05:45:53 +08:00

51 lines
1.0 KiB
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"] }
image.workspace = true
smallvec.workspace = true
[target.'cfg(target_os = "macos")'.dev-dependencies]
core-video.workspace = true
[[example]]
name = "controls"
path = "examples/controls.rs"
[[example]]
name = "menus_dialogs"
path = "examples/menus_dialogs.rs"
[[example]]
name = "viewer"
path = "examples/viewer.rs"
[[example]]
name = "project_explorer"
path = "examples/project_explorer.rs"
[[example]]
name = "scopes"
path = "examples/scopes.rs"
[[example]]
name = "themes"
path = "examples/themes.rs"