ZIm/crates/ui/src/components
Marshall Bowers 2980f0508c
Rework loading images from files (#7088)
This PR is a follow-up to #7084, where I noted that I wasn't satisfied
with using `SharedUri` to represent both URIs and paths on the local
filesystem:

> I'm still not entirely happy with this naming, as the file paths that
we can store in here are not _really_ URIs, as they are lacking a
protocol.
>
> I want to explore changing `SharedUri` / `SharedUrl` back to alway
storing a URL and treat local filepaths differently, as it seems we're
conflating two different concerns under the same umbrella, at the
moment.

`SharedUri` has now been reverted to just containing a `SharedString`
with a URI.

`ImageSource` now has a new `File` variant that is used to load an image
from a `PathBuf`.

Release Notes:

- N/A
2024-01-30 11:26:02 -05:00
..
avatar Make follower avatars smaller (#6724) 2024-01-25 13:53:50 -05:00
button Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
label Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
list Revert "Improve completion, action and shared project popovers' layout" 2024-01-23 15:26:11 -08:00
stories Rework loading images from files (#7088) 2024-01-30 11:26:02 -05: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 Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
context_menu.rs Pull out fluent builder helpers into re-usable trait 2024-01-18 15:31:31 -08: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 Rename BellBadged to BellDot (#6820) 2024-01-26 18:48:16 -05:00
indicator.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
keybinding.rs chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01: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
popover.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
popover_menu.rs Port the rest of the app 2024-01-21 20:26:33 -08:00
right_click_menu.rs Port the rest of the app 2024-01-21 20:26:33 -08: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 Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
tab.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
tab_bar.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
tooltip.rs Add a hover menu to see who's in a channel 2024-01-26 12:25:00 -07:00