bricks/examples/text.ui

107 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2024-02-06 14:30:10 +08:00
{
"widgettype":"VBox",
"options":{
},
"subwidgets":[
{
"widgettype":"Title1",
"options":{
"text":"Pic Viewer",
2024-05-11 16:50:07 +08:00
"color":"#ff0000",
"bgcolor":"#00ffff",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"Title2",
"options":{
"text":"Pic Viewer",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"Title3",
"options":{
"text":"Pic Viewer",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"Title4",
"options":{
"text":"Pic Viewer",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"Title5",
"options":{
"text":"Pic Viewer",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"Title6",
"options":{
"text":"Pic Viewer",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"Text",
"options":{
"text":"Pic Viewer",
2024-03-03 21:07:57 +08:00
"dynsize":true,
2024-02-06 14:30:10 +08:00
"i18n":true
}
},
{
"widgettype":"HBox",
"options":{
},
"subwidgets":[
{
"widgettype":"Button",
"options":{
"label":"A",
"item_rate":1.4
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"script",
"target":"app",
2024-02-06 14:38:35 +08:00
"script":"bricks.app.textsize_bigger()"
2024-02-06 14:30:10 +08:00
}
]
},
{
"widgettype":"Button",
"options":{
"label":"A",
"item_rate":0.7,
"item_size":"20px"
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"script",
"target":"app",
2024-02-06 14:38:35 +08:00
"script":"bricks.app.textsize_smaller()"
2024-02-06 14:30:10 +08:00
}
]
}
]
}
]
}