Repository navigation
User JSON RectangleIndicator
roosit edited this page Oct 16, 2026
·
2 revisions
Back to list | Indicator page | Русский
This page describes the JSON template of the rectangle indicator for manual editing of .vttp. The indicator draws a rectangle with a fill, a border and rounded corners.
{
"name": "com.velitask.plagin.official.rectangle",
"data": {
"maket": { "preset": "auto" },
"properties": {
"fillColor": {"r":0,"g":0,"b":0,"a":128},
"fillTransparency": {},
"border": {
"lineColor": {"r":255,"g":255,"b":255,"a":255},
"thickness": {},
"style": {"value":0},
"dashPattern": {"value":""},
"cornerRadius": {}
}
}
}
}
The numeric fields fillTransparency, thickness and cornerRadius are written as an empty object {}: this is the default value (see the description of each setting for details).
The fill color ("Fill color").
{
"fillColor": {"r":0,"g":0,"b":0,"a":128}
}
| Field | Values | What it does |
|---|---|---|
r |
0..255 |
Red channel. |
g |
0..255 |
Green channel. |
b |
0..255 |
Blue channel. |
a |
0..255 |
Written, but does not affect the fill: the transparency is set by fillTransparency. |
The fill opacity ("Fill transparency").
{
"fillTransparency": {}
}
| Field | Values | What it does |
|---|---|---|
value |
0..255 |
0 — the fill is invisible, 255 — a solid fill. An empty object {} means the default value 128; to set your own, use {"value": N}. |
The border ("Border"): color, thickness, line style, dash pattern and corner radius.
{
"border": {
"lineColor": {"r":255,"g":255,"b":255,"a":255},
"thickness": {},
"style": {"value":0},
"dashPattern": {"value":""},
"cornerRadius": {}
}
}
| Field | Values | What it does |
|---|---|---|
lineColor |
color object | The border color ("Line color"). |
thickness.value |
0..50 |
The border thickness ("Thickness"). 0 removes the border. An empty object {} means the default value 1; to set your own, use {"value": N}. |
style.value |
0..7 |
The line style ("Line style"). Not used for the rectangle border. |
dashPattern.value |
string | The dash pattern ("Dash pattern"). Not used for the rectangle border. |
cornerRadius.value |
0..500 |
The corner radius ("Corner Radius"). 0 — square corners. An empty object {} means the default value 0; to set your own, use {"value": N}. |
Fields of the lineColor color:
| Field | Values | What it does |
|---|---|---|
r |
0..255 |
Red channel. |
g |
0..255 |
Green channel. |
b |
0..255 |
Blue channel. |
a |
0..255 |
Transparency: 0 is fully transparent, 255 is opaque. |
style.value values:
| Value | Line style | Pattern |
|---|---|---|
0 |
Solid | empty |
1 |
Dash | 12,6 |
2 |
Dot | 2,4 |
3 |
Dash-dot | 12,6,2,6 |
4 |
Dash-dot-dot | 12,6,2,6,2,6 |
5 |
Long dash | 20,8 |
6 |
Short dash | 6,4 |
7 |
Custom | the dashPattern value |