ZIm/crates/ui/src
Danilo Leal 115aa43354
Adjust TintColor color token terminology (#22826)
Previously, to use a green and red shade with `TintColor` you'd need to
pass `Positive` and `Negative`, respectively. This terminology always
tripped me up, because, for example, I'd often try to use something
like:

```
Button::new("icon_color", "Negative")
      style(ButtonStyle::Tinted(TintColor::Negative))
      .color(Color::Error)
      .icon_color(Color::Error)
      .icon(IconName::Trash),
)
```

...and due to `icon_color` taking `Color::Error`, I'd always get
`TintColor` wrong at a first try, because I would, out of muscle memory,
write `TintColor::Error`, which wouldn't compile. That's exactly the
change in this PR—`TintColor` now takes `Success` and `Error` instead of
`Positive` and `Negative`, for more consistency.


Release Notes:

- N/A
2025-01-08 14:40:48 +00:00
..
components Adjust TintColor color token terminology (#22826) 2025-01-08 14:40:48 +00:00
styles ui: Update Checkbox design (#22794) 2025-01-07 21:11:39 +00:00
tests ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
traits Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
utils Add consistency between buffer and project search design (#20754) 2024-11-28 13:39:49 -03:00
components.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
prelude.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
styles.rs Improve experience when themes provide transparent status colors (#13996) 2024-07-09 11:27:47 -04:00
tests.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
traits.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
ui.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
utils.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00