task_ui: Move status indicator into tab bar of terminal panel (#10846)

I'm not a huge fan of this change (& I expect the placement to change).
The plan is to have the button in a toolbar of terminal panel, but I'm
not sure if occupying a whole line of vertical space for a single button
is worth it; I suppose we might want to put more of tasks ui inside of
that toolbar.
Release Notes:

- Removed task status indicator and added "Spawn task" action to
terminal panel context menu.
This commit is contained in:
Piotr Osiewicz 2024-04-23 16:27:18 +02:00 committed by GitHub
parent bcbf2f2fd3
commit 2ee257a562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 46 additions and 120 deletions

View file

@ -193,7 +193,7 @@ pub struct Pane {
last_focus_handle_by_item: HashMap<EntityId, WeakFocusHandle>,
nav_history: NavHistory,
toolbar: View<Toolbar>,
new_item_menu: Option<View<ContextMenu>>,
pub new_item_menu: Option<View<ContextMenu>>,
split_item_menu: Option<View<ContextMenu>>,
// tab_context_menu: View<ContextMenu>,
pub(crate) workspace: WeakView<Workspace>,
@ -1747,7 +1747,7 @@ impl Pane {
)
}
fn render_menu_overlay(menu: &View<ContextMenu>) -> Div {
pub fn render_menu_overlay(menu: &View<ContextMenu>) -> Div {
div().absolute().bottom_0().right_0().size_0().child(
deferred(
anchored()