Files
playlet-piped/playlet-lib/src/components/ContextMenu/ContextMenuRow.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

30 lines
694 B
Plaintext

function OnContentSet() as void
content = m.top.itemContent
if content = invalid
return
end if
m.top.text = content.title
end function
function OnItemHasFocus()
hasFocus = m.top.itemHasFocus
if hasFocus
m.top.font = "font:SmallestBoldSystemFont"
m.top.color = "#262626ff"
else
m.top.font = "font:SmallestSystemFont"
m.top.color = "#DBDBDBFF"
end if
end function
function OnFocusPercent()
if m.top.focusPercent > 0.5
m.top.font = "font:SmallestBoldSystemFont"
m.top.color = "#262626FF"
else
m.top.font = "font:SmallestSystemFont"
m.top.color = "#DBDBDBFF"
end if
end function