Commit log

776338d Update default theme player colors and add players story (#3263)

Click to expand commit body
[[PR Description]]

- Update the default theme player colors for `Zed Pro Moonlight` and
`Zed Pro Daylight`
- Adds the ability to create stories in the `theme2` crate


![image](https://github.com/zed-industries/zed/assets/1714999/61fca222-1512-43b1-a229-fae1080d07fa)

You can see them by running:
- `cargo run -p storybook2 -- components/players --theme "Zed Pro
Daylight"`
- `cargo run -p storybook2 -- components/players --theme`

The player colors crisscross back and forth on the color wheel so that
the colors are as distinct as possible.


![image](https://github.com/zed-industries/zed/assets/1714999/255c9fd2-34da-4f75-9aad-0dd02f7009bf)

We do have room to add additional players if needed. Just let me know if
we feel like the default 8 aren't cutting it.


Release Notes:

- N/A

Nate Butler created

0dd6ea6 Add new default player colors and the players story.

Nate Butler created

79b4f78 Extend the theme crate to enable stories, add players story

Nate Butler created

a39865b Update default player colors

Nate Butler created

06960df Implement basic fuzzy filtering in picker

Max Brunsfeld created

bdec1c8 Merge branch 'main' into picker

Max Brunsfeld created

bcc92e9 Implement basic text input handling (#3262)

Click to expand commit body
This PR adds basic text input to Editors in zed2.

Note that we have *not* yet implemented the
`InputHandler::bounds_for_range` method on `Editor`, so the composition
and emoji picker windows are not yet positioned correctly.

Max Brunsfeld created

9fe3073 Get basic text input working

Click to expand commit body
Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

bd12e3e Assign editors as text input handlers

Click to expand commit body
Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

b2ae08b Implement an InputHandler trait for gpui2

Click to expand commit body
Co-Authored-By: Marshall <marshall@zed.dev>
Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Julia <julia@zed.dev>

Conrad Irwin , Marshall , Max , and Julia created

7cdece4 Beautiful go to line modal

Click to expand commit body
Co-authored-by: Julia <julia@zed.dev>
Co-authored-by: Marshall <marshall@zed.dev>

Conrad Irwin , Julia , and Marshall created

ea60340 Get actions + focus working on picker, now that it's a view

Click to expand commit body
Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

ae2d0f1 Merge branch 'main' into go-to-line3

Conrad Irwin created

5751303 MOAR CODE

Conrad Irwin created

36d9633 Merge branch 'main' into picker

Max Brunsfeld created

b9d051e Start work on adding a filter editor to the picker

Click to expand commit body
Implement picker as a view instead of as a component

Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld , Mikayla , and Marshall created

ffce5ff Don't generate licenses on every PR

Conrad Irwin created

9cdfce4 Make it possible to render a single line editor (#3259)

Click to expand commit body
[[PR Description]]

Release Notes:

- (Added|Fixed|Improved) ...
([#<public_issue_number_if_exists>](https://github.com/zed-industries/community/issues/<public_issue_number_if_exists>)).

Conrad Irwin created

3a85bee center a div

Nate Butler created

5c45084 Add text and focus to editor

Conrad Irwin created

a21c49c Make it possible to render a single line editor

Conrad Irwin created

80e6427 :art:

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

Max Brunsfeld and Mikayla created

acab2f9 MODAL

Conrad Irwin created

10c94cc Remove unused import

Max Brunsfeld created

a3bd04f Merge branch 'main' into picker

Mikayla Maki created

c7f5888 editor singleline (#3257)

Click to expand commit body
- Implement Editor::single_line
- Fix confusing error message
- Fix loading keyfiles
- Wire up GoToLine modal

Mikayla Maki created

d690fb0 Merge branch 'main' into picker

Max Brunsfeld created

b692fb1 Start documenting `ThemeColors` (#3258)

Click to expand commit body
[[PR Description]]
- Adds doc comments for most fields on ThemeColors
- Scaffolds out some upcoming additional fields (Will add in a later PR)
- Renames a few fields:
    - `element_placeholder` -> `element_placeholder_text`
    - `element_drop_target` -> `drop_target_background`
- Removes the redundant `element_placeholder_text` (This should be set
using `text_placeholder`

Release Notes:

- N/A

Nate Butler created

1e6a0f1 Wire up GoToLine modal

Conrad Irwin created

0233864 Fix loading keyfiles

Conrad Irwin created

b804b25 Fix confusing error message

Conrad Irwin created

df84ba4 Continue documenting theme colors

Nate Butler created

6928ad1 Rename List -> UniformList

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

Max Brunsfeld and Mikayla created

2412873 Remove commented-out code in picker2

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

Max Brunsfeld and Mikayla created

742180a Implement list scroll tracking

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

Max Brunsfeld and Mikayla created

eb5fe3a Merge branch 'main' into document-theme

Nate Butler created

91f356a Begin documenting theme colors

Nate Butler created

3a72f21 Implement Editor::single_line

Conrad Irwin created

4bf3a4e Implement movement in `editor2` (#3256)

Click to expand commit body
Release Notes:

- N/A

Antonio Scandurra created

c89d6eb modals2 (#3247)

Click to expand commit body
New Modal implementation for gpui2

Release Notes:

N/A

Conrad Irwin created

aa17ada Merge remote-tracking branch 'origin/main' into editor-movement

Antonio Scandurra created

d7e86eb Merge remote-tracking branch 'origin/main' into editor-movement

Antonio Scandurra created

1d34b7b Implement picker actions

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

Max Brunsfeld and Mikayla created

2587616 theme_importer: Format generated themes (#3255)

Click to expand commit body
This PR makes the `theme_importer` format the themes that it generates
automatically.

Release Notes:

- N/A

Marshall Bowers created

69eb49a Merge branch 'main' into picker

Max Brunsfeld created

2697862 Merge remote-tracking branch 'origin/main' into editor-movement

Antonio Scandurra created

82a0189 WIP

Antonio Scandurra created

64b899c Implement scrolling for `editor2` (#3251)

Click to expand commit body
Release Notes:

- N/A

Antonio Scandurra created

5336c5d Re-introduce a macro for defining actions for ease of use (#3253)

Click to expand commit body
Release Notes:

- N/A

Julia created

0d95410 Rework third-party themes (#3254)

Click to expand commit body
This PR reworks the way we define our third-party themes to make them
work as overlays on top of a base theme.

We introduce the concept of a `UserThemeFamily` that contains
`UserTheme`s. Rather than being an entire theme definition on their own,
a `UserTheme` just contains optional overrides for the values in a
`Theme`.

When resolving a `UserTheme`, we apply it on top of the base theme. Any
values not overridden in the `UserTheme` will fall back to the `Theme`
defaults.

Right now we are just using `UserTheme` to model third-party themes that
we distribute with the Zed binary. However, this same structure can also
be used to import arbitrary user themes (such as from a theme registry,
or even a theme blob from the settings file).

Release Notes:

- N/A

Marshall Bowers created