Files
playlet-piped/playlet-lib/src/components/ContextMenu/ContextMenuRow.bs
T
fcf0334667 [chore] update dependencies (#352)
* update dependencies

* Update lint exceptions for colors

---------

Co-authored-by: iBicha <iBicha@users.noreply.github.com>
Co-authored-by: Brahim Hadriche <brahim.hadriche@gmail.com>
2024-03-29 22:13:56 -04: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 = "#EBEBEBFF"
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 = "#EBEBEBFF"
end if
end function