Nate Butler
e041bb3df7
Update assistant editor
2023-12-19 12:04:01 -05:00
Nate Butler
0741529559
Update assistant panel message header, model switcher
2023-12-19 11:58:20 -05:00
Nate Butler
f163f2646b
use to_string to return the format distance string from FormatDistance
2023-12-19 11:57:57 -05:00
Nate Butler
b0efebaf7d
Add FormatDistance struct, add hide_prefix option
2023-12-19 11:41:14 -05:00
Nate Butler
f67cf4ad02
Rename format distance test names
2023-12-19 11:19:18 -05:00
Nate Butler
fa882e36ce
Allow format_distance to take a DateTimeType
2023-12-19 11:16:59 -05:00
Nate Butler
07a35fcbee
Update imports, tab height const
2023-12-19 11:03:08 -05:00
Nate Butler
7c25a38772
Update assistant header
2023-12-19 10:57:36 -05:00
Nate Butler
ce3d873a3b
Style assistant header, update icons
2023-12-19 10:30:46 -05:00
Nate Butler
e9d938e4f0
Remove red border
2023-12-19 10:03:59 -05:00
Nate Butler
937d6f8152
Ensure conversation items fill the container
2023-12-19 10:03:26 -05:00
Nate Butler
aef05e5466
Update conversation item rendering
2023-12-19 09:56:29 -05:00
Antonio Scandurra
c7f180003d
Fix janky editor scrollbar dragging ( #3710 )
...
We can receive multiple events before computing the next frame, and in
that case we want to compute a drag delta between the position for the
previous mouse event and the current one.
Release Notes:
- N/A
2023-12-19 15:41:15 +01:00
Antonio Scandurra
d1817197d6
Fix janky editor scrollbar dragging
...
We can receive multiple events before computing the next frame, and
in that case we want to compute a drag delta between the position for the
previous mouse event and the current one.
2023-12-19 15:32:42 +01:00
Antonio Scandurra
513802aff0
Prevent default when mousing down on a button that responds to clicks ( #3709 )
...
This ensures that ancestors that track focus don't accidentally steal it
on mouse down, which was preventing the editor from deploying the code
actions menu.
Release Notes:
- N/A
2023-12-19 14:41:58 +01:00
Antonio Scandurra
7b3697229f
Prevent default when mousing down on a button that responds to clicks
...
This ensures that ancestors that track focus don't accidentally steal
it on mouse down, which was preventing the editor from deploying the
code actions menu.
2023-12-19 14:27:19 +01:00
Antonio Scandurra
043f3e111b
Track caller on h_stack and v_stack
2023-12-19 14:26:30 +01:00
Antonio Scandurra
5092ba690d
Set window edited in zed2 ( #3708 )
...
Release Notes:
- N/A
2023-12-19 12:05:32 +01:00
Antonio Scandurra
7d53d2f6d0
Fix tests
2023-12-19 11:04:32 +01:00
Antonio Scandurra
a433d5cf77
Set window edited
2023-12-19 10:26:06 +01:00
Kirill Bulatov
973bfc3165
Properly restore termina current dir when deserializing the project
2023-12-19 06:44:26 +02:00
Marshall Bowers
d6a08d3ec6
Style project share notification ( #3706 )
...
This PR styles the project share notification, so we're not staring a
red rectangle.
<img width="425" alt="Screenshot 2023-12-18 at 6 06 14 PM"
src="https://github.com/zed-industries/zed/assets/1486634/7ae9a2d3-d5d9-427c-9125-3a47df5f6a2f ">
Release Notes:
- N/A
2023-12-18 18:13:09 -05:00
Marshall Bowers
7b85b222ae
Add ability to warn on missing theme values ( #3705 )
...
This PR adds the ability to warn in the `theme_importer` when a theme is
missing values.
Providing the `--warn-on-missing` flag to the `theme_importer` will
print a warning for missing theme value when printing the theme.
```sh
cargo run -p theme_importer -- --warn-on-missing
```
Release Notes:
- N/A
2023-12-18 17:18:49 -05:00
Marshall Bowers
b406e241c0
Use status colors for contact availability indicators ( #3704 )
...
This PR updates the availability indicators in the contact list to use
the status colors from the theme.
Release Notes:
- N/A
2023-12-18 16:56:44 -05:00
Marshall Bowers
a4444c3cb5
Add pane dividers ( #3703 )
...
This PR adds dividers between panes in a split.
Release Notes:
- N/A
2023-12-18 16:32:51 -05:00
Nate Butler
216ce97b20
Add toolbar spacing ( #3702 )
...
[[PR Description]]
Release Notes:
- N/A
2023-12-18 16:18:53 -05:00
Nate Butler
bc3e83188d
Update toolbar.rs
2023-12-18 16:10:13 -05:00
Marshall Bowers
59d44ca394
Make Disclosure accept an ID ( #3701 )
...
This PR makes the `Disclosure` component accept an ID rather than using
a static ID for all disclosures.
Release Notes:
- N/A
2023-12-18 15:21:04 -05:00
Nate Butler
9ce23da816
Update toolbar.rs
2023-12-18 14:10:12 -05:00
Nate Butler
4b63214add
Add left side padding
2023-12-18 13:55:30 -05:00
Marshall Bowers
046390e28b
Wire up offline contact list ( #3700 )
...
This PR wires up the offline contact list.
Also enables toggling both the online and offline contact lists.
Release Notes:
- N/A
2023-12-18 13:54:11 -05:00
Nate Butler
c23a4a0d01
Use flex_1 div instead of justify_center in toolbar
2023-12-18 13:51:04 -05:00
Nathan Sobo
b0bff9cab2
Use a different frame arena for each window ( #3696 )
...
This fixes a panic that was caused by sharing the same frame allocator
for different windows.
Release Notes:
- N/A
2023-12-18 11:49:59 -07:00
Max Brunsfeld
b8505a1b4b
Remove unused Arena::sized method
2023-12-18 10:41:02 -08:00
c68407b1b5
Use a different frame arena for all elements
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-12-18 19:35:17 +01:00
Marshall Bowers
56b32a92f9
Center text on welcome screen ( #3699 )
...
This PR centers the text "Code at the speed of thought" on the welcome
screen.
Release Notes:
- N/A
2023-12-18 13:35:05 -05:00
Marshall Bowers
0ddd053b54
Always show channel toggle when collapsed ( #3698 )
...
This PR makes the channel toggle disclosure always visible when a
channel tree is collapsed, as opposed to just being visible on hover.
This makes it possible to visually identify collapsed channel trees
without having to hover over each entry.
Release Notes:
- N/A
2023-12-18 13:27:47 -05:00
Nate Butler
0b2b794bdc
Update collab panel signed out state ( #3697 )
...
[[PR Description]]
Before:

After:

One known issue:
The "Sign in to enable collaboration" text below the button should be
centered, but it looks like label is reserving the full width. Need to
look in to that.
Release Notes:
- N/A
2023-12-18 13:22:45 -05:00
Nate Butler
030098e40f
Remove comment
2023-12-18 13:11:51 -05:00
Nate Butler
93cb0c5f2f
Update collab panel signed out state
2023-12-18 13:09:46 -05:00
dfcd7967c6
Use a different frame arena for each window
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-12-18 18:58:40 +01:00
Nate Butler
7f3e724723
Add github icon
2023-12-18 12:56:57 -05:00
Nate Butler
2ddcf7fab0
Fix implementation of full_width and icon_position in button
2023-12-18 12:56:50 -05:00
Marshall Bowers
4b59ded300
Remove unimplemented toggling for project search entries ( #3695 )
...
This PR removes the unimplemented toggling of search results in the
project search.
This is new functionality that didn't exist in Zed1, and it's likely
that we won't be adding it before launch, so removing it for now.
Release Notes:
- N/A
2023-12-18 12:53:08 -05:00
Nate Butler
93f9d06473
Style wrap guides ( #3693 )
...
[[PR Description]]
This PR styles wrap guides. Wrap guides weren't being added to the theme
in the theme importer, and they were also missing from One Dark.
One Dark:

Gruvbox:

Bad border (known importer issue):

No border (known importer issue):

Release Notes:
- N/A
2023-12-18 11:35:00 -05:00
Nate Butler
859f528faa
Start on collab panel empty state
2023-12-18 11:33:37 -05:00
Julia
aac92fa850
Revert accidental merge of old version of workspace2 render function ( #3694 )
...
Something happened with my local diff and
https://github.com/zed-industries/zed/pull/3691 somehow contained an old
version of workspace2's render function. Perhaps I rebased at some point
and borked it? Not sure 🤷♀️
Release Notes:
- N/A
2023-12-18 11:32:06 -05:00
Joseph T. Lyons
008441489e
Add backtrace hash to collab server panic api ( #3692 )
...
Release Notes:
- N/A
2023-12-18 11:21:41 -05:00
Nate Butler
59edaae063
Style wrap guides for imported themes
2023-12-18 11:16:22 -05:00
Nate Butler
5e2e54f3f8
Style One Dark wrap guides
2023-12-18 11:16:00 -05:00