Files
oak-gpui/crates
Nate Butler a205b2dbf3 Update call controls & Add tinted buttons (#3886)
This PR introduces Tinted button styles and the `selected_style` field
on buttons to allow replicating the previous design of titlebar call
controls. It also updates the styles of the titlebar controls.

### Creating a tinted button:

```
Button::new("accept-cta", "Accept")
    .style(ButtonStyle::Tinted(TintColor::Accent))
    .on_click(...)
```

Ths button will always be tinted blue.

### Creating a button that becomes tinted when selected::

```rust
IconButton::new("screen-share", Icon::Screen)
    .style(ButtonStyle::Subtle)
    .selected(is_screen_sharing)
    .selected_style(ButtonStyle::Tinted(TintColor::Accent))
    .on_click(...),
```

This button will be flat/subtle by default, but be tinted blue when it
is `selected`.

Note: There appears to be some issue where `is_deafened` isn't
activating correctly, making the speaker icon not toggle when selected.

Release Notes:

- Restore call control styles to a similar look to Zed 1.
2024-01-05 11:28:18 -05:00
..
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-04 19:43:12 -07:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-05 00:10:23 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-02 00:04:51 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 20:02:23 -05:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2023-12-28 19:22:43 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-02 00:24:11 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-01 23:56:04 +01:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 23:13:26 -05:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-03 12:59:39 -08:00
2024-01-05 17:48:07 +02:00
2024-01-03 12:59:39 -08:00