Commit log

0d0b6db Update theme importer

Nate Butler created

8d09baa Remove unintentionally committed txt file

Nate Butler created

2b0c959 Add terminal colors to ThemeColors, add `_background` to some color names.

Nate Butler created

9052b48 Use correct color values in quad fragment shader (#3217)

Click to expand commit body
Previously, when using rounded corners, the borders would get wider.
Looks like we weren't using the input color values consistently in the
fragment shader. The quad values are raw HSLA and are converted in the
vertex shader.

Release Notes:

- N/A

Nathan Sobo created

95a0827 Clean up unused code

Marshall Bowers created

152ac69 Add `themes2/src/themes` directory

Marshall Bowers created

d1636bf Finish up theme printer

Marshall Bowers created

fc37628 Start work on theme printer

Marshall Bowers created

7b712ac WIP

Nathan Sobo created

0bc5138 Add basic `VsCodeThemeConverter`

Marshall Bowers created

e48332c Parse VSCode theme files

Marshall Bowers created

583c36e WIP

Conrad Irwin created

0589813 Scaffold out new `theme-importer` crate

Click to expand commit body
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>

Nate Butler and Marshall Bowers created

09efa01 Editor2

Conrad Irwin created

9e5275c Fix error handling of open_path

Click to expand commit body
Co-Authored-By: Nathan <nathan@zed.dev>

Conrad Irwin and Nathan created

972f076 Deserialize theme metadata

Nate Butler created

58ac7f2 [Broken] Load a src theme in test

Nate Butler created

5496987 Make the Zed2 window movable (#3218)

Click to expand commit body
This PR makes the Zed2 window movable and fixes a crash related to a
`todo!()` that wasn't necessary.

Release Notes:

- N/A

Marshall Bowers created

6eeaa64 workspace2 (#3188)

Click to expand commit body
Tracking PR for workspace port

Conrad Irwin created

8283909 Disable selective warnings to make cargo check happy

Conrad Irwin created

91f3e97 Use correct color values in quad fragment shader

Click to expand commit body
Co-Authored-By: Julia Risley <julia@zed.dev>

Nathan Sobo and Julia Risley created

269a724 Merge remote-tracking branch 'origin/main' into zed2-workspace

Conrad Irwin created

85f0959 Remove the 2s from source code (#3216)

Click to expand commit body
Release Notes:

- N/A

Mikayla Maki created

9c8220d Remove commented-out label code

Marshall Bowers created

809d878 WIP

Nate Butler created

3605afc Render active item in pane

Marshall Bowers created

d1cb2d3 Enforce Send bound on next frame callback functions, because they're invoked on arbitrary threads (#3215)

Click to expand commit body
This enforces the send bound, then uses an async task looping on a
channel to run callbacks on the main thread.

Nathan Sobo created

8b1b7a2 Checkpoint: Basic tab bar structure

Marshall Bowers created

29d8390 Fix formatting

Nathan Sobo created

1dd20d4 Merge remote-tracking branch 'origin/main' into gpui2-image-reborrow

Nathan Sobo created

004c5d3 WIP

Nate Butler created

04a8ee2 Enforce a Send bound on next frame callbacks

Click to expand commit body
This required using mpsc channels to invoke frame callbacks on the
main thread and send the receiver to the platform display link.

Co-Authored-By: Julia Risley <julia@zed.dev>

Nathan Sobo and Julia Risley created

d11ff14 Remove the 2s from source code

Mikayla created

5a41eed WIP

Conrad Irwin created

1e7a216 WIP

Marshall Bowers created

8f0f5a9 Render status bar

Click to expand commit body
Co-Authored-By: Antonio <me@as-cii.com>

Conrad Irwin and Antonio created

803d2b6 Add double click to zoom the window

Click to expand commit body
Co-Authored-By: Antonio <me@as-cii.com>

Conrad Irwin and Antonio created

0e1d2fd Checkpoint: Narrow down error

Marshall Bowers created

66e4d75 Checkpoint: Reproduction with `Avatar` story

Marshall Bowers created

bd54bfa Render titlebar

Click to expand commit body
Co-Authored-By: Mikayla <mikayla@zed.dev>

Conrad Irwin and Mikayla created

634aba8 Add back some window events for workspace

Click to expand commit body
Co-Authored-By: Antonio <me@as-cii.com>

Conrad Irwin and Antonio created

a356522 Document format_distance (#3214)

Click to expand commit body
Adds docs for `ui2::util::format_distance`:
- distance_in_seconds
- distance_string
- naive_format_distance
- naive_format_distance_from_now

These are ports of
[`date-fns`](https://date-fns.org/v2.30.0/docs/formatDistance)'s format
distance utilities

[[PR Description]]

Release Notes:

- N/A

Nate Butler created

17ff881 Uncomment lsp2 tests (#3213)

Click to expand commit body
Release Notes:

- N/A

Julia created

6f41a77 Document format_distance

Click to expand commit body
Adds docs for:
- distance_in_seconds
- distance_string
- naive_format_distance
- naive_format_distance_from_now

Nate Butler created

0bab1a9 Merge remote-tracking branch 'origin/main' into zed2-workspace

Conrad Irwin created

fd81d83 Introduce `ViewContext::observe_window_{activation,bounds}` (#3212)

Click to expand commit body
Release Notes:

- N/A

Antonio Scandurra created

b7efab8 Uncomment lsp2 tests

Julia created

ec0cff0 Add `map` method to `Component`s (#3210)

Click to expand commit body
This PR adds a `map` method to the `Component` trait.

`map` is a fully-generalized form of `when`, as `when` can be expressed
in terms of `map`:

```rs
div().map(|this| if condition { then(this) } else { this })
```

This allows us to take advantage of Rust's pattern matching when
building up conditions:

```rs
// Before
div()
    .when(self.current_side == PanelSide::Left, |this| this.border_r())
    .when(self.current_side == PanelSide::Right, |this| {
        this.border_l()
    })
    .when(self.current_side == PanelSide::Bottom, |this| {
        this.border_b().w_full().h(current_size)
    })

// After
div()
    .map(|this| match self.current_side {
        PanelSide::Left => this.border_r(),
        PanelSide::Right => this.border_l(),
        PanelSide::Bottom => this.border_b().w_full().h(current_size),
    })
```

Release Notes:

- N/A

Marshall Bowers created

ec4f0d7 Implement `ViewContext::observe_window_activation`

Click to expand commit body
Co-Authored-By: Conrad Irwin <conrad@zed.dev>

Antonio Scandurra and Conrad Irwin created

3a824e4 Subsume `observe_fullscreen` into `observe_window_bounds`

Click to expand commit body
Co-Authored-By: Conrad Irwin <conrad@zed.dev>

Antonio Scandurra and Conrad Irwin created