Branding: real Piped logo (from frontend container) + profile card picks piped mark by backend URL

This commit is contained in:
spaghet committed 2026-11-24 00:02:56 -05:00
1 parent fcd21e72e5
commit 611e5fd373
5 files changed
+17 -4

No files matched your search

@@ -1,5 +1,6 @@
import "pkg:/source/utils/Locale.bs"
import "pkg:/source/utils/StringUtils.bs"
import "pkg:/source/utils/Types.bs"
function Init()
m.normalFont = m.top.findNode("normalFont")
@@ -53,7 +54,13 @@ function OnContentSet() as void
backendType = content.type
if backendType = "invidious"
m.top.serverUrl = content.serverUrl
m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png"
' A Piped-backed profile is stored as an invidious profile (token
' shape + auth machinery reuse); the local router URL is the tell.
if InStr(LCase(ValidString(content.serverUrl)), "piped") > 0
m.top.backendTypePosterUri = "pkg:/images/piped-logo.png"
else
m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png"
end if
else if backendType = "youtube"
m.top.serverUrl = "YouTube"
m.top.backendTypePosterUri = "pkg:/images/youtube-logo.png"
@@ -78,7 +78,13 @@ function OnContentSet() as void
backendType = content.type
if backendType = "invidious"
m.top.serverUrl = content.serverUrl
m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png"
' A Piped-backed profile is stored as an invidious profile (token
' shape + auth machinery reuse); the local router URL is the tell.
if InStr(LCase(ValidString(content.serverUrl)), "piped") > 0
m.top.backendTypePosterUri = "pkg:/images/piped-logo.png"
else
m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png"
end if
else if backendType = "youtube"
m.top.serverUrl = "YouTube"
m.top.backendTypePosterUri = "pkg:/images/youtube-logo.png"
@@ -129,7 +129,7 @@ namespace Http
end function
function LibBuildTag() as string
return "PIPED-LIB-23"
return "PIPED-LIB-24"
end function
function FetchJson(path as string, params = invalid as object) as dynamic
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 18 KiB