This commit is contained in:
yumoqing 2024-03-14 21:40:02 +08:00
parent a7b57c5f03
commit 7f4f61b250
5 changed files with 174 additions and 0 deletions

18
examples/floaticonbar.ui Normal file
View File

@ -0,0 +1,18 @@
{
"widgettype":"FloatIconBar",
"options":{
"tools":[
{
"icon":"{{entire_url('../imgs/add.png')}}",
"name":"add",
"rate":1.5,
"tip":"add a record"
},
{
"icon":"{{entire_url('../imgs/delete.png')}}",
"name":"delete",
"tip":"delete a record"
}],
}
}

View File

@ -0,0 +1,19 @@
{
"widgettype":"FloatIconTextBar",
"options":{
"tools":[
{
"name":"add",
"icon":"{{entire_url('../imgs/add.png')}}",
"label":"add",
"tip":"add a record"
},
{
"icon":"{{entire_url('../imgs/delete.png')}}",
"name":"delete",
"label":"delete",
"tip":"delete a record"
}],
}
}

20
examples/iconbar.ui Normal file
View File

@ -0,0 +1,20 @@
{
"widgettype":"IconBar",
"options":{
"tools":[
{
"icon":"{{entire_url('../imgs/add.png')}}",
"name":"add",
"rate":1.5,
"label":"add",
"tip":"add a record"
},
{
"icon":"{{entire_url('../imgs/delete.png')}}",
"name":"delete",
"label":"delete",
"tip":"delete a record"
}],
}
}

20
examples/icontextbar.ui Normal file
View File

@ -0,0 +1,20 @@
{
"widgettype":"IconTextBar",
"options":{
"tools":[
{
"icon":"{{entire_url('../imgs/add.png')}}",
"name":"add",
"rate":1.5,
"label":"add",
"tip":"add a record"
},
{
"icon":"{{entire_url('../imgs/delete.png')}}",
"name":"delete",
"label":"delete",
"tip":"delete a record"
}],
}
}

97
examples/vbox.ui Normal file
View File

@ -0,0 +1,97 @@
{
"widgettype":"VBox",
"options":{
},
"subwidgets":[
{
"widgettype":"Title1",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"Title2",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"Title3",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"Title4",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"Title5",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"Title6",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"Text",
"options":{
"text":"Pic Viewer",
"i18n":true
}
},
{
"widgettype":"HBox",
"options":{
},
"subwidgets":[
{
"widgettype":"Button",
"options":{
"label":"A",
"item_rate":1.4
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"script",
"target":"app",
"script":"bricks_app.textsize_bigger()"
}
]
},
{
"widgettype":"Button",
"options":{
"label":"A",
"item_rate":0.7,
"item_size":"20px"
},
"binds":[
{
"wid":"self",
"event":"click",
"actiontype":"script",
"target":"app",
"script":"bricks_app.textsize_smaller()"
}
]
}
]
}
]
}