zed/crates/gpui/examples
Marshall Bowers f658af5903
Make border methods always require an explicit width (#11450)
This PR makes the `border` methods require an explicit width instead of
defaulting to 1px.

This breaks convention with Tailwind, but it makes GPUI more consistent
with itself. We already have an edge case where the parameterized method
had to be named `border_width`, since `border` was taken up by an alias
for the 1px variant.

### Before

```rs
div()
    .border()
    .border_t()
    .border_r()
    .border_b()
    .border_l()
    .border_width(px(7.))
```

### After

```rs
div()
    .border_1()
    .border_t_1()
    .border_r_1()
    .border_b_1()
    .border_l_1()
    .border(px(7.))
```

Release Notes:

- N/A
2024-05-06 13:22:47 -04:00
..
image gpui: Improve the image example (#11111) 2024-04-28 20:59:21 -07:00
animation.rs collab ui: Fix notification windows on external monitors (#9817) 2024-03-26 13:07:38 -07:00
hello_world.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
ownership_post.rs More adjustments for blog post 2024-01-18 07:01:46 -07:00
set_menus.rs gpui: add set menus example (#9131) 2024-03-11 09:56:45 +02:00
window_positioning.rs Set appid/wmclass for zed window (#10909) 2024-04-29 09:27:25 -07:00