Nathan Sobo
49672bfc5f
Checkpoint
2023-09-27 17:51:12 -06:00
Nathan Sobo
b364d404a9
Checkpoint
2023-09-27 17:25:04 -06:00
Nathan Sobo
96f9c67e77
Checkpoint
2023-09-27 17:17:30 -06:00
Nathan Sobo
e9a84a21e4
Checkpoint
2023-09-27 15:35:51 -06:00
Nathan Sobo
e979d75cb8
WIP
2023-09-22 08:34:43 -06:00
Nathan Sobo
d120d0cf2e
Checkpoint
2023-09-21 14:10:53 -06:00
Nathan Sobo
a0416e9c6d
WIP
2023-09-21 13:46:31 -06:00
Nathan Sobo
a53c0b9472
WIP
2023-09-21 13:39:54 -06:00
Nathan Sobo
8573c6e8c6
WIP
2023-09-21 12:18:09 -06:00
Nathan Sobo
dfeb702544
WIP - Next: implement Element derive macro
2023-09-20 22:26:46 -06:00
Nathan Sobo
6d2b27689d
WIP
2023-09-20 20:40:30 -06:00
Nathan Sobo
a8bb3dd9a3
WIP
2023-09-20 20:28:32 -06:00
Nathan Sobo
44608517c1
WIP
2023-09-20 14:32:55 -06:00
Nathan Sobo
5b0e333967
Checkpoint
2023-09-20 12:16:26 -06:00
Nathan Sobo
83dae46ec6
Checkpoint
2023-09-20 10:17:29 -06:00
Nathan Sobo
7885eaf974
Checkpoint
2023-09-19 21:55:49 -06:00
Nathan Sobo
37d0f06e07
Checkpoint
2023-09-19 20:55:13 -06:00
Nathan Sobo
8406c0d9a3
Checkpoint
2023-09-19 13:27:57 -06:00
Nathan Sobo
e762f7f3c0
Checkpoint
2023-09-19 13:09:00 -06:00
Nathan Sobo
89519b1521
WIP
2023-09-19 08:46:02 -06:00
Nathan Sobo
df9a05ba92
Checkpoint
2023-09-18 17:40:47 -06:00
Nathan Sobo
0a2a5be71c
Checkpoint
2023-09-14 21:42:56 -06:00
Nathan Sobo
4fd4f44bb7
Checkpoint
2023-09-14 18:51:03 -06:00
Nathan Sobo
378b2fbd9e
WIP
2023-09-14 16:52:04 -06:00
Nathan Sobo
1f9b52d5e1
Checkpoint
2023-09-14 16:19:48 -06:00
Nathan Sobo
b30bb56483
Checkpoint
2023-09-14 16:14:42 -06:00
Nathan Sobo
ba22da00bf
Checkpoint
2023-09-14 15:49:54 -06:00
Nathan Sobo
cee5ddee53
Checkpoint
2023-09-14 15:34:39 -06:00
Nathan Sobo
c74c60a629
Slotmaps
2023-09-14 15:21:49 -06:00
Nathan Sobo
e4f8fe941e
Checkpoint
2023-09-14 14:47:02 -06:00
Nathan Sobo
b9e1ca1385
Checkpoint
2023-09-14 14:42:04 -06:00
Nathan Sobo
1c20a8cd31
Checkpoint
2023-09-13 11:07:24 -06:00
Nathan Sobo
1adb7fa58c
Checkpoint
2023-09-13 09:28:04 -06:00
Nathan Sobo
dcf6059a15
Checkpoint
2023-09-13 08:55:14 -06:00
Nathan Sobo
8a6e9f90be
Checkpoint
2023-09-13 08:13:45 -06:00
Nathan Sobo
77af33ba5d
WIP
2023-09-13 00:03:56 -06:00
Nathan Sobo
faabed1df0
Checkpoint
2023-09-12 21:34:03 -06:00
Nathan Sobo
cae5c76bed
Checkpoint
2023-09-12 21:07:35 -06:00
Nathan Sobo
53b698adb6
Checkpoint
2023-09-12 20:40:05 -06:00
Nathan Sobo
dc2733998e
WIP
2023-09-12 12:43:08 -06:00
Nathan Sobo
5dad97779a
WIP
2023-09-12 07:34:42 -06:00
Nathan Sobo
3ba8857491
Checkpoint
2023-09-11 12:58:55 -06:00
Nathan Sobo
c3a3543ebb
Introduce gpui2 and storybook crates ( #2919 )
...
This PR splits `crates/gpui/playground` with two new crates: `gpui2` and
`storybook`.
GPUI 2 re-exports most of `gpui`, but makes some adjustments. I want to
keep the scope focused. This isn't literally version 2.0 of GPUI or
anything. It's just a convenient way to make a create with fewer
dependencies where we can iterate quickly on aspects of GPUI's design.
Most of the focus is on improving our approach to element layout and
styling.
The `storybook` crate is pretty empty for now, but it's where I intend
to start rebuilding interfaces. I welcome anyone else to join me in
this, though until I get one interface fully built, buyer beware. You
may need to pair on it with me.
2023-09-11 09:19:43 -06:00
Nathan Sobo
15ea4af5e7
Merge branch 'main' into storybook
2023-09-11 09:13:46 -06:00
Nathan Sobo
e0fdc7d0aa
Eliminate PaintContext
2023-09-11 09:00:59 -06:00
Nathan Sobo
a24d94cfda
Eliminate LayoutContext
2023-09-11 08:47:00 -06:00
Nathan Sobo
ebf8b32811
Checkpoint
2023-09-08 16:25:10 -06:00
Nathan Sobo
362b1a44be
Merge branch 'main' into storybook
2023-09-08 14:18:44 -06:00
Nathan Sobo
c3b1264c05
Checkpoint
2023-09-08 14:09:29 -06:00
Nathan Sobo
14fc386dc8
Checkpoint
2023-09-08 13:54:15 -06:00
Nathan Sobo
53a50b8df4
Move refreshing to window
2023-09-08 13:27:29 -06:00
Nathan Sobo
21d390fa4a
Support overflow scroll
2023-09-08 10:20:45 -06:00
Nathan Sobo
713d72942d
Fix bounds calculations
2023-09-08 06:45:23 -06:00
Nathan Sobo
7738867639
Always pass parent origin when painting elements
2023-09-08 06:32:20 -06:00
Nathan Sobo
d311bd04ff
Add basic inspector
2023-09-07 22:24:02 -06:00
Nathan Sobo
4307a06073
WIP
2023-09-07 14:16:44 -06:00
Nathan Sobo
37ef28a3bf
Merge branch 'main' into storybook
2023-09-07 07:56:57 -06:00
Nathan Sobo
a8d5d93757
Max out corner radii to half the smaller dimension of the parent box
2023-09-06 17:21:05 -06:00
Nathan Sobo
99ad60460a
Add support for fetching/rendering images
2023-09-06 17:13:43 -06:00
Nathan Sobo
6d4dd0e7a4
Checkpoint
2023-09-06 15:22:35 -06:00
Nathan Sobo
46451f2a8b
Render borders in gpui2 divs
2023-09-06 14:31:44 -06:00
Nathan Sobo
5a778fbde6
Checkpoint
2023-09-06 14:16:15 -06:00
Nathan Sobo
707427d9f5
Select caret based on expanded boolean
2023-09-06 10:24:22 -06:00
Nathan Sobo
a2e91e45d9
Use preview server when not on stable ( #2909 )
...
This PR updates our client code to connect to preview whenever we're not
on stable. This will make it more likely that we'll be able to
collaborate on a dev build, but obviously won't work if there's a
protocol change on main that hasn't made its way to preview yet.
2023-09-06 10:09:08 -06:00
Nathan Sobo
de77e56dc6
Checkpoint
2023-09-05 18:53:25 -06:00
Nathan Sobo
85aedf9bed
WIP: Icons not yet rendering
2023-09-05 16:40:52 -06:00
Nathan Sobo
5a9c76e080
Fix hoverable elements moving on hover
2023-09-05 15:17:09 -06:00
Nathan Sobo
e08c0fc4ce
Checkpoint
2023-09-05 12:50:07 -06:00
Nathan Sobo
9ec7569e09
Checkpoint
2023-09-05 12:16:21 -06:00
Nathan Sobo and Nate Butler
0307cb8a88
Start sketching a collab panel in storybook
...
Co-Authored-By: Nate Butler <nate@zed.dev >
2023-09-05 10:02:36 -06:00
Nathan Sobo
2fa9c037c8
Merge remote-tracking branch 'origin' into storybook
2023-09-01 10:08:48 -06:00
Nathan Sobo
6275c560e7
Fix warnings for a clean build
2023-09-01 10:08:41 -06:00
Nathan Sobo
3b5ee59273
Split playground into gpui2 and storybook
2023-08-30 16:12:14 -06:00
Nathan Sobo
ee11be98e5
Add gpui2 crate
2023-08-30 15:00:11 -06:00
Nathan Sobo
746f77bf7c
Checkpoint
2023-08-30 14:40:57 -06:00
Nathan Sobo
1d491fcd78
Get playground rendering with backward compatible theming
2023-08-30 11:09:34 -06:00
Nathan Sobo
d763946b18
Checkpoint: Working toward compatibility with themes
2023-08-30 10:11:00 -06:00
Nathan Sobo
48d3e2d9b9
Move views_to_notify_if_ancestors_change to Window
2023-08-29 21:58:44 -06:00
Nathan Sobo
2e7356a53e
Store new_parents on Window instead of layout context
2023-08-29 21:43:48 -06:00
Nathan Sobo
42cd257287
Remove text style stack from LayoutContext
2023-08-29 21:33:08 -06:00
Nathan Sobo
81957c49d5
Merge remote-tracking branch 'origin' into divs
2023-08-29 21:14:14 -06:00
Nathan Sobo
a0b6e500cf
WIP
2023-08-29 18:40:24 -06:00
Nathan Sobo
a56fab8c11
Remove unused proc macro
2023-08-29 18:30:57 -06:00
Nathan Sobo
84b9c22170
Merge branch 'main' into ai-refactoring
2023-08-29 10:17:01 -06:00
Nathan Sobo
2d411303bb
Use preview server when not on stable
2023-08-29 10:07:22 -06:00
Nathan Sobo
396558755e
Testing: Update build script to make local testing easier ( #2903 )
...
* `script/bundle -l` will only build for the current architecture and
skip DMG creation. It will also copy to `/Applications`.
* `script/bundle -l "My Bundle"` will name the bundle after your
provided name.
* Passing `-f` will overwrite. Passing `-o` will also open the
application.
2023-08-29 07:07:35 -06:00
Nathan Sobo and Mikayla Maki
9371754942
Provide themes to subtrees via context
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-08-28 16:07:26 -06:00
Nathan Sobo and Mikayla Maki
fd1633ac4b
Render a titlebar you can barely see
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-08-28 14:24:27 -06:00
Nathan Sobo and Mikayla Maki
b5aedc144d
Allow layout to be called on element in any phase of its lifecyle.
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2023-08-28 14:23:16 -06:00
Nathan Sobo
a1d2ae3095
Add -l option to build script
...
When you pass -l, we build for the local architecture only and copy the
resulting app bundle to /Applications. You can provide a bundle name as
an optional argument.
2023-08-28 13:32:30 -06:00
Nathan Sobo
5bb780073e
Relativize child layouts to their parent origin
2023-08-25 23:22:53 -06:00
Nathan Sobo
3bebfbcd50
Checkpoint
2023-08-25 23:15:58 -06:00
Nathan Sobo
8ad736da8d
WIP
2023-08-25 22:19:49 -06:00
Nathan Sobo
147aa0f695
WIP
2023-08-25 21:41:21 -06:00
Nathan Sobo
cf007a3d3b
Start working on restoring button
2023-08-23 16:17:45 -06:00
Nathan Sobo
4c000379d2
Click events, children
2023-08-23 16:02:56 -06:00
Nathan Sobo and Conrad Irwin
8e3b23e510
Rename Window::mouse_position to last_mouse_position
...
We want to encourage people to use WindowContext::mouse_position, which
requests the position from the platform.
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-08-23 13:28:22 -06:00
Nathan Sobo and Conrad Irwin
684db11afd
Use platform API to request mouse position
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-08-23 13:10:41 -06:00
Nathan Sobo and Conrad Irwin
5996b6b46b
Use RefinementCascade to compose pressability and hoverability
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev >
2023-08-23 12:18:12 -06:00
Nathan Sobo
569d99a5a1
Add hover styling support
2023-08-23 09:08:05 -06:00