layout: add unified shell titlebar

This commit is contained in:
2026-11-14 18:17:19 +07:00
parent ce77809132
commit 648cbb9c52
5 changed files with 246 additions and 90 deletions
+3 -1
View File
@@ -17,7 +17,7 @@ gpui = { workspace = true, features = ["test-support"] }
[features]
default = ["full"]
full = ["dock", "resize_handle", "resizable", "shell", "window_controls", "toast", "alert"]
full = ["dock", "resize_handle", "resizable", "shell", "titlebar", "window_controls", "toast", "alert"]
dock = [
"shell",
"resize_handle",
@@ -32,12 +32,14 @@ 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",
]
titlebar = ["window_controls"]
toast = ["shell", "gpui-native-core/toast"]
alert = ["shell", "gpui-native-core/alert"]
window_controls = ["dep:gpui-native-icons"]