Site-tutorial
Verloop
StyleGradientContent → toGradient(darkMode). View : uuid_gradient ViewDataString. Type linear | radial | sweep. colors[] {color ColorTheme, stop 0..1} ≥ 2.
Champs
| Clé | Rôle |
|---|---|
type | "linear" | "radial" | "sweep". Vide + angle_start != -1 → linear par angle |
angle_start | linear : degrés 0–360. -1 → begin/end alignments. radial : radius |
angle_end | sweep endAngle°. radial : focalRadius |
align_start align_end | table gradient, défaut 4 = center |
clamp | TileMode |
align_start / align_end — ≠ stack
| i | Alignment |
|---|---|
| 0 | topLeft |
| 1 | topCenter |
| 2 | topRight |
| 3 | centerLeft |
| 4 | center (défaut fromJson) |
| 5 | centerRight |
| 6 | bottomLeft |
| 7 | bottomCenter |
| 8 | bottomRight |
Ne pas réutiliser les indices stack (
direction_align : 5 = center, 0 = topStart). Ici 4 = center.Live linearCyanMauve
{
"uuid": "019e8a05-4398-78f7-b843-3c61a20245e1",
"name": "linearCyanMauve",
"type": "linear",
"angle_start": 70,
"angle_end": 0,
"align_start": 7,
"align_end": 0,
"clamp": 0,
"colors": [
{ "color": { "dark": "#ff00c2e8", "light": "#ff0095ba" }, "stop": 0 },
{ "color": { "dark": "#ff3f7cff", "light": "#ff3463e6" }, "stop": 0.38 },
{ "color": { "dark": "#ffb14dff", "light": "#ff8c42e8" }, "stop": 1 }
]
}
View folder / wrap_text highlight :
"uuid_gradient": { "l": { "i": "019e8a05-4398-78f7-b843-3c61a20245e1" } }
Piège.
uuid_gradient_int : le helper live applyGradientIntEnable rappelle gradientEnable (uuid_gradient) — bug historique. Pour un effet interne fiable, poser uuid_gradient.