ZIm/crates/ui
Marshall Bowers 3cdd465226
gpui: Make style macros more composable (#14007)
This PR begins the process of breaking up the `style_helpers!` macro
into smaller macros that can be used to generate methods for a related
subset of styles.

The style method macros also now accept an optional `visibility`
parameter to control the visibility of the generated methods. This
allows for adding these methods to a struct instead of a just a trait.

For example, to expose just the padding styles on a `Facepile` we can do
this:

```rs
impl Facepile {
    fn style(&mut self) -> &mut StyleRefinement {
        self.base.style()
    }

    gpui::padding_style_methods!({
        visibility: pub
    });
}
```

Release Notes:

- N/A
2024-07-09 13:52:52 -04:00
..
docs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
src gpui: Make style macros more composable (#14007) 2024-07-09 13:52:52 -04:00
Cargo.toml Preserve sections generated by slash commands when reloading a context (#13199) 2024-06-18 14:49:53 +02:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00