stuff
This commit is contained in:
48
prototypes/examples/app-bar.lua
Normal file
48
prototypes/examples/app-bar.lua
Normal file
@@ -0,0 +1,48 @@
|
||||
local _ = {
|
||||
toolbar = {
|
||||
width = 1,
|
||||
padding = 5,
|
||||
{
|
||||
dropdown = {
|
||||
toggle = "click",
|
||||
background = hamburger,
|
||||
background = {
|
||||
hamburger,
|
||||
close_x
|
||||
},
|
||||
{ }
|
||||
}
|
||||
},
|
||||
{
|
||||
text = "Title",
|
||||
clicked = function(btn, x, y) end
|
||||
},
|
||||
{
|
||||
align = "right",
|
||||
dropdown = {
|
||||
toggle = "click",
|
||||
background = down_arrow,
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
toolbar = {
|
||||
padding = 5,
|
||||
{
|
||||
background = close_x
|
||||
},
|
||||
{
|
||||
textinput = {
|
||||
name = "title",
|
||||
value = "Title"
|
||||
}
|
||||
},
|
||||
{
|
||||
align = "right",
|
||||
text = "SAVE",
|
||||
clicked = function(btn, x, y) end
|
||||
}
|
||||
}
|
||||
}
|
18
prototypes/examples/badge.lua
Normal file
18
prototypes/examples/badge.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
background = some_image,
|
||||
badge = {
|
||||
text = 2,
|
||||
background = {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
255
|
||||
},
|
||||
color = {
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
}
|
||||
}
|
||||
}
|
17
prototypes/examples/bottom-navigation.lua
Normal file
17
prototypes/examples/bottom-navigation.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
toolbar = {
|
||||
width = 0.5,
|
||||
padding = 3,
|
||||
{
|
||||
background = recents_icon
|
||||
},
|
||||
{
|
||||
align = "center",
|
||||
background = favorites_icon
|
||||
},
|
||||
{
|
||||
align = "right",
|
||||
background = nearby_icon
|
||||
}
|
||||
}
|
||||
}
|
42
prototypes/examples/buttons.lua
Normal file
42
prototypes/examples/buttons.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
local _ = {
|
||||
text = "click me"
|
||||
}
|
||||
_ = {
|
||||
padding = 3,
|
||||
text = "button",
|
||||
background = {
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
},
|
||||
color = {
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
}
|
||||
}
|
||||
_ = {
|
||||
padding = 8,
|
||||
text = "+",
|
||||
background = {
|
||||
0,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
},
|
||||
color = {
|
||||
255,
|
||||
255,
|
||||
255,
|
||||
255
|
||||
},
|
||||
round = true,
|
||||
round = 5
|
||||
}
|
||||
return {
|
||||
background = some_image,
|
||||
clicked = function(btn, x, y) end,
|
||||
hovered = function(x, y) end
|
||||
}
|
19
prototypes/examples/chip.lua
Normal file
19
prototypes/examples/chip.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
rounded = 5,
|
||||
background = some_color,
|
||||
padding = {
|
||||
right = 5
|
||||
},
|
||||
{
|
||||
rounded = true,
|
||||
background = an_image
|
||||
},
|
||||
{
|
||||
text = "Colored Chip"
|
||||
},
|
||||
{
|
||||
width = 0.8,
|
||||
rounded = true,
|
||||
background = an_x_image
|
||||
}
|
||||
}
|
8
prototypes/examples/divider.lua
Normal file
8
prototypes/examples/divider.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
local _ = {
|
||||
text = "some text"
|
||||
}
|
||||
return {
|
||||
newline = true,
|
||||
height = 1.0001,
|
||||
background = dark_grey
|
||||
}
|
Reference in New Issue
Block a user