Commit Graph
39175 Commits
Author SHA1 Message Date
Mikayla d55c1ad81e Merge branch 'main' into collab-panel 2023-08-12 12:44:22 -07:00
Mikayla Maki ad20edd716 Allow individual corner radii on containers, images, and drop shadows (#2841)
Here's an example in `crates/gpui/examples/corner_radii.rs`

![CleanShot 2023-08-12 at 11 06
09@2x](https://github.com/zed-industries/zed/assets/1789/1b5992ac-f7ef-45d8-b8c2-f0e677b07dd9)

@iamnbutler, in the themes, anywhere we have a container style can now
take either a `corner_radius` or a `corner_radii` field, both of these
fields can either have 1 number (for all 4 corners) or a an object like:

```
{
  top_left?: number,
  top_right?: number,
  bottom_left?: number, 
  bottom_right?:number 
} 
```

Fields that are not included in this second representation default to 0
corner radius.
2023-08-12 12:36:05 -07:00
Mikayla 75edcdb56f Make each setting optional 2023-08-12 12:23:46 -07:00
Mikayla 05f56bfdeb Add deserialization helper 2023-08-12 12:21:44 -07:00
Nathan Sobo 2b87398bf4 Include drop shadows with different corner radii in the example 2023-08-12 11:08:58 -06:00
Nathan Sobo 8d32b7e0fa Allow individual corner radii on drop shadows 2023-08-12 10:58:08 -06:00
Nathan Sobo 44bf7736ae Allow distinct corner radii for images 2023-08-12 10:50:04 -06:00
Nathan Sobo 56ba5b7edb Wire up per corner radii for quad
Still need to expose this in the styling layer and allow images
to have per corner radii.
2023-08-12 10:40:23 -06:00
Nathan Sobo f0103e5142 WIP 2023-08-12 10:00:08 -06:00
Nathan Sobo 104546bf8c WIP 2023-08-12 01:11:12 -06:00
Nathan Sobo 3b82dbc0c1 Put a Taffy layout engine on window 2023-08-12 00:58:11 -06:00
Mikayla Maki 17e2bf7326 Add a compile test for the element derive (#2840)
Tried to use this the new element derive on a branch and ran into some
bugs, this fixes those.

Release Notes:

- N/A
2023-08-11 18:08:13 -07:00
Mikayla 3a9e050232 Add a compile test for the element derive 2023-08-11 18:00:12 -07:00
Piotr Osiewicz 3f35ee3621 Decrease row count for buffer search bar 2023-08-11 23:47:16 +02:00
Mikayla 20a9de99f8 split into body and header 2023-08-11 11:35:51 -07:00
Nate ButlerandMikayla Maki 93983b230d WIP Restyle channel modal
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-08-11 13:32:46 -04:00
Piotr Osiewicz dfa4d484f0 Shrink project search + decrease padding 2023-08-11 18:19:45 +02:00
Piotr Osiewicz 2fed7612b2 chore: fix compiler warning 2023-08-11 17:09:26 +02:00
Piotr Osiewicz d925e81832 Add row_height 2023-08-11 17:02:25 +02:00
Piotr Osiewicz 4363a5bd12 Add accent colors to search option buttons 2023-08-11 16:51:18 +02:00
Piotr Osiewicz 60e0aff04f Increase editor's left hand side padding to 10 2023-08-11 16:43:07 +02:00
Piotr Osiewicz f361c17071 Style mode/option buttons 2023-08-11 16:32:15 +02:00
Nathan Sobo fc4ea20276 WIP 2023-08-11 07:39:30 -06:00
Piotr Osiewicz 625ac1c1ed chore: use Cow instead of String for tooltips (#2838)
A QoL change to align `Tooltip` with other elements like `Label`
Release Notes:

- N/A
2023-08-11 15:29:55 +02:00
Piotr Osiewicz 6d2f085dee Make ButtonSide respect corner_radius 2023-08-11 14:44:22 +02:00
Piotr Osiewicz f6b8df5100 mode_button: get rid of borders before creating a label 2023-08-11 13:26:22 +02:00
Piotr Osiewicz 3870731929 Make ButtonSide scale with corner_radius 2023-08-11 13:10:56 +02:00
Nathan Sobo 284414cfba Ditch the hot reloading approach 2023-08-11 00:26:58 -06:00
Mikayla 01e25201fb Merge branch 'main' into collab-panel 2023-08-10 10:04:01 -07:00
Nathan Sobo bb9591415f WIP 2023-08-10 10:26:48 -06:00
Nathan Sobo 8d84144abe WIP 2023-08-10 09:24:16 -06:00
Piotr Osiewicz b217de5c5c Fix rounding artifacts of nav buttons 2023-08-10 15:26:05 +02:00
Piotr Osiewicz 9d70562c90 Fix padding inside search input.
Adjust borders for toggle buttons
2023-08-10 14:53:25 +02:00
Piotr Osiewicz 408eb2c08c Bump row_count for buffer search 2023-08-10 13:01:20 +02:00
Piotr Osiewicz c88182a908 Increase padding on search 2023-08-10 12:57:12 +02:00
Nathan Sobo 7e2a227831 What if we base themes on Rose Pine 2023-08-09 20:54:30 -06:00
Max BrunsfeldandMikayla da98fd8009 Dial in the channel creating/renaming UI
* Ensure channel list is in a consistent state with no flicker while the
  channel creation / rename request is outstanding.
* Maintain selection properly when renaming and creating channels.
* Style the channel name editor more consistently with the non-editable
  channel names.

Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-09 17:11:57 -07:00
Max Brunsfeld e628a41aab Improve styling of collab panel 2023-08-09 15:11:30 -07:00
Max BrunsfeldandMikayla 8abbdcc0d0 Send user ids of channels of which they are admins on connecting
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-09 14:40:47 -07:00
Max Brunsfeld ef699c25b7 Send channel permissions to clients when they fetch their channels 2023-08-09 13:56:03 -07:00
Max Brunsfeld 809e203ee1 Restore shutdown behavior (#2837)
Deals with https://github.com/zed-industries/community/issues/1898

Restores original close behavior from
https://github.com/zed-industries/zed/pull/2832/files#diff-89af0b4072205c53b518aa977d6be48997e1a51fa4dbf06c7ddd1fec99fc510eL444
(load diff for the last file, zed.rs)

and adds a better name for the variable.

Release Notes:

- Fixes `cmd-q` not working
2023-08-09 13:50:21 -07:00
Kirill Bulatov c957038f74 Restore shutdown behavior 2023-08-09 23:39:21 +03:00
Mikaylaandmax fdb0aef874 Add renames
co-authored-by: max <max@zed.dev>
2023-08-09 12:20:48 -07:00
Mikayla 6fdfe01f4c Fix bad merge 2023-08-09 11:04:09 -07:00
Mikayla 35e307965d Merge branch 'collab-panel' of github.com:zed-industries/zed into collab-panel 2023-08-09 10:44:50 -07:00
Mikayla 8b73737072 Merge branch 'main' into collab-panel 2023-08-09 10:37:22 -07:00
Max BrunsfeldandMikayla b66ac35330 Represent channel relationships using paths table
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-09 10:36:27 -07:00
Max BrunsfeldandMikayla e9142724ba Avoid leak of channel store
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-08-09 10:23:52 -07:00
Nate Butler e16b6e2fc2 WIP BROKEN 2023-08-09 12:44:34 -04:00
Joseph T. Lyons 9718348b09 v0.100.x dev 2023-08-09 12:30:39 -04:00