Conrad Irwin
0441b4805a
Show cursor position in status bar ( #3464 )
...
Passes the compiler so it must work!
(though it doesn't show up until we fix pane focus)
Release Notes:
- N/A
2023-11-30 16:40:42 -07:00
Conrad Irwin
e1c8369b3d
Rename menu_handle to right_click_menu and child to trigger
...
This makes things more in-line with `popover_menu`.
2023-11-30 16:39:43 -07:00
Conrad Irwin
ebbbeca9a6
Flesh out a popover control
2023-11-30 16:13:44 -07:00
Conrad Irwin
75afb65b26
Show cursor position in status bar
2023-11-30 10:16:24 -07:00
Conrad Irwin
02174084ca
Collab panel2: Now with scrolling and keyboard ( #3455 )
...
Also introducing: .track_scroll() for non-uniform lists.
Release Notes:
- N/A
2023-11-30 00:13:52 -07:00
Conrad Irwin
90b8acfb34
Allow toggling subchannel visiblity without joining channel
2023-11-29 23:55:14 -07:00
Conrad Irwin
4fbbb28da2
Restore logical offset preservation behaviour
2023-11-29 23:51:31 -07:00
Conrad Irwin
54cfcef0aa
Keybaord shortcut context menu
2023-11-29 23:04:33 -07:00
Conrad Irwin
a37f86f294
Scroll the collab panel when keyboard focusing
2023-11-29 22:39:15 -07:00
Conrad Irwin
8638fc4149
Add a ScrollHandle to gpui2 for the collab panel
2023-11-29 22:20:06 -07:00
Conrad Irwin
012543052b
Add filtering support
2023-11-29 20:58:15 -07:00
Conrad Irwin
481e42ade9
collab panel2 ( #3447 )
...
[[PR Description]]
Release Notes:
- N/A
2023-11-29 16:38:35 -07:00
Conrad Irwin
4c27f4453c
Merge branch 'main' into collab-panel2
2023-11-29 16:32:25 -07:00
Conrad Irwin
cd60d466b1
Merge branch 'main' into collab-panel2
2023-11-29 15:40:16 -07:00
Conrad Irwin
0eef4d03ed
Scrollyscrolly
2023-11-29 15:30:50 -07:00
Conrad Irwin
4f040208c6
Fix mouse interaction on contact subsections
2023-11-29 15:26:19 -07:00
Conrad Irwin
3bdd51cb2a
Availability indicators
2023-11-29 15:06:58 -07:00
Conrad Irwin
4ebae4d8bd
Make LeftSlot take an element
2023-11-29 14:20:26 -07:00
Conrad Irwin
fb377aed73
Context menu, Dragon Drop, for collab panel ( #3441 )
...
Release Notes:
- N/A
2023-11-29 13:40:46 -07:00
Conrad Irwin
6ab3825ab1
No moar toggleable
2023-11-29 13:25:29 -07:00
Conrad Irwin
87cf0cf5ac
Merge branch 'main' into collab-panel2
2023-11-29 13:09:57 -07:00
Conrad Irwin
139708d486
Merge branch 'main' into collab-panel2
2023-11-29 12:37:29 -07:00
Conrad Irwin and Max
7e5aa5ce77
More drag'n'drop fixes
...
Co-Authored-By: Max <max@zed.dev >
2023-11-29 12:35:25 -07:00
Conrad Irwin and Max
e377bd805b
Add channel drag'n'drop
...
Co-Authored-By: Max <max@zed.dev >
2023-11-29 12:24:04 -07:00
Conrad Irwin
41e7653906
Channel Context Menu
2023-11-29 11:39:26 -07:00
Conrad Irwin
ee260a5e24
Progress
2023-11-29 11:06:24 -07:00
Conrad Irwin
c23a610d52
Move padding on uniform list inside the scrollable area ( #3437 )
...
Release Notes:
- N/A
2023-11-29 10:43:04 -07:00
Conrad Irwin
35481e2c79
Move padding on uniform list inside the scrollable area
2023-11-29 10:05:31 -07:00
Conrad Irwin
5d59108b97
Inviting/Responding/Creating Channels... etc. ( #3433 )
...
Release Notes:
- n/a
2023-11-29 09:29:25 -07:00
Conrad Irwin
5fbc60d8da
Inviting/Responding/Creating Channels... etc.
2023-11-28 22:47:04 -07:00
Conrad Irwin
396ecefa4f
use the right click event for buttons ( #3432 )
...
Previously we used mouse down
Release Notes:
- N/A
2023-11-28 21:27:42 -07:00
Conrad Irwin
0d4839b973
use the right click event for buttons
2023-11-28 21:14:48 -07:00
Conrad Irwin
9e7a90a3d4
Fix stateful elements in Components ( #3430 )
...
No more wrapper divs for buttons
Release Notes:
- N/A
2023-11-28 20:59:58 -07:00
Conrad Irwin
db5ded0252
Remove useless method
...
We need to move state from layout to paint in any case
2023-11-28 20:53:46 -07:00
Conrad Irwin
8d1518d70c
Fix stateful elements in Components
...
Previously a component assumed its element was stateless, this was
incorrect!
2023-11-28 20:47:11 -07:00
Conrad Irwin
7677998470
Channel joining ( #3428 )
...
- Remove debugging
- Basic channel joining!
[[PR Description]]
Release Notes:
- N/A
2023-11-28 17:00:21 -07:00
Conrad Irwin
60ce75c34a
Togglable channels, the greatest since sliced bread
2023-11-28 16:52:12 -07:00
Conrad Irwin
4c2348eb53
Fix tests, notify errors
2023-11-28 16:20:54 -07:00
Conrad Irwin
af3fa4ec0b
Basic channel joining!
2023-11-28 16:10:18 -07:00
Conrad Irwin
75891e83f3
Fix mouse events when element is occluded ( #3417 )
...
This commit adds a depth map to the frame so we can find the "top most"
opaque layer by stacking order for a given point.
This lets us determine whether the element being hovered was part of the
given layer in the previous frame, which fixes the hover issue.
Still to do:
* [ ] Fix up mouse events too (I tried this, but it's not working yet,
and I want to understand why)
Release Notes:
- N/A
2023-11-28 15:57:22 -07:00
Conrad Irwin
b13638fa76
Remove debugging
2023-11-28 15:33:44 -07:00
Conrad Irwin
450f2bf6b6
More progress on collab panel ( #3426 )
...
Release Notes:
- n/a
2023-11-28 15:30:51 -07:00
Conrad Irwin
a85e0db1f4
More progress on collab panel
2023-11-28 14:40:32 -07:00
Conrad Irwin
132ad5989c
Add logged out collab panel ( #3412 )
...
Release Notes:
- N/A
2023-11-28 11:49:09 -07:00
Conrad Irwin
01d3432a40
Merge branch 'main' into collab-panel2
2023-11-28 11:40:58 -07:00
Conrad Irwin
a761e6ca0e
More mouse occlusion work
2023-11-28 09:59:58 -07:00
Conrad Irwin
ca0dcf741f
Use layers to correct mouse event handling too
2023-11-28 00:07:26 -07:00
Conrad Irwin
17b5f9294c
Fix hover state when element is occluded
2023-11-27 23:18:25 -07:00
Conrad Irwin
26121713b3
Show channels and users in the sidebar
2023-11-27 19:57:55 -07:00
Conrad Irwin
2a8f4f19d6
Scaffolding for update notification too ( #3410 )
...
Release Notes:
- N/A
2023-11-27 19:05:15 -07:00
Conrad Irwin
eca49ef02e
remove zed1 notification mess ( #3415 )
...
Accidentally added while testing zed2
Release Notes:
- N/A
2023-11-27 16:52:51 -07:00
Conrad Irwin
f3d142b7e9
remove zed1 notification mess
2023-11-27 16:27:02 -07:00
Conrad Irwin
4a25fae51e
TEMP
2023-11-27 16:22:01 -07:00
Conrad Irwin
e6aab57656
Merge branch 'main' into collab-panel2
2023-11-27 15:57:09 -07:00
Conrad Irwin
ccfc4fc0b9
Fix esc in command palette ( #3414 )
...
Also: add editor.register_action
Release Notes:
- N/A
2023-11-27 15:47:01 -07:00
Conrad Irwin
47b4d9942f
Fix panic on quit
2023-11-27 15:33:47 -07:00
Conrad Irwin
107c3d7f67
Fix esc in command palette
...
Also: add editor.register_action
2023-11-27 14:32:22 -07:00
Conrad Irwin
6f839a1b48
Add logged out collab panel
2023-11-27 13:00:12 -07:00
Conrad Irwin
4f885252ab
[Zed2] Collab UI ( #3403 )
...
Release Notes:
- N/A
2023-11-27 12:40:59 -07:00
Conrad Irwin
e31a8f0536
Scaffolding for update notification too
2023-11-27 12:07:26 -07:00
Conrad Irwin
82f6f77117
Use editor's overlay implementation
2023-11-27 11:49:51 -07:00
Conrad Irwin
212d9254e1
Merge branch 'main' into completions-styles
2023-11-27 11:49:39 -07:00
Conrad Irwin
b48b74559c
Break content mask for hoverables ( #3409 )
...
Release Notes:
- N/A
2023-11-27 11:49:20 -07:00
Conrad Irwin
7a8aba329b
Break content mask for hoverables
2023-11-27 11:43:14 -07:00
Conrad Irwin
fd165206bf
gpui2: Notifications ( #3407 )
...
Release Notes:
- N/A
2023-11-27 09:22:31 -07:00
Conrad Irwin
039c933d8e
gpui2: Notifications
2023-11-26 22:28:53 -07:00
Conrad Irwin
8049ec674e
Fix last thing
2023-11-20 16:35:56 -07:00
Conrad Irwin
5c0f2e75ea
Remove all the settings
2023-11-20 16:30:14 -07:00
Conrad Irwin
3e2dba36b4
Merge branch 'main' into callback-handles
2023-11-20 16:28:35 -07:00
Conrad Irwin
8b6b7e60be
borrow less
2023-11-20 16:00:47 -07:00
Conrad Irwin
25ed7c57c1
WIP
2023-11-20 12:34:08 -07:00
Conrad Irwin
d0dd44faad
Merge branch 'main' into callback-handles
2023-11-20 12:21:42 -07:00
Conrad Irwin
6f0cdc35f3
Refine element and component traits ( #3367 )
...
This PR changes `Element::paint` to move self and introduces a new
`RenderOnce` trait, which renders into an element by moving self.
Elements are required to be `RenderOnce`, and `element_id` is now on
`RenderOnce` so we can get the id without moving self. The `child` and
`children` methods now expect `impl RenderOnce`.
```rust
pub trait Element<V: 'static>: 'static + RenderOnce<V> {
type State: 'static;
fn layout(
&mut self,
view_state: &mut V,
element_state: Option<Self::State>,
cx: &mut ViewContext<V>,
) -> (LayoutId, Self::State);
fn paint(
self,
bounds: Bounds<Pixels>,
view_state: &mut V,
element_state: &mut Self::State,
cx: &mut ViewContext<V>,
);
fn into_any(self) -> AnyElement<V> {
AnyElement::new(self)
}
}
pub trait RenderOnce<V: 'static>: Sized {
type Element: Element<V> + 'static;
fn element_id(&self) -> Option<ElementId>;
fn render_once(self) -> Self::Element;
// default helpers ...
}
```
To make a type a component, you can add `#[derive(RenderOnce)]`, which
will require your type to implement the `Component` trait:
```rust
pub trait Component<V: 'static>: 'static {
type Rendered: RenderOnce<V>;
fn render(self, view: &mut V, cx: &mut ViewContext<V>) -> Self::Rendered;
}
```
I'm satisfied with this being what we open source for elements, aside
from maybe adding a `StatefulComponent` trait that uses element state.
Things finally feel like they slot into a coherent and simple narrative.
Release Notes:
- N/A
2023-11-20 10:48:50 -07:00
Conrad Irwin
b19a6c0dcc
Fix storybook2
2023-11-20 10:16:05 -07:00
Conrad Irwin
5d16f76518
fmt
2023-11-20 10:05:57 -07:00
Conrad Irwin
8599ba557d
Fix more import errors
2023-11-20 10:01:21 -07:00
Conrad Irwin
f08426c7a0
shhhh
2023-11-20 10:00:37 -07:00
Conrad Irwin
f86480ba5d
Merge followup mess
2023-11-20 09:58:05 -07:00
Conrad Irwin
0798cfd58c
Merge branch 'main' into derive-element-redux
2023-11-20 09:15:38 -07:00
Conrad Irwin
45371584b1
Focus workspace on launch ( #3364 )
...
Fixes action dispatch when no focus is there.
Release Notes:
- N/A
2023-11-19 19:38:41 -07:00
Conrad Irwin
c0d85dc1dd
Fix text wrapping when a child of a v_stack() ( #3362 )
...
Previously text that was rendered in a flex-column would reserve the
correct
amount of space during layout, and then paint itself incorrectly.
Release Notes:
- N/A
2023-11-19 11:37:31 -07:00
Conrad Irwin
c5738a509c
delint
2023-11-18 22:20:50 -07:00
Conrad Irwin
0711121586
Add some test cases
2023-11-18 22:16:28 -07:00
Conrad Irwin
cf47ed2c5f
Fix wrapping when parent has a max_width
...
(Also avoid re-wrapping text we already wrapped)
2023-11-18 21:31:16 -07:00
Conrad Irwin
242a0b85b5
Update Taffy to latest main
2023-11-18 21:30:33 -07:00
Conrad Irwin
7172ce37b1
Fix text wrapping when a child of a v_stack()
2023-11-18 20:35:22 -07:00
Conrad Irwin
ec3bb0f090
Focus workspace on launch
...
Fixes action dispatch when no focus is there.
2023-11-17 14:11:39 -07:00
Conrad Irwin
a6d6f8a193
shhh ( #3358 )
...
- Fix image errors
Release Notes:
- N/A
2023-11-17 14:01:44 -07:00
Conrad Irwin
6bfe6fa0e1
Fix image errors
...
* Firstly only log one error per image load, not per frame
* Secondly use an Icon not an image for rendering Icons
2023-11-17 13:47:07 -07:00
Conrad Irwin
624bd0a05a
Collab ui2 ( #3357 )
...
* Clickable context menus & movable panels – what will they think of
next?!
Release Notes:
- N/A
2023-11-17 13:33:18 -07:00
Conrad Irwin
ceb20dea96
Refactorings
2023-11-17 13:23:12 -07:00
Conrad Irwin
eb04160d2d
Dock menu
2023-11-17 12:14:06 -07:00
Conrad Irwin
9d742b90c3
Allow you to click on a context menu item
2023-11-17 11:57:51 -07:00
Conrad Irwin
391ab8fa1b
Add more detail to panel switcher interaction ( #3344 )
...
Also featuring:
* IconButton#action()
* gpui::ManagedView
* `menu_handle()`
Release Notes:
- N/A
2023-11-16 23:16:50 -07:00
Conrad Irwin
2d1d75f482
+ManagedView
...
And some games with rust traits
2023-11-16 23:02:10 -07:00
Conrad Irwin
2182cb2656
Ooh generics
2023-11-16 22:16:29 -07:00
Conrad Irwin
6d4276ea5f
Merge branch 'main' into collab_ui2
2023-11-16 22:08:42 -07:00
Conrad Irwin
c0ad15756c
More attachment configuration for context menus
2023-11-16 21:59:23 -07:00
Conrad Irwin
9547e88d88
TEMP
2023-11-16 19:50:31 -07:00
Conrad Irwin
547888942f
Add storybook3
2023-11-16 19:42:25 -07:00