More outlines
This commit is contained in:
parent
7e61d340ce
commit
3c46e81533
1 changed files with 38 additions and 14 deletions
|
@ -1423,14 +1423,18 @@ impl Pane {
|
||||||
.children(
|
.children(
|
||||||
item.has_conflict(cx)
|
item.has_conflict(cx)
|
||||||
.then(|| {
|
.then(|| {
|
||||||
IconElement::new(Icon::ExclamationTriangle)
|
div().border().border_color(gpui::red()).child(
|
||||||
.size(ui::IconSize::Small)
|
IconElement::new(Icon::ExclamationTriangle)
|
||||||
.color(Color::Warning)
|
.size(ui::IconSize::Small)
|
||||||
|
.color(Color::Warning),
|
||||||
|
)
|
||||||
})
|
})
|
||||||
.or(item.is_dirty(cx).then(|| {
|
.or(item.is_dirty(cx).then(|| {
|
||||||
IconElement::new(Icon::ExclamationTriangle)
|
div().border().border_color(gpui::red()).child(
|
||||||
.size(ui::IconSize::Small)
|
IconElement::new(Icon::ExclamationTriangle)
|
||||||
.color(Color::Info)
|
.size(ui::IconSize::Small)
|
||||||
|
.color(Color::Info),
|
||||||
|
)
|
||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
.children((!close_right).then(|| close_icon()))
|
.children((!close_right).then(|| close_icon()))
|
||||||
|
@ -1461,12 +1465,22 @@ impl Pane {
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.gap_px()
|
.gap_px()
|
||||||
.child(IconButton::new("navigate_backward", Icon::ArrowLeft).state(
|
.child(
|
||||||
InteractionState::Enabled.if_enabled(self.can_navigate_backward()),
|
div().border().border_color(gpui::red()).child(
|
||||||
))
|
IconButton::new("navigate_backward", Icon::ArrowLeft).state(
|
||||||
.child(IconButton::new("navigate_forward", Icon::ArrowRight).state(
|
InteractionState::Enabled
|
||||||
InteractionState::Enabled.if_enabled(self.can_navigate_forward()),
|
.if_enabled(self.can_navigate_backward()),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.child(
|
||||||
|
div().border().border_color(gpui::red()).child(
|
||||||
|
IconButton::new("navigate_forward", Icon::ArrowRight).state(
|
||||||
|
InteractionState::Enabled
|
||||||
|
.if_enabled(self.can_navigate_forward()),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
|
@ -1493,8 +1507,18 @@ impl Pane {
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.gap_px()
|
.gap_px()
|
||||||
.child(IconButton::new("plus", Icon::Plus))
|
.child(
|
||||||
.child(IconButton::new("split", Icon::Split)),
|
div()
|
||||||
|
.border()
|
||||||
|
.border_color(gpui::red())
|
||||||
|
.child(IconButton::new("plus", Icon::Plus)),
|
||||||
|
)
|
||||||
|
.child(
|
||||||
|
div()
|
||||||
|
.border()
|
||||||
|
.border_color(gpui::red())
|
||||||
|
.child(IconButton::new("split", Icon::Split)),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue