Themes
Theme section to customize the layout and colors of the context menu.
theme
{
// theme.name = auto, classic, white, black, or modern
name = "modern"
// view = auto, compact, small, medium, large, wide
view = view.compact
// dark = true, false, default
dark = default
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]
// cx, cy, fx, fy: percent of half the menu's width or height, from its
// left or top edge (100 is the centre); r: percent of half the shorter side
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
normal.disabled = color
select = color
select.disabled = color
}
back
{
normal = color
normal.disabled = color
select = color
select.disabled = color
}
border
{
normal = color
normal.disabled = color
select = 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
// true (default): on Windows 11, a blur or acrylic menu with 4 px or 8 px corners
// is rounded by Windows, which also adds its own shadow.
// false: Shell rounds the corners itself, with no Windows shadow.
system = boolean 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
// text antialiasing: 0 = default (grayscale), 3 = none, 4 = grayscale,
// 5 = ClearType, 6 = ClearType natural.
// ClearType needs background.effect = 0; with any other effect the text stays grayscale.
quality = 0
}
separator
{
size = value form 0 to 40
color = value
opacity = value
margin
{
left = value
top = value
right = value
bottom = value
}
}
symbol
{
normal = color
normal.disabled = color
select = color
select.disabled = color
// or
chevron
{
normal = color
normal.disabled = color
select = color
select.disabled = color
}
checkmark
{
normal = color
normal.disabled = color
select = color
select.disabled = color
}
bullet
{
normal = color
normal.disabled = color
select = color
select.disabled = color
}
}
image
{
enabled = boolean value
color = [color1, color2, color3]
gap = value
glyph = "font name" // font name for default glyph
scale = boolean value
align = value
[0= Display only the check mark,1 = Display only the image,2 = Display image & checkheck mark together]
}
layout
{
// Right-to-left layout display for Middle Eastern languages
rtl = boolean value
// Align submenus
popup = value from -20 to 20
}
}
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
Reading the theme in a menu file
These names give the theme of the menu that is showing, so an item can match it, for example
image=[\uE1A9, theme.item.text.normal]. Sizes are in pixels as drawn on your screen.
Outside a menu (such as in a command that runs after the menu closed) they give nothing.
theme.name // the name = you chose: auto, modern, classic, white, black, system, highcontrast, ...
theme.isdark // true when the menu is dark
theme.font // the font's name (theme.font.name is the same)
theme.font.size // the text size
theme.background // the background color; .opacity, .effect, .gradient (true when a gradient is on)
theme.item.radius // the corner radius of an item's highlight
theme.item.opacity // its opacity
theme.item.back.select // and the other theme.item colors: back, text, border; normal, select; .disabled
theme.border // the border color (theme.border.color); .size, .radius, .system
theme.shadow // the shadow color (theme.shadow.color); .size, .offset, .enabled
theme.separator // the separator color (theme.separator.color); .size
theme.image // true when images show (theme.image.enabled); .size, .gap, .scale
theme.layout.rtl // true for a right-to-left menu (theme.layout is the same)
theme.dpi // the screen's DPI