layout: replace dock with simple titlebar and panel row

This commit is contained in:
2026-11-15 10:08:24 +07:00
parent 33f8856bc2
commit 2d85db215b
13 changed files with 836 additions and 2442 deletions
+12 -21
View File
@@ -2,14 +2,13 @@
name = "gpui-native-layout"
version = "0.1.0"
edition = "2024"
description = "Application layout bootstrap: sidebars and a center dock, one cargo feature each"
description = "Application window layout: a titlebar over a panel row, one cargo feature each"
[dependencies]
gpui = { workspace = true }
gpui-native-theme = { workspace = true }
gpui-native-utils = { workspace = true }
gpui-native-core = { workspace = true, optional = true }
gpui-native-data = { workspace = true, optional = true, features = ["sidebar"] }
gpui-native-icons = { workspace = true, optional = true }
[dev-dependencies]
@@ -17,29 +16,21 @@ gpui = { workspace = true, features = ["test-support"] }
[features]
default = ["full"]
full = ["dock", "resize_handle", "resizable", "shell", "titlebar", "window_controls", "toast", "alert"]
dock = [
"shell",
full = [
"alert",
"panel",
"resize_handle",
"dep:gpui-native-core",
"dep:gpui-native-data",
"dep:gpui-native-icons",
"gpui-native-core/context_menu",
"gpui-native-data/tabs",
"resizable",
"shell",
"titlebar",
"toast",
"window_controls",
]
panel = ["resizable"]
resize_handle = []
resizable = ["resize_handle"]
shell = [
"resize_handle",
"titlebar",
"window_controls",
"dep:gpui-native-core",
"gpui-native-core/button",
"dep:gpui-native-data",
"dep:gpui-native-icons",
]
shell = ["titlebar", "window_controls"]
titlebar = ["window_controls"]
toast = ["shell", "gpui-native-core/toast"]
alert = ["shell", "gpui-native-core/alert"]
toast = ["shell", "gpui-native-core/toast", "gpui-native-core/button"]
alert = ["shell", "gpui-native-core/alert", "gpui-native-core/button"]
window_controls = ["dep:gpui-native-icons"]