This PR fixes a warning that was present in release mode, which was
preventing the nightly builds from running:
```
error: variable does not need to be mutable
--> crates/gpui2/src/elements/div.rs:547:9
|
547 | let mut div = Div {
| ----^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
```
Release Notes:
- N/A
139fe7c
Use separate editor foreground color (#3661)
Click to expand commit body
This PR populates the `editor_foreground` color in the various themes
and updates the editor to use this as the color for text.
The `text` field in the theme should now be used for UI elements, while
`editor_foreground` should be used for buffers.
This improves the contrast in some themes, notably Ayu Dark.
Release Notes:
- N/A
8d994ce
Enable dragging from project panel to panes (#3658)
Click to expand commit body
Rework gpui2 drag API so that receivers need not specify the dragged
view type.
Max Brunsfeld
created
6b06bb4
Re-enable cmd-<number> key bindings for activating panes
Click to expand commit body
co-authored-by: Conrad <conrad@zed.dev>
Max Brunsfeld
and
Conrad
created
8791f7c
Enable dragging from project panel to panes
Click to expand commit body
Rework gpui2 drag API so that receivers need not specify the dragged view type.
co-authored-by: Max <max@zed.dev>
co-authored-by: Conrad <conrad@zed.dev>
Mikayla
,
Max
, and
Conrad
created
fb3382b
Merge remote-tracking branch 'origin/main' into perf-2
This PR styles the inputs in the project search.
<img width="772" alt="Screenshot 2023-12-14 at 1 53 28 PM"
src="https://github.com/zed-industries/zed/assets/1486634/fe2362be-79db-4551-a473-2acf7a8a1bcb">
Release Notes:
- N/A
c6e4468
Hide the toolbar if it has no visible items (#3654)
Click to expand commit body
This PR makes the toolbar hide itself if it has no visible items.
This removes the double border beneath the tab bar when there are no
visible tools in the toolbar.
Release Notes:
- N/A
Marshall Bowers
created
4e1b4c4
Refactor editor to be more clear about stacking
This PR builds on top of #3652 by adding a selection prompt to the
storybook to allow you to choose from the available list of stories if
you don't provide one explicitly:
<img width="1387" alt="Screenshot 2023-12-14 at 12 00 26 PM"
src="https://github.com/zed-industries/zed/assets/1486634/640d62a3-1340-45f1-9746-69b513faff62">
This way we don't have to keep generating the `script/storybook` script
whenever stories are added/removed.
#### Usage (through `cargo`):
```sh
# Select from the available stories
cargo run -p storybook2
# Run a specific story
cargo run -p storybook2 -- components/list_item
```
#### Usage (through `script/storybook`):
```sh
# Select from the available stories
./script/storybook
# Run a specific story
./script/storybook list_item
```
Release Notes:
- N/A