Nathan Sobo
30fbbad1cf
Revert "Add a proc macro for deriving override structs with optional fields"
...
This reverts commit 7451165acf .
2023-08-17 13:48:46 -06:00
Nathan Sobo
7451165acf
Add a proc macro for deriving override structs with optional fields
2023-08-17 09:39:23 -06:00
Nathan Sobo
b34afa1da9
Store generic mouse regions on window that contain their event type id
2023-08-17 08:37:55 -06:00
Nathan Sobo
e97863fe37
Get basic mouse_down and mouse_up working
2023-08-16 22:21:27 -06:00
Nathan Sobo
c370b0dd0c
WIP
2023-08-16 13:52:42 -06:00
Nathan Sobo and Antonio Scandurra
bd7db52bc0
Get text rendering
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-08-16 12:50:35 -06:00
Nathan Sobo
3c8e9fdfa1
WIP
2023-08-16 06:22:47 -06:00
Nathan Sobo
dc0abdbf46
Add support for a measure function to the layout engine facade
2023-08-15 22:02:56 -06:00
Nathan Sobo
c477e71781
Add derive macro now new elements
2023-08-15 21:04:48 -06:00
Nathan Sobo
0f01b496b2
Render a component
2023-08-15 19:46:07 -06:00
Nathan Sobo
fd4a24da07
Compiling checkpoint
2023-08-15 19:29:57 -06:00
Nathan Sobo
353808df9e
Compiling checkpoint
2023-08-15 09:33:59 -06:00
Nathan Sobo
f533be10a2
WIP
2023-08-15 09:26:16 -06:00
Nathan Sobo and Mikayla Maki
e862455671
Get a 50% colored box rendering
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-08-14 14:46:09 -06: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
13a3904ca3
Simplify adapter
2023-08-14 09:26:35 -06:00
Nathan Sobo
6b814672c5
Compiling checkpoint
2023-08-13 22:39:06 -06:00
Nathan Sobo
ffd7952838
I think the adapter is ready. Close to pixels.
2023-08-13 22:06:35 -06:00
Nathan Sobo
1216994984
Introduce new PaintContext and LayoutContext
2023-08-13 21:57:38 -06:00
Nathan Sobo
c456402a35
Compiling checkpoint
2023-08-13 21:20:47 -06:00
Nathan Sobo
e52d372501
Get taffy style conversion working
2023-08-13 19:47:49 -06:00
Nathan Sobo
6807547b45
WIP
2023-08-13 17:29:07 -06:00
Nathan Sobo
7ce33aaabb
WIP
2023-08-13 02:27:36 -06:00
Nathan Sobo
a75ea06261
WIP
2023-08-13 01:40:10 -06:00
Nathan Sobo
43c97bc0e5
WIP
2023-08-13 01:40:05 -06: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`

@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
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
Nathan Sobo
284414cfba
Ditch the hot reloading approach
2023-08-11 00:26:58 -06: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
Nathan Sobo
7e2a227831
What if we base themes on Rose Pine
2023-08-09 20:54:30 -06: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
Joseph T. Lyons
9718348b09
v0.100.x dev
2023-08-09 12:30:39 -04:00
Mikayla Maki
fcfbc7b810
Fix two mouse event bugs ( #2835 )
...
This PR fixes two bugs we discovered in Zed's mouse event handling while
investigating an interesting and mysterious bug we we were seeing, where
spurious `MouseMoved` events would continuously be dispatched after
control-clicking.
Release Notes:
- Fixed a rendering glitch that could occur after control-clicking
certain elements.
2023-08-09 09:04:32 -07:00
Nate Butler
635662fc42
Add ui_sans as a font option in the theme ( #2836 )
...
This adds IBM Plex as a font option available to use as `ui_sans`
Note: This PR adds a static list of accepted font types in `/font`, as
LICENSE files were causing the app to crash when Zed was trying to load
them as fonts.
Release Notes:
- N/A (No user facing changes)
Thanks @ForLoveOfCats for getting me unstuck ❤️
2023-08-09 11:54:05 -04:00
Nate Butler
28c56c1f81
Add IBM Plex license
2023-08-09 11:39:15 -04:00
Nate Butler and Julia
8bd9e72673
Only load TTF fonts for now, additional font types will need to be manually added
...
Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com >
2023-08-09 11:38:02 -04:00