Files
Shell/docs/syntax/default.html
T
Mahmoud Gomaa 7ec2908a46 Code tag simplification
Highlight tags have been removed from the code tag
2022-09-14 09:17:19 +02:00

165 lines
3.6 KiB
HTML

<h4>Default</h4>
<br><br>
<p>Default are containers for storing default values.</p>
<pre><code class="language-shell">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']
}
}</code></pre>
<h3>Padding and Margin value syntax</h3>
<p>Use the padding shorthand property with four values:</p>
<code>padding = [1, 2, 3, 4]</code>
<pre><code>left = 1
right = 2
top = 3
bottom = 4</code></pre>
<p>Use the padding shorthand property with two values:</p>
<code>padding = [4, 2]</code>
<pre><code>left = 4
right = 4
top = 2
bottom = 2</code></pre>
<p>Use the padding shorthand property with one value:</p>
<code>padding = 4</code>
<pre><code>left = 4
right = 4
top = 4
bottom = 4</code></pre>