Max Brunsfeld
0eae962abf
Represent theme's syntax colors with string keys
...
Co-authored-by: Marshall Bowers <marshall@zed.dev>
2023-10-26 16:38:50 +02:00
Max Brunsfeld
8bc2071414
Fix gpui2 bugs
...
* Compile error for tests that take StdRng
* Dynamic type dowcasting error when emitting events
* Slot error when dropping handles
Co-authored-by: Conrad <conrad@zed.dev>
2023-10-26 15:54:19 +02:00
Marshall Bowers
d62c51a4b8
Merge branch 'gpui2-element-renderer' into zed2
2023-10-26 15:23:02 +02:00
Marshall Bowers
fccc4ca85c
Initialize element before layout
2023-10-26 15:22:48 +02:00
Max Brunsfeld
69e5ecc015
Enable client tests
...
* implement Executor::advance_clock
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Kyle <kyle@zed.dev>
Co-authored-by: Joseph <joseph@zed.dev>
2023-10-26 14:44:13 +02:00
Kirill Bulatov
27d2accb51
Fix the formatting
2023-10-26 13:52:04 +02:00
Kirill Bulatov
0a04c5734b
Update mouse position during file drag and drop
2023-10-26 13:50:35 +02:00
Max Brunsfeld
a4b7e3c9f6
Merge branch 'zed2-hangs' into zed2
2023-10-26 12:48:35 +02:00
Conrad Irwin
065d26f5b2
Get RPC2 tests passing
...
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Kyle <kyle@zed.dev>
2023-10-26 12:47:37 +02:00
Nathan Sobo
0285284ae1
Rename IntoAnyElement trait to Component
2023-10-26 12:46:52 +02:00
Nathan Sobo
8ecfea55cd
Replace derive Element with derive IntoAnyElement everywhere
2023-10-26 12:38:23 +02:00
Antonio Scandurra
06c22206af
Add install_cli2
...
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-Authored-By: Kirill <kirill@zed.dev>
2023-10-26 12:09:54 +02:00
Nathan Sobo
db15db45ce
WIP
2023-10-26 11:31:47 +02:00
Kirill Bulatov
483ac9491a
Start fixing room2
2023-10-26 11:27:12 +02:00
Conrad Irwin
6185c935a6
Fix small bugs in gpui2::test
2023-10-26 11:23:07 +02:00
Nathan Sobo
45a8aea0f0
Make FnOnces that render elements IntoAnyElement
2023-10-26 11:21:42 +02:00
Marshall Bowers
4266ead958
WIP: Trait bounds
2023-10-26 10:46:02 +02:00
Conrad Irwin
5651ef7ca2
Use quit to end tests
2023-10-26 10:40:04 +02:00
Conrad Irwin
51aa0d6a94
Clearer error on importing both gpui and gpui2
2023-10-26 10:39:52 +02:00
Marshall Bowers
8b972f6d8e
WIP: Fix compilation of gpui2
2023-10-26 09:51:33 +02:00
Marshall Bowers
965bfd8439
WIP: Pass in V
to Element
2023-10-26 09:45:26 +02:00
Antonio Scandurra
c5763cdb99
Fix errors in passing TestAppContext in async gpui2 tests
2023-10-25 21:08:00 +02:00
Antonio Scandurra
43d230cb2d
Introduce a gpui2::test
macro
...
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Kyle <kyle@zed.dev>
2023-10-25 21:08:00 +02:00
Marshall Bowers
7ec9cc08c7
Fix z-index targeting for drag and drop
2023-10-25 20:49:40 +02:00
Marshall Bowers
5355007719
Clean up some warnings
2023-10-25 20:40:50 +02:00
Antonio Scandurra
5ba04dce2b
Assert handles are passed to the right contexts
2023-10-25 19:46:13 +02:00
Antonio Scandurra
412c0ff7dc
Add fs2
...
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Conrad <conrad.irwin@gmail.com>
Co-Authored-By: Kyle <kyle@zed.dev>
2023-10-25 19:17:50 +02:00
Antonio Scandurra
1b75603f63
Implement os_name
, os_version
and app_version
for TestPlatform
...
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
Co-Authored-By: Kyle <kyle@zed.dev>
2023-10-25 18:30:06 +02:00
Antonio Scandurra
52f9f90ccb
Implement TestAppContext::new
...
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Conrad <conrad@zed.dev>
Co-Authored-By: Kyle <kyle@zed.dev>
2023-10-25 18:28:05 +02:00
Marshall Bowers
98e2490807
Merge branch 'zed2' of github.com:zed-industries/zed into zed2
2023-10-25 18:20:22 +02:00
Marshall Bowers
a0fe859d87
Make theme converter spit out valid Rust structs
2023-10-25 18:20:16 +02:00
Antonio Scandurra
51fb33d8ef
Allow different app contexts to race
...
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Kyle <kyle@zed.dev>
Co-Authored-By: Conrad <conrad@zed.dev>
2023-10-25 18:11:38 +02:00
Antonio Scandurra
92535ba2c4
Introduce TestAppContext
...
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
Co-Authored-By: Kyle Caverly <kyle@zed.dev>
2023-10-25 17:55:20 +02:00
Antonio Scandurra
6f6495ccbf
Fix error
2023-10-25 17:41:40 +02:00
Antonio Scandurra
3566d920c5
Add deterministic TestDispatcher
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Kyle Caverly <kyle@zed.dev>
2023-10-25 17:33:55 +02:00
Kirill Bulatov
a01b507ef4
Add OS file drop event handler
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-10-24 19:26:06 +02:00
Marshall Bowers
d6bd000aa8
Rename cx.global_default_mut
to cx.global_default
2023-10-24 17:58:14 +02:00
Marshall Bowers
4ca7ddfc42
Finish up ThemeRegistry
and remove AnyAssetSource
2023-10-24 17:47:41 +02:00
Marshall Bowers
51c66f508b
Merge branch 'zed2' into theme2
2023-10-24 17:29:25 +02:00
Marshall Bowers
5fb8321ee0
Merge branch 'zed2' of github.com:zed-industries/zed into zed2
2023-10-24 17:00:11 +02:00
Marshall Bowers
09866ec3e9
WIP
2023-10-24 16:59:24 +02:00
Marshall Bowers
9f8aaa4cdb
Add AnyAssetSource
2023-10-24 16:59:01 +02:00
Antonio Scandurra
11953e613b
Checkpoint
2023-10-24 16:15:20 +02:00
Antonio Scandurra
9aaf7d0c46
Checkpoint
2023-10-24 15:30:16 +02:00
Nathan Sobo
9f9137cf76
Remove failed attempt at eliminating static bounds on entities
2023-10-24 15:12:51 +02:00
Nathan Sobo
2285a35016
Merge branch 'fewer-bounds' into zed2
2023-10-24 14:24:06 +02:00
Nathan Sobo
0910760b76
Reduce the need for Send + Sync bounds on generics
2023-10-24 14:20:01 +02:00
Marshall Bowers
24e21a4c29
Merge branch 'zed2' of github.com:zed-industries/zed into zed2
2023-10-24 14:11:22 +02:00
Marshall Bowers
bb35583998
Merge branch 'gpui2' into zed2
2023-10-24 14:11:13 +02:00
Kirill Bulatov
0e48465adb
Add a draft of the mac platform file drag and drop events
2023-10-24 14:09:46 +02:00
Antonio Scandurra
9a53da28bc
WIP
2023-10-24 13:10:37 +02:00
Antonio Scandurra
953857f8e3
WIP
2023-10-24 10:31:35 +02:00
Antonio Scandurra
18eb4a7292
WIP
2023-10-24 10:01:19 +02:00
Antonio Scandurra
4d621f355d
WIP
2023-10-23 17:41:22 +02:00
Antonio Scandurra
05cbceec24
WIP
2023-10-23 17:36:49 +02:00
Nathan Sobo
192b3512fd
Merge branch 'gpui2-drag-drop' into zed2
2023-10-23 17:18:07 +02:00
Nathan Sobo
ec0b2e5430
Add on_drop listeners
2023-10-23 16:59:16 +02:00
Antonio Scandurra
7832120a4c
WIP
2023-10-23 16:38:34 +02:00
Antonio Scandurra
efbf0c828d
WIP
2023-10-23 16:38:34 +02:00
Nathan Sobo
38a7b39070
Don't start dragging until you move to 2px
2023-10-23 16:20:01 +02:00
Nathan Sobo
239b0c2f71
Clear active state when drag starts
2023-10-23 16:10:04 +02:00
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
Antonio Scandurra
4e6fb9034d
WIP
2023-10-23 14:59:57 +02:00
Nathan Sobo
96f2c4a9de
Checkpoint
2023-10-23 14:15:12 +02:00
Antonio Scandurra
a72434f67b
WIP
2023-10-23 12:16:33 +02:00
Antonio Scandurra
c0e8ae5dfa
WIP
2023-10-23 11:53:24 +02:00
Antonio Scandurra
0de4a93ec7
WIP
2023-10-23 11:43:08 +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
Marshall Bowers
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
Marshall Bowers
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