More OAuth work (#551)
* More OAuth work * Lint fix * tweaks --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
12231fe2ec
commit
29a3206f17
11 files changed
+382
-25
No files matched your search
@@ -43,6 +43,16 @@ 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
|
||||
|
||||
UpdateActivateButton()
|
||||
end function
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<field id="username" type="string" alias="UsernameLabel.text" />
|
||||
<field id="serverUrl" type="string" alias="ServerLabel.text" />
|
||||
<field id="circlePosterInnerUri" type="uri" alias="circlePosterInner.uri" />
|
||||
<field id="backendTypePosterUri" type="uri" alias="backendTypePoster.uri" />
|
||||
<field id="circlePosterInnerBlendColor" type="uri" alias="circlePosterInner.blendColor" />
|
||||
<field id="crownVisible" type="boolean" alias="CrownPoster.visible" />
|
||||
|
||||
@@ -47,6 +48,12 @@
|
||||
horizAlign="center">
|
||||
<Font role="font" uri="font:SystemFontFile" size="120" />
|
||||
</Label>
|
||||
<Poster
|
||||
id="backendTypePoster"
|
||||
width="60"
|
||||
height="60"
|
||||
translation="[110,110]"
|
||||
/>
|
||||
</Poster>
|
||||
<Poster
|
||||
id="CrownPoster"
|
||||
|
||||
Reference in new issue
Block a user