* [x] Reposition right dock handle
* [x] Handle mouse events correctly for drag and drop
* [x] Prevent drag events from passing through the resize handle to the
draggable items in the panels (channels, files)
* [x] Stop the editor gutter from stealing mouse move events
3e6b84a
Wire up the middle mouse button to close tabs (#3714)
Click to expand commit body
This PR wires up the middle mouse button to close tabs.
Right now we're doing this using `on_mouse_down`, but we need a way in
GPUI2 to have an `on_click` for a mouse button other than the left one.
Release Notes:
- N/A
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
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.
Antonio Scandurra
created
1bb85c1
Prevent default when mousing down on a button that responds to clicks (#3709)
Click to expand commit body
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
Antonio Scandurra
created
afbc61a
Prevent default when mousing down on a button that responds to clicks
Click to expand commit body
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.
4b74f30
Properly restore termina current dir when deserializing the project
Kirill Bulatov
created
2979eb9
Allow transparent divs to be considered "top layers"
Click to expand commit body
This changes the meaning of `was_top_layer` so that it is checking that
nothing opaque is on top of the given layer. The layer in question
need not be opaque.
Max Brunsfeld
created
b88370d
Respect a div's own z-index when adding its event listeners
Max Brunsfeld
created
ee8e145
Fix drag and drop logic in div's mouse handling
Click to expand commit body
* Attach mouse up and mouse move listeners immediately, not just when there
is already a drag in progress, because when starting a drag, these other
events may fire before the next frame.
* Remove bounds checks for handling mouse move and mouse events, since a
dragged object may be moved outside of its original container.
Co-authored-by: Nathan Sobo <nathan@zed.dev>
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
Marshall Bowers
created
912f7e6
Add ability to warn on missing theme values (#3705)
Click to expand commit body
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
Marshall Bowers
created
734bbfa
Use status colors for contact availability indicators (#3704)
Click to expand commit body
This PR updates the availability indicators in the contact list to use
the status colors from the theme.
Release Notes:
- N/A
This PR centers the text "Code at the speed of thought" on the welcome
screen.
Release Notes:
- N/A
Marshall Bowers
created
0aa690f
Always show channel toggle when collapsed (#3698)
Click to expand commit body
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
Marshall Bowers
created
f143467
Update collab panel signed out state (#3697)
Click to expand commit body
[[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