Commit Graph
587 Commits
Author SHA1 Message Date
Antonio Scandurra 735347ffc1 Don't focus incoming call and project shared notification windows 2022-11-02 14:17:16 +01:00
K Simmons 915bc6afe2 remove unnecessary comment 2022-10-27 13:29:57 -07:00
K Simmons 395e073298 upgrade existing test to match new expected behavior 2022-10-27 13:28:49 -07:00
K Simmons fa8f180406 minor tweak to keymap code 2022-10-27 12:36:53 -07:00
K Simmons 726cc8aca6 fixed binding fallback 2022-10-27 12:33:51 -07:00
Mikayla Maki b67c414bc3 WIP: Change to matches to vec 2022-10-27 11:27:26 -07:00
K Simmons 1a47c16255 Disallow new keybindings when there are any pending 2022-10-26 16:57:23 -07:00
K Simmons ed0c2b9854 wip 2022-10-26 15:57:42 -07:00
Antonio Scandurra 6c28b49edd Log instead of panicking when we can't retrieve a drawable 2022-10-26 14:30:48 +02:00
Antonio Scandurra 99113fcc8c Convert window frame rect to screen coordinates 2022-10-26 14:27:53 +02:00
Antonio Scandurra 3d4906f002 Add the ability to open a window on a given screen
This is done by supplying the screen in the `WindowOptions` struct.
Note that it's optional, and we will let the operating system choose
which screen to show the window on when `screen` is not provided, as
we did before this change.
2022-10-26 12:04:45 +02:00
Antonio ScandurraandMax Brunsfeld f05363b45c Maintain scroll position in contacts list
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-10-25 18:36:33 +02:00
Antonio Scandurra 5138c263a6 Rename height to z-index 2022-10-25 13:47:12 +02:00
Antonio Scandurra 85ce4d083a Allow specifying a custom height for stacking contexts 2022-10-25 13:41:47 +02:00
Antonio Scandurra b355e5e875 💄 2022-10-25 12:19:25 +02:00
Antonio Scandurra bbcd8d4df9 Rename depth to height when referring to stacking contexts 2022-10-25 12:18:23 +02:00
Antonio Scandurra dd6447cbbb Create a SceneBuilder and sort stacking contexts when calling build 2022-10-25 12:16:09 +02:00
Kay Simmons c577cc3f29 Merge pull request #1792 from zed-industries/fn-modifier
Add fn modifier
2022-10-25 00:35:00 -07:00
K Simmons d6ce5e5da9 remove derive_more 2022-10-25 00:06:43 -07:00
K Simmons a092dda8cd Add fn modifier to modifier keys in gpui and refactor platform events to use a single modifiers struct 2022-10-24 23:50:39 -07:00
K Simmons f2c8c85358 tweak drop target overlay color and make stack fully constraint children by the first child
's size
2022-10-24 23:47:43 -07:00
K Simmons 6a082e0e87 remove unnecessary Move branch in dispatch_events 2022-10-24 23:32:01 -07:00
K Simmons e83b6e9379 remove more notify on moves 2022-10-24 23:32:01 -07:00
K Simmons c2ee248dd5 remove mouse position from render params 2022-10-24 23:32:01 -07:00
K Simmons d81ab40524 roll back mouse position in mouse_state struct in favor of using the dragged element position 2022-10-24 23:32:01 -07:00
K Simmons c216270cc7 extract dragged item target 2022-10-24 23:32:00 -07:00
K Simmons bcb83ec7fc fix issue where empty pane is created 2022-10-24 23:32:00 -07:00
K Simmons 6ae3c4446c Add pane splitting by dragged item. Works, but the overlay doesn't clear quite right 2022-10-24 23:31:58 -07:00
K Simmons 48dbd2465a add mouse region handler bool for adding the handler above the child 2022-10-24 23:30:35 -07:00
JuliaandKay Simmons d842dc1259 Handle tab drag end on pane items to insert after active item
Co-Authored-By: Kay Simmons <kay@zed.dev>
2022-10-24 23:30:35 -07:00
Antonio Scandurra 75a35cabc4 Allow opening shared screen via the contacts popover 2022-10-24 10:47:47 +02:00
Antonio Scandurra 231fc0f698 Merge branch 'main' into screen-sharing
# Conflicts:
#	crates/collab/src/integration_tests.rs
#	crates/collab/src/main.rs
#	styles/src/styleTree/workspace.ts
2022-10-21 14:29:45 +02:00
Nathan Sobo 22770aa942 Apply a slight stylistic tweak 2022-10-20 18:38:27 -06:00
K Simmons a03d4d9802 catch keymap string only modifiers and no key 2022-10-20 16:30:07 -07:00
Antonio Scandurra 5126184bfb Merge remote-tracking branch 'origin/main' into screen-sharing 2022-10-19 10:04:56 +02:00
Nathan Sobo e74039336d Merge pull request #1764 from zed-industries/gpui-events
Eliminate dispatch_event on Element trait
2022-10-18 15:24:13 -06:00
Max Brunsfeld 02d91a5a83 Scroll horizontal flex lists by whichever scroll delta dimension is greater 2022-10-18 12:59:04 -07:00
Antonio Scandurra e7830b4c33 Render remote participant's screen preserving aspect ratio 2022-10-18 14:16:19 +02:00
Nathan Sobo f26a6179b4 Remove dispatch_event from Element trait 2022-10-16 13:08:25 -06:00
Nathan Sobo 25476bcbc6 Move handling of modifier changes to new View hook 2022-10-16 12:47:48 -06:00
Nathan Sobo 6c870a17a6 Start on view-level dispatch approach for keyboard events 2022-10-16 11:46:31 -06:00
Nathan Sobo 5cde1e8f36 Refine mouse event naming 2022-10-16 11:18:58 -06:00
Nathan Sobo 3e27b81d17 Merge pull request #1762 from zed-industries/less-click-and-hover-invalidation
Reduce unnecessary view invalidations related to mouse events
2022-10-16 10:23:54 -06:00
Nathan Sobo d2431d9540 Merge pull request #1761 from zed-industries/mouse-region-view-invalidation
Remove unconditional invalidation when calling mouse region handlers
2022-10-14 18:31:23 -06:00
Nathan SoboandMax Brunsfeld 4aff034ff5 Only invalidate parent view on click/hover if we read that state when rendering
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-10-14 18:09:15 -06:00
Nathan Sobo 5c0f9e5c51 Remove unconditional invalidation when calling mouse region handlers
We want invalidation to opt-in as much as possible.
If you want a view to re-render, you need to call `cx.notify`.
2022-10-14 17:06:46 -06:00
Max BrunsfeldandMikayla Maki 7c96e0d6e6 Add MovePageUp and MovePageDown editor commands
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2022-10-14 12:36:46 -07:00
Nathan Sobo 58e309df78 Pass the current view id value when painting List's mouse region
Previously, a dummy value was being passed. I think this slipped in accidentally.
2022-10-13 15:57:19 -06:00
Antonio ScandurraandNathan Sobo 542480da5b Improve error message when rendering a child view for a dropped view
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-10-13 16:40:52 +02:00
Antonio Scandurra e80af89a1c Add unit test for ChildView 2022-10-13 15:59:52 +02:00