Rename SharedUrl to SharedUri (#7084)
This PR renames `SharedUrl` to `SharedUri` to better reflect its intent. 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. Release Notes: - N/A
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use gpui::{div, img, px, IntoElement, ParentElement, Render, SharedUrl, Styled, ViewContext};
|
||||
use gpui::{div, img, px, IntoElement, ParentElement, Render, SharedUri, Styled, ViewContext};
|
||||
use story::Story;
|
||||
|
||||
use crate::{ActiveTheme, PlayerColors};
|
||||
@@ -53,7 +53,7 @@ impl Render for PlayerStory {
|
||||
.border_2()
|
||||
.border_color(player.cursor)
|
||||
.child(
|
||||
img(SharedUrl::network(
|
||||
img(SharedUri::network(
|
||||
"https://avatars.githubusercontent.com/u/1714999?v=4",
|
||||
))
|
||||
.rounded_full()
|
||||
@@ -84,7 +84,7 @@ impl Render for PlayerStory {
|
||||
.border_color(player.background)
|
||||
.size(px(28.))
|
||||
.child(
|
||||
img(SharedUrl::network(
|
||||
img(SharedUri::network(
|
||||
"https://avatars.githubusercontent.com/u/1714999?v=4",
|
||||
))
|
||||
.rounded_full()
|
||||
@@ -102,7 +102,7 @@ impl Render for PlayerStory {
|
||||
.border_color(player.background)
|
||||
.size(px(28.))
|
||||
.child(
|
||||
img(SharedUrl::network(
|
||||
img(SharedUri::network(
|
||||
"https://avatars.githubusercontent.com/u/1714999?v=4",
|
||||
))
|
||||
.rounded_full()
|
||||
@@ -120,7 +120,7 @@ impl Render for PlayerStory {
|
||||
.border_color(player.background)
|
||||
.size(px(28.))
|
||||
.child(
|
||||
img(SharedUrl::network(
|
||||
img(SharedUri::network(
|
||||
"https://avatars.githubusercontent.com/u/1714999?v=4",
|
||||
))
|
||||
.rounded_full()
|
||||
|
||||
Reference in New Issue
Block a user