Mikayla
ec2490269d
Add components example
...
Re-arrange generics on mouse event handler
Add TypeTag struct for dynamically tagged components
2023-08-15 03:06:43 -07:00
Nathan Sobo
79da4b18a4
Move more window methods off AsyncAppContext
2023-08-08 11:38:07 -06:00
Nathan Sobo
c843749cb0
Store an AnyWindowHandle in WindowContext
2023-08-08 11:08:37 -06:00
Antonio Scandurra
1d1a52dea4
Introduce a WindowContext::focus method that implies the window id
2023-07-05 09:39:04 +02:00
Mikayla Maki
74fefb0002
Remove on_click_out handler from context menu
...
Add 'delay_cancel()' method and on_down handler to relevant buttons
2023-06-29 17:10:51 -07:00
Mikayla Maki
b516ef434c
Add click out handler
...
Make all context menus on button click toggles instead of re-shows
2023-06-28 16:23:07 -07:00
Mikayla Maki
8f3385625c
WIP: Add click out event to fix context menus
2023-06-28 09:29:49 -07:00
Mikayla Maki
fd2a2ac6e3
Remove unescessary enum
2023-06-20 16:05:23 -07:00
Piotr Osiewicz
d67640e475
Rename on/off states to active/inactive
2023-06-20 16:05:23 -07:00
Piotr Osiewicz
406e160730
Split out Interactive<T> into Toggle<T> and Interactive<T>
2023-06-20 16:05:20 -07:00
Max Brunsfeld
c261a01c7f
Define theme/ui text style settings in theme crate
2023-05-17 14:44:59 -07:00
Antonio Scandurra
b18c01425f
Always dismiss context menu on click
2023-05-10 09:18:13 +02:00
Antonio Scandurra
95deccdf8a
💄
2023-05-05 10:53:15 +02:00
Antonio Scandurra
3c580153ed
Merge branch 'main' into implicit-ancestry
2023-05-04 14:39:58 +02:00
Antonio Scandurra
1b1f2a3e5e
Avoid re-allocating KeymapContext after every view notification
2023-05-04 12:04:30 +02:00
Antonio Scandurra
ac7e73d494
Remove the ability to retrieve the view's parent
2023-05-03 16:52:55 +02:00
Antonio Scandurra
48373ac54a
Move dispatch_action_any_action_at to AsyncAppContext
2023-05-01 16:40:57 +02:00
Antonio Scandurra
2742f1cb76
Remove ViewContext::dispatch_action
2023-05-01 16:27:36 +02:00
Antonio Scandurra
60b2c83d11
Remove internal actions from ContextMenu
2023-04-27 14:25:14 +02:00
Antonio Scandurra
d0a1109f62
Allow passing a handler function to context menu items
2023-04-27 11:32:12 +02:00
Antonio Scandurra
6c78fda391
Remove ContextMenu::element_item
2023-04-27 11:11:21 +02:00
Antonio Scandurra
ba56b5152e
Remove unused ContextMenu::ViewAction
2023-04-27 10:55:37 +02:00
Antonio Scandurra
947421133a
Replace ViewContext::spawn with ViewContext::spawn_weak
2023-04-26 10:23:27 +02:00
Nathan Sobo and Max Brunsfeld
52d4cc5349
Refine naming of element-related types and traits
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-04-21 13:06:37 -06:00
2bd56ab6f0
Rename Drawable::boxed to into_element and make containers generic
...
Multi-element are now generic over any drawable child, which can be converted
into an element.
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-04-21 12:43:19 -06:00
Antonio Scandurra
ea19068842
Return Result from AsyncAppContext::update_view
2023-04-18 12:03:53 +02:00
Antonio Scandurra
487c468521
Fix most of the warnings
2023-04-14 10:51:53 +02:00
Nathan Sobo
f5a86aecdc
WIP
2023-04-12 12:13:35 -06:00
Nathan Sobo
fabf89a1b1
WIP
2023-04-11 18:21:56 -06:00
Nathan Sobo
596940d986
WIP: Everything shredded
2023-04-10 16:10:32 -06:00
Nathan Sobo
45c1106140
Don't export platform::* from gpui
...
I'd like to avoid cluttering the top-level namespace with all the platform-
specific types.
2023-04-07 11:45:53 -06:00
Nathan Sobo
d937660683
Merge MutableAppContext into AppContext
...
There may have been a good reason for the difference at some point, or I was
still learning Rust. But now it's just &mut AppContext vs &AppContext.
2023-04-06 15:49:03 -06:00
Mikayla Maki
c2f6567042
Add status bar icon reflecting copilot state to Zed status bar
2023-03-29 21:31:33 -07:00
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 Maki and Max
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
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 Sobo and Max 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 Simmons and Mikayla 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