layout: add sidebar toggle placement options

This commit is contained in:
2026-11-11 15:16:28 +07:00
parent d862559643
commit a0ede5e15a
5 changed files with 461 additions and 32 deletions
+3 -3
View File
@@ -283,10 +283,10 @@ impl Gallery {
});
let center = Dock::new("gallery-dock", self.dock_state.clone())
// The pill bar is the titlebar strip whenever no right sidebar
// sits to its right.
// The pill bar is the titlebar strip whenever no right sidebar sits to its right.
.window_controls(!self.layout_state.read(cx).is_right_sidebar_visible())
.traffic_light_pad(!self.layout_state.read(cx).is_left_sidebar_visible());
.traffic_light_pad(!self.layout_state.read(cx).is_left_sidebar_visible())
.sidebar_toggles(self.layout_state.clone());
let right_sidebar = DockSidebar::new("gallery-dock-sidebar", self.dock_state.clone());