Files
playlet-piped/playlet-lib/src/components/VideoPlayer/VideoPlayerStyle.bs
T
Brahim Hadriche e53ad785c6 Refresh lint rules (#238)
* Lint

* Color rules

* Update sponsorblock config file

* Small tweak

* Color adjustments
2023-12-22 19:36:36 -05:00

29 lines
848 B
Plaintext

function SetPlayerStyle()
m.top.trickPlayBar.filledBarBlendColor = "#FF1C30FF"
m.top.bufferingBar.filledBarBlendColor = "#FF1C30FF"
m.top.retrievingBar.filledBarBlendColor = "#FF1C30FF"
' Find the BusySpinner built into the Video node
busySpinner = FindChildNodeOfType(m.top, "BusySpinner")
if busySpinner <> invalid
busySpinner.poster.blendColor = "#FF1C30FF"
end if
end function
function FindChildNodeOfType(node as object, nodeType as string) as object
if node.subtype() = nodeType
return node
end if
childCount = node.getChildCount()
children = node.getChildren(childCount, 0)
for i = 0 to childCount - 1
child = FindChildNodeOfType(children[i], nodeType)
if child <> invalid
return child
end if
end for
return invalid
end function