zed/crates/ui/src
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
..
components Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
styles Store a z-index id per-layer 2024-01-22 10:16:59 -05:00
utils ui: Fix doc tests (#3989) 2024-01-09 16:56:28 -05:00
clickable.rs Document ui crate traits 2024-01-09 14:15:25 -05:00
components.rs Use the already existing styles/typography for Headline 2024-01-05 15:59:34 -05:00
disableable.rs Fix possessive "its" in docs and comments (#3998) 2024-01-10 10:09:48 -05:00
fixed.rs Document ui crate traits 2024-01-09 14:15:25 -05:00
prelude.rs Port the rest of the app 2024-01-21 20:26:33 -08:00
selectable.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
styled_ext.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
styles.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
ui.rs Document UI modules 2024-01-09 12:57:12 -05:00
utils.rs Document UI modules 2024-01-09 12:57:12 -05:00
visible_on_hover.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00