Skip to content

Instantly share code, notes, and snippets.

@RosemaryOrchard
Created October 7, 2023 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RosemaryOrchard/57c6ed46a22aaad99c76b1d7246d07e7 to your computer and use it in GitHub Desktop.
Save RosemaryOrchard/57c6ed46a22aaad99c76b1d7246d07e7 to your computer and use it in GitHub Desktop.
Sample button widget
{
"children": [
{
"type": "row",
"children": [
{
"children": [
{
"value": "star",
"properties": {
"font": {
"size": 25
}
},
"type": "symbol"
},
{
"properties": {
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)",
"font": {
"size": 10
}
},
"type": "text",
"value": "Daring Fireball"
}
],
"properties": {
"background": {
"type": "color",
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)"
}
},
"type": "column"
},
{
"type": "column",
"children": [
{
"value": "ipod",
"properties": {
"font": {
"size": 25
}
},
"type": "symbol"
},
{
"properties": {
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)",
"font": {
"size": 10
}
},
"value": "The Verge",
"type": "text"
}
],
"properties": {
"background": {
"type": "color",
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)"
}
}
},
{
"type": "column",
"children": [
{
"value": "star",
"properties": {
"font": {
"size": 25
}
},
"type": "symbol"
},
{
"type": "text",
"value": "Daring Fireball",
"properties": {
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)",
"font": {
"size": 10
}
}
}
],
"properties": {
"background": {
"type": "color",
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)"
}
}
},
{
"type": "column",
"properties": {
"background": {
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)",
"type": "color"
}
},
"children": [
{
"value": "star",
"type": "symbol",
"properties": {
"font": {
"size": 25
}
}
},
{
"properties": {
"font": {
"size": 10
},
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)"
},
"type": "text",
"value": "Daring Fireball"
}
]
}
],
"properties": {
"spacing": 5
}
},
{
"children": [
{
"type": "column",
"children": [
{
"type": "symbol",
"value": "star",
"properties": {
"font": {
"size": 25
}
}
},
{
"value": "Daring Fireball",
"properties": {
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)",
"font": {
"size": 10
}
},
"type": "text"
}
],
"properties": {
"background": {
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)",
"type": "color"
}
}
},
{
"type": "column",
"children": [
{
"type": "symbol",
"properties": {
"font": {
"size": 25
}
},
"value": "star"
},
{
"type": "text",
"value": "Daring Fireball",
"properties": {
"font": {
"size": 10
},
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)"
}
}
],
"properties": {
"background": {
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)",
"type": "color"
}
}
},
{
"children": [
{
"properties": {
"font": {
"size": 25
}
},
"value": "star",
"type": "symbol"
},
{
"value": "Daring Fireball",
"type": "text",
"properties": {
"font": {
"size": 10
},
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)"
}
}
],
"properties": {
"background": {
"type": "color",
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)"
}
},
"type": "column"
},
{
"children": [
{
"type": "symbol",
"properties": {
"font": {
"size": 25
}
},
"value": "star"
},
{
"value": "Daring Fireball",
"properties": {
"font": {
"size": 10
},
"foregroundColor": "rgba(92.16%, 92.16%, 92.16%, 1.00)"
},
"type": "text"
}
],
"type": "column",
"properties": {
"background": {
"type": "color",
"value": "rgba(27.84%, 27.84%, 27.84%, 1.00)"
}
}
}
],
"properties": {
"spacing": 5
},
"type": "row"
}
],
"type": "column",
"properties": {
"spacing": 5,
"padding": {
"bottom": 5,
"top": 5,
"trailing": 5,
"leading": 5
},
"background": {
"type": "color",
"value": "rgba(0.00%, 0.00%, 0.00%, 1.00)"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment