zed/assets/keymaps
Richard Feldman 884748038e
Styling for Apply/Discard buttons (#21017)
Change the "Apply" and "Discard" buttons to match @danilo-leal's design!
Here are some different states:

### Cursor in the first hunk

Now that the cursor is in a particular hunk, we show the "Apply" and
"Discard" names, and the keyboard shortcut. If I press the keyboard
shortcut, it will only apply to this hunk.

<img width="759" alt="Screenshot 2024-11-23 at 10 54 45 PM"
src="https://github.com/user-attachments/assets/68e0f109-9493-4ca2-a99c-dfcbb4d1ce0c">

### Cursor in the second hunk

Moving the cursor to a different hunk changes which buttons get the
keyboard shortcut treatment. Now the keyboard shortcut is shown next to
the hunk that will actually be affected if you press that shortcut.

<img width="749" alt="Screenshot 2024-11-23 at 10 56 27 PM"
src="https://github.com/user-attachments/assets/59c2ace3-6972-4a60-b806-f45e8c25eaae">


Release Notes:

- Restyled Apply/Discard buttons

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com>
2024-11-26 11:09:43 -05:00
..
linux Add editor::SelectAllMatches to SublimeText base keymap (#20866) 2024-11-19 14:33:35 -05:00
macos Add editor::SelectAllMatches to SublimeText base keymap (#20866) 2024-11-19 14:33:35 -05:00
default-linux.json Styling for Apply/Discard buttons (#21017) 2024-11-26 11:09:43 -05:00
default-macos.json Styling for Apply/Discard buttons (#21017) 2024-11-26 11:09:43 -05:00
initial.json Use lowercase command names in initial settings files (#15717) 2024-08-03 09:35:09 -04:00
storybook.json storybook: Fix Backspace in Auto Height Editor and Picker stories (#11011) 2024-04-25 17:37:47 -04:00
vim.json vim: Fix : on welcome screen (#20937) 2024-11-20 19:21:22 -07:00