Max Brunsfeld
aa0f49d6b3
Merge branch 'main' into picker-actions
2023-11-08 10:49:44 -08:00
5fb0fdd52e
Preserve stateless interactivity when assigning elements an id
...
Co-authored-by: Nathan <nathan@zed.dev >
Co-authored-by: Piotr <piotr@zed.dev >
2023-11-08 10:45:10 -08:00
Marshall Bowers
5fb37a8deb
Remove unused SceneBuilder constructor
2023-11-08 13:30:20 -05:00
8b1491bfb0
Extract a Frame struct from Window
...
Co-Authored-By: Marshall <marshall@zed.dev >
Co-Authored-By: Nathan <nathan@zed.dev >
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-08 13:24:11 -05:00
Antonio Scandurra
4db70841a6
Fix clipping bugs in editor2 ( #3269 )
...
Release Notes:
- N/A
2023-11-08 17:51:39 +01:00
86408a2a85
Fix clipping in Line::draw
...
Co-Authored-By: Nathan <nathan@zed.dev >
Co-Authored-By: Marshall <marshall@zed.dev >
2023-11-08 17:32:21 +01:00
Antonio Scandurra and Nathan
66eb8deb10
Use a consistent clipping strategy for drawing all the primitives
...
Co-Authored-By: Nathan <nathan@zed.dev >
2023-11-08 17:29:05 +01:00
Marshall Bowers
7896996c5c
Fix overflow in UniformList
2023-11-08 11:26:26 -05:00
Marshall Bowers
443543c4a8
Merge branch 'main' into picker
2023-11-08 11:18:54 -05:00
Antonio Scandurra
3761ddc44e
gpui2: Type-erase futures. ( #3266 )
...
Project2's LLVM IR size is ~33-44% bigger than project1 due to the fact
that in gpui2 we call async_task::spawn(_local) with impl Future instead
of dyn Future, which leads to quite a few more instantiations of
RawTask.
LLVM-IR size for project2:
| build_type | main | this branch | project1 |
| debug | 2617795 | 2022814 | 1817866 |
| release | 4439033 | 3715086 | 3314489 |
Note that this PR is in line with what was done in GPUI1 (we've also
boxed futures there).
Release Notes:
- N/A
2023-11-08 14:21:40 +01:00
Piotr Osiewicz
afd33a5881
gpui2: Type-erase futures.
...
Project2's LLVM IR size is ~20-25% bigger than project1 due to the fact that in gpui2 we call async_task::spawn(_local) with impl Future instead of dyn Future, which leads to quite a few more instantiations of RawTask.
LLVM-IR size for project2:
| build_type | main | this branch | project1 |
| debug | 2617795 | 2022814 | 1817866 |
| release | 4439033 | 3715086 | 3314489 |
2023-11-08 13:06:28 +01:00
Antonio Scandurra and Piotr
7fe0dda068
Don't alpha blend when rasterizing paths
...
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-08 12:04:25 +01:00
Antonio Scandurra
00932568f2
Re-enable most of the functionalities in editor2
2023-11-08 11:30:32 +01:00
Nathan Sobo
513c56ca34
Merge remote-tracking branch 'origin/main' into register-actions
2023-11-07 21:56:08 -07:00
Nathan Sobo
f5930b86ae
Simplify actions macro.
2023-11-07 21:48:47 -07:00
Nathan Sobo
bcf8a98ff7
Docs and cleanup
2023-11-07 21:26:51 -07:00
Nathan Sobo
a2fac01ccf
Register actions globally before main
2023-11-07 20:58:37 -07:00
Nathan Sobo
e6128e3c91
WIP
2023-11-07 20:23:02 -07:00
Max Brunsfeld
61c65bcfaf
Merge branch 'main' into picker
2023-11-07 16:57:47 -08:00
Max Brunsfeld and Marshall
60c1d02011
Get basic text input working
...
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-07 16:33:02 -08:00
Max Brunsfeld and Marshall
136c115219
Assign editors as text input handlers
...
Co-authored-by: Marshall <marshall@zed.dev >
2023-11-07 15:44:00 -08:00
4a89dcfdfc
Implement an InputHandler trait for gpui2
...
Co-Authored-By: Marshall <marshall@zed.dev >
Co-Authored-By: Max <max@zed.dev >
Co-Authored-By: Julia <julia@zed.dev >
2023-11-07 16:30:04 -07:00
Mikayla Maki
a729ad29f1
Merge branch 'main' into picker
2023-11-07 11:44:02 -08:00
Max Brunsfeld
2a38753bb8
Merge branch 'main' into picker
2023-11-07 11:27:14 -08:00
Conrad Irwin
ba346432e8
Fix confusing error message
2023-11-07 12:04:21 -07:00
Max Brunsfeld and Mikayla
c2528fd1ca
Rename List -> UniformList
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 11:00:53 -08:00
Max Brunsfeld and Mikayla
841f18e13d
Implement list scroll tracking
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-11-07 10:45:38 -08:00
Conrad Irwin
2d9315082c
Implement Editor::single_line
2023-11-07 11:12:36 -07:00
Antonio Scandurra
7426071844
Implement movement in editor2 ( #3256 )
...
Release Notes:
- N/A
2023-11-07 19:12:09 +01:00
Conrad Irwin
7caf684353
modals2 ( #3247 )
...
New Modal implementation for gpui2
Release Notes:
N/A
2023-11-07 10:56:46 -07:00
Antonio Scandurra
800a03407c
Merge remote-tracking branch 'origin/main' into editor-movement
2023-11-07 18:48:08 +01:00
Max Brunsfeld
30580b8abb
Merge branch 'main' into picker
2023-11-07 09:34:57 -08:00
Antonio Scandurra
fb46fdc925
Merge remote-tracking branch 'origin/main' into editor-movement
2023-11-07 17:54:46 +01:00
Antonio Scandurra
fce2c48f31
WIP
2023-11-07 17:54:14 +01:00
Antonio Scandurra
33ff70942d
Implement scrolling for editor2 ( #3251 )
...
Release Notes:
- N/A
2023-11-07 17:53:57 +01:00
3faa7ead19
Re-introduce a macro for defining actions for ease of use
...
Co-Authored-By: Piotr Osiewicz <piotr@zed.dev >
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-11-07 11:30:58 -05:00
6f2ddc9abe
Add Modals
...
P.S. this is all completely different now
Co-Authored-By: Marshall <marshall@zed.dev >
Co-Authored-By: Julia <julia@zed.dev >
2023-11-07 09:18:34 -07:00
Conrad Irwin
b133cc9d12
gpui event test ( #3249 )
...
- Flesh out gpui2 test support
- Smoke test for event handling
2023-11-07 08:43:15 -07:00
Conrad Irwin
b4afdd0cfe
Fix event ordering issues
2023-11-07 08:29:55 -07:00
ea79cfaa7d
Re-enable scrolling for EditorElement
...
Co-Authored-By: Julia <julia@zed.dev >
Co-Authored-By: Piotr <piotr@zed.dev >
2023-11-07 15:48:08 +01:00
Antonio Scandurra
c4aef05877
Add colors for document highlights
2023-11-07 13:15:08 +01:00
Antonio Scandurra
ccdb5b2857
Merge remote-tracking branch 'origin/main' into editor2-paint
2023-11-07 13:09:48 +01:00
Antonio Scandurra
0dbb8f8b4d
Paint lines
2023-11-07 12:25:33 +01:00
Conrad Irwin
8a573889bd
Smoke test for event handling
2023-11-06 21:05:22 -07:00
Conrad Irwin
6645ea9bd7
Flesh out gpui2 test support
2023-11-06 21:05:11 -07:00
490c08a10a
wip: picker
...
co-authored-by: nathan <nathan@zed.dev >
co-authored-by: max <max@zed.dev >
2023-11-06 17:09:38 -08:00
Mikayla
bb23480495
Checkpoint
2023-11-06 15:11:22 -08:00
Mikayla
97ee77c3f8
Checkpoint
2023-11-06 14:26:10 -08:00
Mikayla
b83856e669
Snapshot for kirill
2023-11-06 12:33:20 -08:00
Conrad Irwin
a914935a6e
Use gpui instead of gpui2 consistenytly
2023-11-06 11:50:33 -07:00