diff --git a/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs b/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs index a90cbb5a..e87fb5ac 100644 --- a/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs +++ b/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs @@ -14,6 +14,7 @@ function OnContentSet() as void if content.type = "login" m.top.circlePosterInnerUri = "pkg:/images/icons/user-200.png" + m.top.backendTypePosterUri = "" ' bs:disable-next-line LINT3023 m.top.circlePosterInnerBlendColor = "#FFFFFFFF" m.top.letter = "" @@ -34,6 +35,15 @@ function OnContentSet() as void end if m.top.serverUrl = content.serverUrl m.top.crownVisible = content.isSelected + + backendType = content.type + if backendType = "invidious" + m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png" + else if backendType = "youtube" + m.top.backendTypePosterUri = "pkg:/images/youtube-logo.png" + else + m.top.backendTypePosterUri = "" + end if end function function OnRowListHasFocus() diff --git a/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.xml b/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.xml index 314e1d37..a94476cf 100644 --- a/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.xml +++ b/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.xml @@ -6,6 +6,7 @@ + @@ -60,6 +61,12 @@ horizAlign="center"> +