layout: make strips the titlebar with window controls

This commit is contained in:
2026-11-02 19:04:13 +07:00
parent f295b25366
commit a6014b4ff3
13 changed files with 603 additions and 62 deletions
+7 -5
View File
@@ -245,11 +245,13 @@ impl Gallery {
}),
)
.child(
div()
.flex_1()
.min_h_0()
.overflow_hidden()
.child(Dock::new("gallery-dock", self.dock_state.clone())),
div().flex_1().min_h_0().overflow_hidden().child(
Dock::new("gallery-dock", self.dock_state.clone())
// The pill bar is the titlebar strip whenever no
// right sidebar sits to its right.
.window_controls(!state.read(cx).is_right_sidebar_visible())
.traffic_light_pad(!state.read(cx).is_left_sidebar_visible()),
),
);
Shell::new("gallery-shell", state)