Add account type indicator

This commit is contained in:
Brahim Hadriche committed 2025-01-26 21:37:27 -05:00
1 parent 1964040900
commit 0b6cd0294f
5 files changed
+20 -12

No files matched your search

@@ -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()