Commit Graph
66 Commits
Author SHA1 Message Date
Nathan Sobo 258fcaea94 Position drag handle relative to cursor 2023-10-23 15:20:33 +02:00
Nathan Sobo fc927f7406 Checkpoint 2023-10-23 15:14:10 +02:00
Nathan Sobo d1adce5890 Show red box when dragging 2023-10-23 15:09:22 +02:00
Nathan Sobo 96f2c4a9de Checkpoint 2023-10-23 14:15:12 +02:00
Nathan Sobo da8919002f Fix runtime errors 2023-10-23 11:34:35 +02:00
Antonio Scandurra 56462ef793 Checkpoint 2023-10-23 10:59:29 +02:00
Antonio Scandurra a0b667a2ca WIP 2023-10-22 19:56:25 +02:00
Antonio Scandurra e7c04d4aca Checkpoint 2023-10-22 18:56:11 +02:00
Antonio Scandurra ce75be91e1 Checkpoint 2023-10-22 18:25:24 +02:00
Antonio Scandurra db6a3e1783 WIP 2023-10-22 18:01:00 +02:00
Antonio Scandurra 7171818d24 WIP 2023-10-22 16:36:29 +02:00
Antonio Scandurra 48033463c8 WIP 2023-10-22 16:33:59 +02:00
Antonio Scandurra 6ffeb048b3 WIP 2023-10-22 16:27:23 +02:00
Antonio Scandurra 5423012368 WIP 2023-10-22 13:15:29 +02:00
Antonio Scandurra f4135e6bcf WIP 2023-10-22 12:21:28 +02:00
Nathan Sobo 909fbb9538 Checkpoint 2023-10-21 19:07:59 +02:00
Antonio Scandurra 2e2825ae98 WIP 2023-10-21 18:41:09 +02:00
Antonio Scandurra 3740c9d852 WIP 2023-10-21 18:33:08 +02:00
Antonio Scandurra 7bb99c9b9c WIP 2023-10-21 18:30:44 +02:00
Antonio Scandurra aa3fb28f81 WIP 2023-10-21 18:21:14 +02:00
Antonio Scandurra b7d30fca2b WIP 2023-10-21 17:52:47 +02:00
Antonio Scandurra e4fe9538d7 Checkpoint 2023-10-21 16:01:47 +02:00
Antonio Scandurra f3979a9f28 Checkpoint 2023-10-21 15:59:52 +02:00
Nathan Sobo d920f7edc1 Add group hovers 2023-10-11 21:34:08 -06:00
Marshall Bowers a4bde421db Revert changes to gpui2 crate 2023-10-07 10:50:50 -04:00
Marshall Bowers f6a4151f60 Merge branch 'main' into gpui2 2023-10-07 10:50:05 -04:00
456baaa112 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 45429b5400 WIP 2023-10-03 14:25:29 -06:00
f26ca0866c 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 568fec0f54 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 f2e87a3429 Add Element::when method 2023-09-18 20:25:12 -06:00
Nathan Sobo c7a3186d08 Checkpoint 2023-09-18 20:17:27 -06:00
Nathan Sobo a5e4ceb735 Checkpoint: Add methods for setting arbitrary lengths 2023-09-18 19:48:22 -06:00
Nate Butler 70a91c5426 Checkpoint 2023-09-15 11:41:21 -04:00
Nathan Sobo 378b2fbd9e WIP 2023-09-14 16:52:04 -06:00
Nate ButlerandNathan Sobo fd10b49742 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 5dad97779a WIP 2023-09-12 07:34:42 -06:00
Nathan Sobo 3ba8857491 Checkpoint 2023-09-11 12:58:55 -06:00
Nathan Sobo e0fdc7d0aa Eliminate PaintContext 2023-09-11 09:00:59 -06:00
Nathan Sobo a24d94cfda Eliminate LayoutContext 2023-09-11 08:47:00 -06:00
Nathan Sobo ebf8b32811 Checkpoint 2023-09-08 16:25:10 -06:00
Nathan Sobo c3b1264c05 Checkpoint 2023-09-08 14:09:29 -06:00
Nathan Sobo 53a50b8df4 Move refreshing to window 2023-09-08 13:27:29 -06:00
Nathan Sobo 21d390fa4a Support overflow scroll 2023-09-08 10:20:45 -06:00
Nathan Sobo 713d72942d Fix bounds calculations 2023-09-08 06:45:23 -06:00
Nathan Sobo 7738867639 Always pass parent origin when painting elements 2023-09-08 06:32:20 -06:00
Nathan Sobo d311bd04ff Add basic inspector 2023-09-07 22:24:02 -06:00
Nate Butler 14ea5a1485 Checkpoint 2023-09-07 16:01:32 -04:00
Nathan Sobo a8d5d93757 Max out corner radii to half the smaller dimension of the parent box 2023-09-06 17:21:05 -06:00
Nathan Sobo 99ad60460a Add support for fetching/rendering images 2023-09-06 17:13:43 -06:00