Commit Graph
11094 Commits
Author SHA1 Message Date
Nathan SoboandAntonio Scandurra 733df38f9b Checkpoint
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-08-22 11:34:06 -06:00
Nathan Sobo 3921278319 Add more style helpers 2023-08-22 09:16:05 -06:00
Nathan Sobo 53679ce045 Checkpoint 2023-08-22 09:07:45 -06:00
Nathan Sobo ff7b25c538 Checkpoint 2023-08-21 16:14:59 -06:00
Nathan Sobo f4d8763d2b WIP 2023-08-19 23:16:20 -06:00
Nathan Sobo 6663d3f8eb Checkpoint 2023-08-19 22:33:28 -06:00
Nathan Sobo afff46b335 Checkpoint 2023-08-19 21:24:28 -06:00
Nathan Sobo 2c6f692c56 Checkpoint 2023-08-19 20:29:55 -06:00
Nathan Sobo 0747131bd4 Compiling checkpoint 2023-08-19 19:51:22 -06:00
Nathan Sobo 76993f6b57 WIP: Trying to find a composable approach to styling that plays nice with layout engine 2023-08-18 20:08:29 -06:00
Nathan Sobo eec39dc23c WIP 2023-08-18 17:14:29 -06:00
Nathan Sobo b910c85f7f Still need to wire up MouseMove with the new regions 2023-08-18 02:23:06 -06:00
Nathan Sobo 3709eff34b Compiling 2023-08-18 01:59:21 -06:00
Nathan Sobo 9b74dc196e Introduce Refinement trait and derive macro 2023-08-18 01:03:46 -06:00
Nathan Sobo 19ccb19c96 Compiling 2023-08-17 18:37:54 -06:00
Nathan Sobo 24d19deb0b Compiling checkpoint 2023-08-17 14:05:18 -06:00
Nathan Sobo f3a275d339 Revert "Add a proc macro for deriving override structs with optional fields"
This reverts commit ab9356e9d8.
2023-08-17 13:48:46 -06:00
Nathan Sobo ab9356e9d8 Add a proc macro for deriving override structs with optional fields 2023-08-17 09:39:23 -06:00
Nathan Sobo b95b2af3e0 Store generic mouse regions on window that contain their event type id 2023-08-17 08:37:55 -06:00
Nathan Sobo 812d3f6af6 Get basic mouse_down and mouse_up working 2023-08-16 22:21:27 -06:00
Nathan Sobo 187d78011c WIP 2023-08-16 13:52:42 -06:00
Nathan SoboandAntonio Scandurra f1aafab61d Get text rendering
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-08-16 12:50:35 -06:00
Nathan Sobo fea987b459 WIP 2023-08-16 06:22:47 -06:00
Nathan Sobo a8ecc1a643 Add support for a measure function to the layout engine facade 2023-08-15 22:02:56 -06:00
Nathan Sobo 4efc46c763 Add derive macro now new elements 2023-08-15 21:04:48 -06:00
Nathan Sobo 77bc682a69 Render a component 2023-08-15 19:46:07 -06:00
Nathan Sobo 65a5c54a2c Compiling checkpoint 2023-08-15 19:29:57 -06:00
Nathan Sobo e7489bd4c9 Compiling checkpoint 2023-08-15 09:33:59 -06:00
Nathan Sobo 0fe457020b WIP 2023-08-15 09:26:16 -06:00
Nathan SoboandMikayla Maki f9858445b8 Get a 50% colored box rendering
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-08-14 14:46:09 -06:00
Nathan SoboandMikayla Maki 740b105330 Merge branch 'main' into taffy
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-08-14 13:50:21 -06:00
Nathan Sobo 7756497933 Simplify adapter 2023-08-14 09:26:35 -06:00
Nathan Sobo 85f35497b6 Compiling checkpoint 2023-08-13 22:39:06 -06:00
Nathan Sobo 7662210776 I think the adapter is ready. Close to pixels. 2023-08-13 22:06:35 -06:00
Nathan Sobo 625e4a1bd0 Introduce new PaintContext and LayoutContext 2023-08-13 21:57:38 -06:00
Nathan Sobo 2d17e9685f Compiling checkpoint 2023-08-13 21:20:47 -06:00
Nathan Sobo be7a43c81c Get taffy style conversion working 2023-08-13 19:47:49 -06:00
Nathan Sobo 52ad48d50b WIP 2023-08-13 17:29:07 -06:00
Nathan Sobo 473ac5a842 WIP 2023-08-13 02:27:36 -06:00
Nathan Sobo 36b853ac05 WIP 2023-08-13 01:40:10 -06:00
Nathan Sobo 1ef486b227 WIP 2023-08-13 01:40:05 -06:00
Mikayla Maki 5ce7ccac32 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 29a85635ea Make each setting optional 2023-08-12 12:23:46 -07:00
Mikayla 563b25f26f Add deserialization helper 2023-08-12 12:21:44 -07:00
Nathan Sobo fa7ebd0825 Include drop shadows with different corner radii in the example 2023-08-12 11:08:58 -06:00
Nathan Sobo 65123e6eed Allow individual corner radii on drop shadows 2023-08-12 10:58:08 -06:00
Nathan Sobo 40f478937e Allow distinct corner radii for images 2023-08-12 10:50:04 -06:00
Nathan Sobo 84dc4090bd 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 0d31d6dac5 WIP 2023-08-12 10:00:08 -06:00
Nathan Sobo 4b4b949972 WIP 2023-08-12 01:11:12 -06:00