ZIm/crates/ui/src/components
Antonio Scandurra 6a7761e620
Merge ElementContext into WindowContext (#10979)
The new `ElementContext` was originally introduced to ensure the element
APIs could only be used inside of elements. Unfortunately, there were
many places where some of those APIs needed to be used, so
`WindowContext::with_element_context` was introduced, which defeated the
original safety purposes of having a specific context for elements.

This pull request merges `ElementContext` into `WindowContext` and adds
(debug) runtime checks to APIs that can only be used during certain
phases of element drawing.

Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
2024-04-25 12:54:39 +02:00
..
avatar Encode rem values derived from pixels using rems_from_px (#9367) 2024-03-14 16:39:55 -04:00
button Improve diagnostic header UI (#9888) 2024-03-27 14:30:27 -07:00
checkbox ui: Center Checkbox within its container (#9201) 2024-03-11 18:08:31 -04:00
label Add preview tabs (#9125) 2024-04-11 23:09:12 +02:00
list Inset ContextMenu headers (#9197) 2024-03-11 16:28:16 -04:00
stories ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
title_bar New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00
avatar.rs Add dedicated indicator for showing a muted call participant (#4076) 2024-01-16 16:18:06 -05:00
button.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
checkbox.rs Add CheckboxWithLabel component (#7881) 2024-02-15 21:00:30 -05:00
collapsible_container.rs New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00
context_menu.rs Add Editor Controls Menu to Tool Bar (#10655) 2024-04-16 18:03:54 -04:00
disclosure.rs Make clicking ListHeader labels toggle the disclosure (#4140) 2024-01-18 18:21:53 -05:00
divider.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
icon.rs remote projects per user (#10594) 2024-04-23 15:33:09 -06:00
indicator.rs tab_switcher: Add tab close buttons (#9968) 2024-04-03 17:28:51 +02:00
keybinding.rs Fix assorted linux issues (#10061) 2024-04-01 17:22:59 -07:00
label.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
list.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
modal.rs remote projects per user (#10594) 2024-04-23 15:33:09 -06:00
popover.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
popover_menu.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
right_click_menu.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
stack.rs Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
stories.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
tab.rs Encode rem values derived from pixels using rems_from_px (#9367) 2024-03-14 16:39:55 -04:00
tab_bar.rs Encode rem values derived from pixels using rems_from_px (#9367) 2024-03-14 16:39:55 -04:00
title_bar.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
tooltip.rs New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00