Nathan Sobo
c9e6d09f23
Add group hovers
2023-10-11 21:34:08 -06:00
Marshall Bowers
e536d37774
Revert changes to gpui2 crate
2023-10-07 10:50:50 -04:00
Marshall Bowers
f403508188
Merge branch 'main' into gpui2
2023-10-07 10:50:05 -04:00
fcd44e93d3
Mainline GPUI2 UI work ( #3099 )
...
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.
Included in this is a performance improvement to make use of the
`TextLayoutCache` when calling `layout` for `Text` elements.
Release Notes:
- N/A
---------
Co-authored-by: Nate Butler <iamnbutler@gmail.com >
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2023-10-06 13:18:56 -04:00
Nathan Sobo
353ec430ef
WIP
2023-10-03 14:25:29 -06:00
d54c6c2066
Mainline GPUI2 UI work ( #3062 )
...
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.
Release Notes:
- N/A
---------
Co-authored-by: Nate Butler <iamnbutler@gmail.com >
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
Co-authored-by: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com >
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com >
Co-authored-by: Nate <nate@zed.dev >
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-09-28 19:36:21 -04:00
Marshall Bowers
dc103130d4
Add Sized bound to StyleHelpers ( #3042 )
...
This PR adds a `Sized` bound to the `StyleHelpers` trait.
All of the individual methods on this trait already had a `Self: Sized`
bound, so moving it up to the trait level will make it so we don't have
to repeat ourselves so much.
There's an open question of whether we can hoist the `Sized` bound to
`Styleable`, but it's possible there are cases where we'd want to have a
`Styleable` trait object.
Release Notes:
- N/A
2023-09-26 18:15:41 -04:00
Nathan Sobo
1c8ce737b2
Add Element::when method
2023-09-18 20:25:12 -06:00
Nathan Sobo
4b86052007
Checkpoint
2023-09-18 20:17:27 -06:00
Nathan Sobo
4b3522984c
Checkpoint: Add methods for setting arbitrary lengths
2023-09-18 19:48:22 -06:00
Nate Butler
616fb506a7
Checkpoint
2023-09-15 11:41:21 -04:00
Nathan Sobo
58ac12ae05
WIP
2023-09-14 16:52:04 -06:00
Nate Butler and Nathan Sobo
60629b7be2
Fix .active() interaction state
...
Co-Authored-By: Nathan Sobo <1789+nathansobo@users.noreply.github.com >
2023-09-13 13:56:13 -04:00
Nathan Sobo
1ccd2eda6b
WIP
2023-09-12 07:34:42 -06:00
Nathan Sobo
c770e06c0c
Checkpoint
2023-09-11 12:58:55 -06:00
Nathan Sobo
b2968c2d11
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
950ac4fbc6
Eliminate LayoutContext
2023-09-11 08:47:00 -06:00
Nathan Sobo
20da2b4621
Checkpoint
2023-09-08 16:25:10 -06:00
Nathan Sobo
b006b8f4f3
Checkpoint
2023-09-08 14:09:29 -06:00
Nathan Sobo
a1cc229417
Move refreshing to window
2023-09-08 13:27:29 -06:00
Nathan Sobo
d28057c86e
Support overflow scroll
2023-09-08 10:20:45 -06:00
Nathan Sobo
b6617be452
Fix bounds calculations
2023-09-08 06:45:23 -06:00
Nathan Sobo
f3ddd3d794
Always pass parent origin when painting elements
2023-09-08 06:32:20 -06:00
Nathan Sobo
82fdb5f091
Add basic inspector
2023-09-07 22:24:02 -06:00
Nate Butler
94dd535d43
Checkpoint
2023-09-07 16:01:32 -04:00
Nathan Sobo
cad48520b4
Max out corner radii to half the smaller dimension of the parent box
2023-09-06 17:21:05 -06:00
Nathan Sobo
df33a3b609
Add support for fetching/rendering images
2023-09-06 17:13:43 -06:00
Nathan Sobo
501c4c5782
Checkpoint
2023-09-06 15:22:35 -06:00
Nathan Sobo
5348dfa47a
Render borders in gpui2 divs
2023-09-06 14:31:44 -06:00
Nathan Sobo
4f7a2ff0ac
Checkpoint
2023-09-06 14:16:15 -06:00
Nate Butler and Nathan Sobo
1343b4bcff
Add size rounded prefixes
...
Co-Authored-By: Nathan Sobo <1789+nathansobo@users.noreply.github.com >
2023-09-06 14:18:29 -04:00
Nathan Sobo
23c1ed8919
Checkpoint
2023-09-05 18:53:25 -06:00
Nathan Sobo
f7597cbd0e
WIP: Icons not yet rendering
2023-09-05 16:40:52 -06:00
Nathan Sobo
7f52943980
Fix hoverable elements moving on hover
2023-09-05 15:17:09 -06:00
Nate Butler
bde13c90cb
Continue collab_panel
2023-09-05 17:13:33 -04:00
Nate Butler and Nathan Sobo
f2a115d639
Work on sample collab_panel story in the storybook
...
Co-Authored-By: Nathan Sobo <1789+nathansobo@users.noreply.github.com >
2023-09-05 15:19:44 -04:00
Nathan Sobo
28cff3222a
Checkpoint
2023-09-05 12:50:07 -06:00
Nathan Sobo
99cca6a51c
Checkpoint
2023-09-05 12:16:21 -06:00
Nathan Sobo and Nate Butler
91a2f21337
Start sketching a collab panel in storybook
...
Co-Authored-By: Nate Butler <nate@zed.dev >
2023-09-05 10:02:36 -06:00
Nathan Sobo
1ea754b53e
Fix warnings for a clean build
2023-09-01 10:08:41 -06:00
Nathan Sobo
e54c98cc37
Split playground into gpui2 and storybook
2023-08-30 16:12:14 -06:00
Nathan Sobo
04079268fd
Add gpui2 crate
2023-08-30 15:00:11 -06:00
Nathan Sobo
f278fdb342
Checkpoint
2023-08-30 14:40:57 -06:00