Move sidebar toggle buttons to the status bar

This commit is contained in:
Max Brunsfeld 2022-04-26 13:10:40 -07:00
parent 53ef9b997f
commit 0291f2d54a
14 changed files with 401 additions and 593 deletions

View file

@ -1,9 +1,9 @@
use crate::{ItemHandle, Pane};
use settings::Settings;
use gpui::{
elements::*, AnyViewHandle, ElementBox, Entity, MutableAppContext, RenderContext, Subscription,
View, ViewContext, ViewHandle,
};
use settings::Settings;
pub trait StatusItemView: View {
fn set_active_pane_item(
@ -48,7 +48,7 @@ impl View for StatusBar {
.with_margin_right(theme.item_spacing)
.boxed()
}))
.with_children(self.right_items.iter().map(|i| {
.with_children(self.right_items.iter().rev().map(|i| {
ChildView::new(i.as_ref())
.aligned()
.contained()