Skip to content

Instantly share code, notes, and snippets.

"news_list_item":{
"type":"frame",
"size":{
"w":"parent",
"h":200
},
"padding":{
"w":15,
"t":8
},
"news_list_item":
{"type":"frame","size":{"w":"parent", "h":200}, "padding":{"w":15, "t":8}, "content":[
{"type":"frame","size":"parent","rounding":{"corners":"all","radius":4},"content":[
{"type":"image", "meta-url": "news.thumbnail","size":"parent","pos":{"x":"middle","y":"middle"},"scale-type":"aspect-fill"},
{"type":"widget", "pos":{"x":0,"y":"bottom"},"size":{"w":"parent", "h":{"type":"parent","value":0.5}}, "gradient-fill":{"direction":"vertical", "colors":["#00000000", "#ff000000"]}},
{"type":"text", "meta-text": "news.title","size":{"w":"parent","h":{"type":"parent","value":0.33}},"pos":{"x":0,"y":"bottom"},"padding":{"w":10, "b":18},"font":{"size":15,"weight":"book"},"text-color":"#ffffff","text-align":"left","line-count":3},
{"type":"text", "meta-text": "news.time_since_posted","size":{"w":"parent","h":20},"pos":{"x":0,"y":"bottom"},"padding":{"w":10, "b":5},"font":