layout: add sidebar toggle placement options
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user