Nathan Sobo
ac07e230fa
Document geometry
2023-12-06 12:28:44 -07:00
Piotr Osiewicz
b5924d6b11
Add simulate_window_resize.
...
Fixes up tests for movement in editor/scrolling.
Co-authored-by: Antonio <antonio@zed.dev>
2023-12-04 17:27:48 +01:00
Antonio Scandurra
d31b53b912
Extract a gpui::combine_highlights
function
2023-11-24 16:31:38 +01:00
Antonio Scandurra
bf39968105
Return TextRun
s in combine_syntax_and_fuzzy_match_highlights
2023-11-24 13:00:20 +01:00
Antonio Scandurra
7eeb8078f6
Allow setting text background color via TextStyle
2023-11-23 19:22:18 +01:00
Antonio Scandurra
2b6e8de11f
Don't perform wrapping in completions
2023-11-22 14:23:09 +01:00
Mikayla
88024ca7c9
Remove V parameter on elements
2023-11-19 18:32:31 -08:00
Nathan Sobo
9558da8681
Separate WrappedLines from ShapedLines
...
ShapedLines are never wrapped, whereas WrappedLines are optionally wrapped if
they are associated with a wrap width. I tried to combine everything because
wrapping is inherently optional for the Text element, but we have a bunch of
APIs that don't make sense on a line that may wrap, so we need a distinct type
for that case.
2023-11-16 23:10:51 -07:00
Antonio Scandurra
786cc59d7a
Fix formatting
2023-11-15 11:07:32 +01:00
Antonio Scandurra
feeb44c122
Merge remote-tracking branch 'origin/main' into editor2-rename
...
# Conflicts:
# crates/editor2/src/editor.rs
# crates/editor2/src/element.rs
# crates/gpui2/src/style.rs
2023-11-15 09:51:33 +01:00
Antonio Scandurra
c3094b7c3d
Introduce gpui::render_view
2023-11-15 09:45:23 +01:00
Antonio Scandurra
1def355d44
Don't return Result
from TextStyle::highlight
2023-11-15 09:10:46 +01:00
Nathan Sobo
044d9679ab
Checkpoint
2023-11-13 21:40:02 -07:00
Nathan Sobo
aec7955ccf
Checkpoint
2023-11-13 16:40:29 -07:00
Max Brunsfeld
28d3d21108
Generalize Refineable derive macro to derive arbitrary traits on the refinement type
2023-11-09 13:23:31 -08:00
Mikayla Maki
a3bd04fed2
Merge branch 'main' into picker
2023-11-07 11:44:02 -08:00
Conrad Irwin
3a72f2122a
Implement Editor::single_line
2023-11-07 11:12:36 -07:00
Max Brunsfeld
69eb49a2ed
Merge branch 'main' into picker
2023-11-07 09:34:57 -08:00
Antonio Scandurra
bdf6e8bcc7
Merge remote-tracking branch 'origin/main' into editor2-paint
2023-11-07 13:09:48 +01:00
Antonio Scandurra
a866370dc1
Paint lines
2023-11-07 12:25:33 +01:00
Mikayla
85000eba81
wip: picker
...
co-authored-by: nathan <nathan@zed.dev>
co-authored-by: max <max@zed.dev>
2023-11-06 17:09:38 -08:00
Conrad Irwin
d73c54f604
Add PointingHand on tabs
2023-11-03 11:30:15 -06:00
Conrad Irwin
c604a2e34e
Add hover behaviour to tabs
...
Co-Authored-By: Marshall <marshall@zed.dev>
Co-Authored-By: Nathan <nathan@zed.dev>
2023-11-03 10:55:07 -06:00
Nathan Sobo
f3b8a9d8c2
WIP
2023-11-02 22:56:04 -06:00
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
Antonio Scandurra
a0b667a2ca
WIP
2023-10-22 19:56:25 +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
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
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
Nathan Sobo
378b2fbd9e
WIP
2023-09-14 16:52:04 -06:00
Nathan Sobo
5dad97779a
WIP
2023-09-12 07:34:42 -06:00
Nathan Sobo
e0fdc7d0aa
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
ebf8b32811
Checkpoint
2023-09-08 16:25:10 -06:00
Nathan Sobo
21d390fa4a
Support overflow scroll
2023-09-08 10:20:45 -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
46451f2a8b
Render borders in gpui2 divs
2023-09-06 14:31:44 -06:00
Nathan Sobo
5a778fbde6
Checkpoint
2023-09-06 14:16:15 -06:00
Nate Butler
5337d9605a
Add size
rounded
prefixes
...
Co-Authored-By: Nathan Sobo <1789+nathansobo@users.noreply.github.com>
2023-09-06 14:18:29 -04:00
Nate Butler
477f4ddbbd
Continue collab_panel
2023-09-05 17:13:33 -04:00
Nate Butler
0695e8d3b9
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
9ec7569e09
Checkpoint
2023-09-05 12:16:21 -06:00
Nathan Sobo
0307cb8a88
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
3b5ee59273
Split playground into gpui2 and storybook
2023-08-30 16:12:14 -06:00