Commit Graph
37 Commits
Author SHA1 Message Date
Mikayla Maki 730ea83ee0 Convert keymap context to use generics and Cow<'static> so we don't have to add .to_string() and .into() for each usage 2023-02-23 14:10:55 -08:00
Max Brunsfeld 781ad9501a Rearrange collab titlebar items to avoid movement of the toggle contacts button
* Replace username in titelbar with a `...` user menu that shows
  the current user name and contains a sign-in/sign-out button.
* Move the '+' (toggle contacts) button back to the right side.
* Move the collaborators back to the right side.
* Move the share/unshare button to the left side, beside the project title
* Only show the share/unshare button when in a call.
2023-02-22 22:56:11 -08:00
Mikayla MakiandMax 2be754d088 Fixed a bug where the command palette wouldn't check the keymap context when showing available actions
Fixed a bug where context menus wouldn't show action keystrokes
WIP Fixing a bug where tooltips won't show action keystrokes

Co-Authored-By: Max <max@zed.dev>
2023-02-06 15:42:14 -08:00
Mikayla Maki fc7532d74d Added complete scripts for generating third party license files 2023-01-23 12:47:12 -08:00
Kay Simmons 4da1890a54 working f and t bindings 2023-01-06 14:24:20 -08: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
Julia e59a237159 Don't allow drag event to fall through context menu 2022-10-18 15:00:49 -04:00
Nathan Sobo 6c870a17a6 Start on view-level dispatch approach for keyboard events 2022-10-16 11:46:31 -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
K SimmonsandMikayla Maki 7816d96dc1 Permanent fix to repeat MouseRegion Tag failure in Workspace
Polish tab bar buttons

Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2022-09-11 15:34:10 -07:00
K Simmons b76bd98ed8 WIP compiling but failing with circular reference 2022-08-09 17:15:52 -07:00
K Simmons 20770e7240 Event dispatch moved to MutableAppContext. No longer dispatches from presenter. Not currently handling key presses properly 2022-08-09 17:09:16 -07:00
Mikayla Maki eb4be2e11d Removed icons 2022-08-04 08:42:42 -07:00
Mikayla Maki 7f255e6ec0 Added icons to context menu 2022-08-03 16:47:41 -07:00
K Simmons b31b867200 Address some issues where panes don't get focused properly, make the focused pane more obvious, and prevent splitting of the pane with no items 2022-07-20 18:52:32 -07:00
K Simmons d264ba8e16 Rework presenter and MouseRegion to use Handler hashmap rather than individual fields 2022-07-17 23:19:32 -07:00
Keith Simmons bf7ce0c776 Add basic test for editor context menu 2022-07-13 14:13:19 -07:00
Antonio Scandurra 342bcdc9ca Don't steal focus when splitting pane via context menu 2022-07-13 15:06:39 +02:00
Antonio Scandurra 1c9ada48b8 Deploy context menu when clicking on split icon 2022-07-13 12:15:36 +02:00
Antonio Scandurra d5bd609b2c Use a different fit mode for tooltips 2022-06-15 16:45:04 +02:00
Antonio Scandurra 77719c2e5c Snap overlay's bottom/right edge to same window's edge on overflow 2022-06-09 13:48:02 +02:00
Antonio Scandurra 8256efeed8 Don't dismiss context menu when right-clicking project panel again 2022-06-02 10:00:52 +02:00
Antonio Scandurra 43a3b0c050 Align context menu to fit within the window bounds 2022-06-02 09:47:06 +02:00
Antonio Scandurra 6e4bdf40c0 Don't steal focus from context menu when dispatching an action 2022-05-30 18:36:36 +02:00
Antonio Scandurra 8b77d681bb Dismiss context menu when one of its action is dispatched 2022-05-30 10:05:21 +02:00
Antonio Scandurra 7fe7d06218 Dismiss context menu when (right-)mousing down outside of it 2022-05-28 08:51:46 +02:00
Nathan Sobo 07fe691d40 Allow context menu to be cancelled after deploying it twice
Previously, two right clicks would cause an issue with cancelling the context menu via escape.
2022-05-27 12:00:11 -06:00
Antonio Scandurra d71e5455a0 Merge branch 'mouse-events' into project-panel-context-menu 2022-05-27 12:07:00 +02:00
Antonio Scandurra 355f8469f2 Introduce keyboard navigation in context menus 2022-05-26 16:36:30 +02:00
Antonio Scandurra f41fbd72a1 Restore focus when closing context menu 2022-05-26 15:21:55 +02:00
Antonio Scandurra c0e8ce0e25 WIP 2022-05-26 11:17:10 +02:00
Antonio Scandurra a367c47b0d Style context menu 2022-05-26 10:40:53 +02:00
Nathan SoboandAntonio Scandurra 4fce228784 Put keystrokes in their own column
This requires rendering the menu for measurement in a totally different way, where the top level is a flex row. We don't want to render the menu like this for presentation because of hovers / highlights on individual items needing to include the keystrokes.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2022-05-26 09:59:25 +02:00
Antonio Scandurra 118e4b4011 WIP 2022-05-26 09:59:25 +02:00
Antonio ScandurraandNathan Sobo 8143fce41a Constrain context menu to the width of the widest item
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-05-26 09:59:25 +02:00
Antonio Scandurra 882674eb8a WIP 2022-05-26 09:59:25 +02:00
Nathan Sobo 10319679fc Start on context_menu crate 2022-05-26 09:59:25 +02:00