mirror of
https://github.com/moudey/Shell.git
synced 2026-11-16 09:04:25 +08:00
317 lines
6.3 KiB
HTML
317 lines
6.3 KiB
HTML
<h4>Settings</h4>
|
|
<br><br>
|
|
<p>Set are containers for storing default values.</p>
|
|
|
|
<pre><code class="language-shell">shell
|
|
{
|
|
set // settings
|
|
{
|
|
theme
|
|
{
|
|
// theme.name = auto, classic, white, black, or modern
|
|
name = "modern"
|
|
|
|
// view = auto, compact, small, medium, large, wide
|
|
view = view.compact
|
|
|
|
dark = true or false
|
|
|
|
background
|
|
{
|
|
color = color value
|
|
opacity = value from 0 to 100
|
|
|
|
// effect value 0 = disable, 1 = transparent, 2 = blur, 3 = acrylic
|
|
effect = auto
|
|
|
|
// for acrylic
|
|
effect = [3, tint color, opacity]
|
|
|
|
gradient
|
|
{
|
|
enabled = boolean value
|
|
|
|
// linear = [x1, x2, y1, y2]
|
|
linear = [0, 100, 0, 0]
|
|
|
|
// or radial = [cx, cy, r, fx, fy]
|
|
radial =[ 100, 100, 150, 100, 100]
|
|
|
|
// stop = [offset, stop-color]
|
|
stop = [0.5, color.accent, 20]
|
|
|
|
// or add more stop
|
|
stop = [
|
|
[offset, stop-color],
|
|
[offset, stop-color],
|
|
[offset, stop-color]
|
|
]
|
|
}
|
|
}
|
|
|
|
item
|
|
{
|
|
opacity = value from 0 to 100
|
|
radius = value from 0 to 3
|
|
|
|
// prefix value [auto, 0 = dont display, 1 = display, 2 = ignore]
|
|
prefix = 1
|
|
|
|
text
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
}
|
|
|
|
back
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
}
|
|
|
|
border
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
}
|
|
|
|
padding
|
|
{
|
|
left = value
|
|
top = value
|
|
right = value
|
|
bottom = value
|
|
}
|
|
|
|
margin
|
|
{
|
|
left = value
|
|
top = value
|
|
right = value
|
|
bottom = value
|
|
}
|
|
}
|
|
|
|
border
|
|
{
|
|
enabled = boolean value
|
|
size = value from 0 to 10
|
|
color = = value
|
|
opacity = value
|
|
radius = value
|
|
|
|
padding
|
|
{
|
|
left = value
|
|
top = value
|
|
right = value
|
|
bottom = value
|
|
}
|
|
}
|
|
|
|
shadow
|
|
{
|
|
enabled = boolean value
|
|
size = value from 0 to 30
|
|
color = value
|
|
opacity = value from 0 to 100
|
|
offset = value from 0 to 30
|
|
}
|
|
|
|
font
|
|
{
|
|
size = value start from 6
|
|
name = "tahoma"
|
|
|
|
weight = value from 1 to 9
|
|
|
|
italic = 0
|
|
}
|
|
|
|
separator
|
|
{
|
|
size = value form 0 to 40
|
|
color = value
|
|
opacity = value
|
|
|
|
margin
|
|
{
|
|
left = value
|
|
top = value
|
|
right = value
|
|
bottom = value
|
|
}
|
|
}
|
|
|
|
symbol
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
|
|
// or
|
|
chevron
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
}
|
|
|
|
checkmark
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
}
|
|
|
|
bullet
|
|
{
|
|
normal = color
|
|
select = color
|
|
normal_disabled = color
|
|
select_disabled = color
|
|
}
|
|
}
|
|
|
|
image
|
|
{
|
|
enabled = boolean value
|
|
|
|
color = [color1, color2, color3]
|
|
// or
|
|
color.color1 = color
|
|
color.color2 = color
|
|
color.color3 = color
|
|
|
|
gap = value
|
|
glyph = "font name" // font name for default glyph
|
|
scale = boolean value
|
|
align = value [0 = Display only the check mark, 1 = Display the image and check mark together]
|
|
}
|
|
|
|
layout
|
|
{
|
|
// Right-to-left layout display for Middle Eastern languages
|
|
rtl = boolean value
|
|
|
|
// Align submenus
|
|
popup = value from -20 to 20
|
|
}
|
|
}
|
|
|
|
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
|
|
|
|
// Prevent interaction with these windows or processes
|
|
exclude
|
|
{
|
|
where = boolean value
|
|
window = window name
|
|
process = process name
|
|
}
|
|
|
|
// Disable/Enable static items processing
|
|
static
|
|
{
|
|
enabled = boolean value
|
|
image = [0 = disable, 1 = enable, 2 = auto reimage]
|
|
|
|
// Allow/disallow modification of title
|
|
title = boolean value
|
|
|
|
// Allow/disallow modification of visibility
|
|
visibility = boolean value
|
|
|
|
// Allow/disallow modification of parent
|
|
parent = boolean value
|
|
|
|
// Allow/disallow modification of position
|
|
position = boolean value
|
|
|
|
// Allow/disallow to add separator
|
|
separator = boolean value
|
|
|
|
// auto set image and group
|
|
auto = boolean value
|
|
}
|
|
|
|
// Disable/Enable dynamic items processing
|
|
dynamic
|
|
{
|
|
enabled = boolean value
|
|
// disable/enable image
|
|
image = boolean value
|
|
}
|
|
}
|
|
}</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>
|