ZIm/crates/workspace/src
Nate Butler 04ba75e2e5
Add ui::ContentGroup (#20666)
TL;DR our version of [HIG's
Box](https://developer.apple.com/design/human-interface-guidelines/boxes)

We can't use the name `Box` (because rust) or `ContentBox` (because
taffy/styles/css).

---

This PR introduces the `ContentGroup` component, a flexible container
inspired by HIG's `Box` component. It's designed to hold and organize
various UI elements with options to toggle borders and background fills.

**Example usage**:

```rust
ContentGroup::new()
    .flex_1()
    .items_center()
    .justify_center()
    .h_48()
    .child(Label::new("Flexible ContentBox"))
```

Here are some configurations:

- Default: Includes both border and fill.
- Borderless: No border for a clean look.
- Unfilled: No background fill for a transparent appearance.

**Preview**:

![CleanShot 2024-11-14 at 07 05
15@2x](https://github.com/user-attachments/assets/c838371e-e24f-46f0-94b4-43c078e8f14e)

---

_This PR was written by a large language model with input from the
author._

Release Notes:

- N/A
2024-11-14 08:25:48 -05:00
..
persistence Remove dev servers (#19638) 2024-10-24 12:14:03 -06:00
dock.rs Fix mouse clicks on remote-open-folder UI (#19851) 2024-10-28 12:55:55 -07:00
item.rs Fix mouse clicks on remote-open-folder UI (#19851) 2024-10-28 12:55:55 -07:00
modal_layer.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
notifications.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
pane.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
pane_group.rs Extension refactor (#20305) 2024-11-06 10:06:25 -07:00
persistence.rs Add language toolchains (#19576) 2024-10-28 15:34:03 +01:00
searchable.rs Display buffer/project search entries in the outline panel (#16589) 2024-08-25 21:40:02 +03:00
shared_screen.rs Copy/paste images into editors (Mac only) (#15782) 2024-08-13 13:18:25 -04:00
status_bar.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
tasks.rs Do not allow [re]running ssh tasks when not connected to the server (#19306) 2024-10-16 22:57:39 +03:00
theme_preview.rs Add ui::ContentGroup (#20666) 2024-11-14 08:25:48 -05:00
toolbar.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
workspace.rs Add a way to use splits when opening in file finder (#20507) 2024-11-13 11:58:42 +01:00
workspace_settings.rs workspace: Add settings to dim inactive panes and highlight active pane (#18968) 2024-11-05 17:26:07 +02:00