Files
playlet-piped/playlet-lib/src/components/VideoFeed/VideoRowCell/VideoRowCell.xml
T
Brahim Hadriche 0f000590a0 Fixes for RowList cells (#244)
* Fixes for RowList cells

* typo
2023-12-30 22:32:43 -05:00

86 lines
3.3 KiB
XML

<component name="VideoRowCell" extends="Group">
<interface>
<field id="itemContent" type="node" onChange="OnContentSet" />
<field id="type" type="string" value="video" />
<field id="title" type="string" alias="titleLabel.text" />
<field id="author" type="string" alias="authorLabel.text" />
<field id="viewCountDate" type="string" alias="viewCountDateLabel.text" />
<field id="liveRectVisible" type="boolean" alias="liveRect.visible" />
<field id="upcomingRectVisible" type="boolean" alias="upcomingRect.visible" />
<field id="durationRectVisible" type="boolean" alias="durationRect.visible" />
<field id="duration" type="string" alias="durationLabel.text" />
<field id="thumbnailUri" type="string" alias="thumbnail.uri" />
</interface>
<children>
<LayoutGroup
itemSpacings="[24,5,5]">
<Poster
id="thumbnail"
loadDisplayMode="scaleToZoom"
width="350"
height="196"
failedBitmapUri="pkg:/images/thumbnail-missing.jpg">
<Rectangle
id="durationRect"
width="60"
height="26"
color="0x000000"
opacity="0.8"
translation="[290, 162]">
<Label
height="26"
id="durationLabel"
horizAlign="center"
vertAlign="center"
font="font:SmallestSystemFont"
translation="[8, 0]" />
</Rectangle>
<Rectangle
id="liveRect"
width="60"
height="25"
color="0xFF0000"
translation="[290, 162]">
<Label
width="60"
height="25"
horizAlign="center"
vertAlign="center"
font="font:SmallestBoldSystemFont"
text="LIVE" />
</Rectangle>
<Rectangle
id="upcomingRect"
width="120"
height="25"
color="0x000000"
opacity="0.8"
translation="[230, 162]">
<Label
width="120"
height="25"
horizAlign="center"
vertAlign="center"
font="font:SmallestBoldSystemFont"
text="UPCOMING" />
</Rectangle>
</Poster>
<Label
id="titleLabel"
width="350"
font="font:SmallestBoldSystemFont"
maxLines="2"
wrap="true" />
<Label
id="authorLabel"
width="350"
height="25"
font="font:SmallestSystemFont" />
<Label
id="viewCountDateLabel"
width="350"
height="25"
font="font:SmallestSystemFont" />
</LayoutGroup>
</children>
</component>