Marshall Bowers
895386cfaf
Mainline Icon
and IconButton
changes ( #3022 )
...
This PR mainlines the `Icon` and `IconButton` changes from the
`gpui2-ui` branch.
Release Notes:
- N/A
Co-authored-by: Nate Butler <nate@zed.dev>
2023-09-22 19:14:12 -04:00
Marshall Bowers
fe4248cf34
Scaffold Toolbar
and Breadcrumb
components ( #3020 )
...
This PR scaffolds the `Toolbar` and `Breadcrumb` components.
Right now they both just consist of hardcoded data.
<img width="846" alt="Screenshot 2023-09-22 at 4 54 00 PM"
src="https://github.com/zed-industries/zed/assets/1486634/70578df2-7216-42d2-97ef-d38b83fb4a25 ">
<img width="799" alt="Screenshot 2023-09-22 at 4 46 04 PM"
src="https://github.com/zed-industries/zed/assets/1486634/73ca3d8a-baf9-4ed4-b4c4-279c674672a3 ">
Release Notes:
- N/A
2023-09-22 16:57:33 -04:00
Marshall Bowers
27e3e09bb9
Label component states in stories ( #3019 )
...
This PR updates the UI component stories to label the various states
that they are in.
Release Notes:
- N/A
2023-09-22 15:48:32 -04:00
Marshall Bowers
71c1e36d1e
Put Theme
behind an Arc
( #3017 )
...
This PR puts the `Theme` returned from the `theme` function behind an
`Arc`.
### Motivation
While working on wiring up window focus events for the `TitleBar`
component we ran into issues where `theme` was holding an immutable
borrow to the `ViewContext` for the entirety of the `render` scope,
which prevented having mutable borrows in the same scope.
### Explanation
To avoid this, we can make `theme` return an `Arc<Theme>` to allow for
cheap clones and avoiding the issues with the borrow checker.
Release Notes:
- N/A
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2023-09-22 13:35:30 -04:00
Nate Butler
d14e4d41ea
Merge branch 'main' into nate/bring-ui-crate-up-to-date
2023-09-21 23:47:17 -04:00
Nate Butler
f54634aeb2
Bring UI crate up to date
2023-09-21 23:46:06 -04:00
Marshall Bowers
5083ab7694
Add TrafficLights
component ( #3011 )
...
This PR adds a `TrafficLights` component for GPUI2.
<img width="861" alt="Screenshot 2023-09-21 at 11 32 10 PM"
src="https://github.com/zed-industries/zed/assets/1486634/0fe0e847-49b3-44dc-bd4c-64f12f0051c1 ">
Release Notes:
- N/A
2023-09-21 23:42:18 -04:00
Nate Butler
8440ac3a54
Fix fmt complaining about order
2023-09-21 20:25:25 -04:00
Nate Butler
1e6ac8caf2
theme::*
-> crate::theme::*;
2023-09-21 20:21:56 -04:00
Marshall Bowers
baa07e935e
Extract UI elements from storybook
into new ui
crate ( #3008 )
...
This PR extracts the various UI elements from the `storybook` crate into
a new `ui` library crate.
Release Notes:
- N/A
2023-09-21 19:25:35 -04:00