Default
Default are containers for storing default values.
shell
{
default
{
// view = auto, compact, small, medium, large, wide
view = view.compact
// theme = auto, dark, light, white, black, modern, modern_light, modern_dark
theme = theme.modern
// border size value from 0 to 10
frame = 1
// or
frame // border
{
// border size value from 0 to 10
size = 1
color = #2c2c2c
// opacity value from 0 to 100
opacity = 20
// radius size value from 0 to 3
radius = 1
padding = [0, 4, 0, 4]
}
// shadow size value from 0 to 10
shadow = 1
// or
shadow
{
// shadow size value from 0 to 10
size = 1
// opacity value from 0 to 100
opacity = 50
color = #000
}
item
{
// text = [normal, selected]
text = [#fff, #fff]
// back = [normal, selected]
back = [#2c2c2c, #3c3c3c]
// radius size value from 0 to 3
radius = 1
margin = [4, 0]
padding = [8, 4]
}
separator = #202020
// or
separator // sep
{
color = #202020
size = 1
margin = [8, 2]
}
// symbol = [normal, selected]
symbol = [#f00, #800]
// or
symbol
{
// sub = [normal, selected]
sub = [#f00, #800]
// checked = [normal, selected]
checked = [#0f0, #080]
// radio = [normal, selected]
radio = [#00f, #008]
}
image
{
gap = 8
size = 16
color = #ffff
}
tip = true
// or
tip
{
enabled = true
// normal = [background, text]
normal = [default, default]
// normal = [background, text]
primary = [#000, #fff]
// info = [background, text]
info = [#88f, #fff]
// success = [background, text]
success = [#8f8, #fff]
// warning = [background, text]
warning = [#ff8, #fff]
// danger = [background, text]
danger = [#f88, #fff]
// max width value from 200 to 2000
width = 400
// opacity value from 0 to 100
opacity = 100
// radius size value from 0 to 3
radius = 1
time = 1.5
padding = [8, 4]
}
// show menu delay value from 0 to 4000
showdelay = 200
// font = [size, font name]
font = [12, 'Brush Script']
}
}
Padding and Margin value syntax
Use the padding shorthand property with four values:
padding = [1, 2, 3, 4]
left = 1
right = 2
top = 3
bottom = 4
Use the padding shorthand property with two values:
padding = [4, 2]
left = 4
right = 4
top = 2
bottom = 2
Use the padding shorthand property with one value:
padding = 4
left = 4
right = 4
top = 4
bottom = 4
This page is open source.
Noticed a typo? Or something unclear?
Improve this page on GitHub