Nathan Sobo
b2968c2d11
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
950ac4fbc6
Eliminate LayoutContext
2023-09-11 08:47:00 -06:00
Nathan Sobo
20da2b4621
Checkpoint
2023-09-08 16:25:10 -06:00
Mikayla
7f16fb40ca
Merge branch 'main' into disclosable-component
2023-08-23 16:30:27 -07:00
Nathan Sobo
ec9bebc7f4
Merge branch 'main' into divs
2023-08-22 16:35:56 -06:00
Mikayla
e24c757784
Finish building out adapters and names
...
Document core traits
Add start for a component storybook
2023-08-19 14:40:05 -07:00
Mikayla
8f0aa2b056
Add disclosable components into channels
...
Rename components to more closely match their purpose
2023-08-19 05:18:53 -07:00
Mikayla
7167bf969f
Actually get it compiling, omg
2023-08-18 19:02:27 -07:00
Mikayla
ac4dfa6c16
Move the collab panel to the left by default
...
Increase the indent size on channels
Switch font UI mono
2023-08-18 15:04:22 -07:00
Mikayla
5f9984e246
move component into gpui
2023-08-15 15:44:59 -07:00
Max Brunsfeld and Mikayla
07f71c67b5
Simplify Component implementation
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-08-15 15:26:02 -07:00
Mikayla
ec2490269d
Add components example
...
Re-arrange generics on mouse event handler
Add TypeTag struct for dynamically tagged components
2023-08-15 03:06:43 -07:00
Nathan Sobo and Mikayla Maki
64f61d293a
Merge branch 'main' into taffy
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-08-14 13:50:21 -06:00
Nathan Sobo
2b87398bf4
Include drop shadows with different corner radii in the example
2023-08-12 11:08:58 -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
2db14b6c92
WIP
2023-07-26 12:54:23 -06:00
Max Brunsfeld
2dedae9c38
Generalize Text element to let you add arbitrary scene primitives for runs of text
2023-04-27 13:58:06 -07:00
Max Brunsfeld
68fef38e14
Add API for adding mouse regions within Text
2023-04-26 12:00:26 -07:00
Nathan Sobo and Max Brunsfeld
52d4cc5349
Refine naming of element-related types and traits
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-04-21 13:06:37 -06:00
2bd56ab6f0
Rename Drawable::boxed to into_element and make containers generic
...
Multi-element are now generic over any drawable child, which can be converted
into an element.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-04-21 12:43:19 -06:00
Nathan Sobo
f5a86aecdc
WIP
2023-04-12 12:13:35 -06:00
Nathan Sobo
fabf89a1b1
WIP
2023-04-11 18:21:56 -06:00
Antonio Scandurra
3d6ac2ae58
Don't make fonts::Features Copy
2023-03-17 13:54:56 +01:00
Antonio Scandurra
22cd32e1bc
WIP: Allow specifying font features in the editor
...
This just lays the foundation for threading through a `fonts::Features`
struct, but it's not used yet.
2023-03-17 09:51:36 +01:00
Nathan Sobo
f26a6179b4
Remove dispatch_event from Element trait
2022-10-16 13:08:25 -06:00
ForLoveOfCats and Mikayla
fbea44bc5c
One big cleanup pass of clippy lints
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2022-08-10 16:51:01 -07:00
Antonio Scandurra
379f8887ba
Position IME input according to where the selection is rendered
2022-07-21 17:35:40 +02:00
Antonio Scandurra
4ab12722bf
Pass visible bounds to Element::dispatch_event
2022-04-07 15:10:09 +02:00
Antonio Scandurra
6013fb8d0f
Make all HighlightStyle properties optional
...
Previously, some of those properties such the font weight, style and color
would be mandatory: when the theme didn't specify them, Zed would use a default
value during deserialization. This meant that those default properties would
unconditionally override the base text style, causing a rendering bug when
combining syntax highlights with diagnostic styles.
This commit fixes that by making `HighlightStyle`s more additive: each property
can be set independently and only the properties that theme specifies get
overridden in the base text style.
2022-03-15 10:39:43 +01:00
Max Brunsfeld and Nathan Sobo
cfedba9f1c
Allow underlines to have different color than the text
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-10-26 12:46:46 -07:00
Nathan Sobo and Max Brunsfeld
a1b11e8907
Move all crates to a top-level crates folder
...
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2021-10-04 13:22:21 -06:00