AYLICRÉA Le tuto
AYLICRÉA

Tuto Site

Dégradé

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_startlinear : degrés 0–360. -1 → begin/end alignments. radial : radius
angle_endsweep endAngle°. radial : focalRadius
align_start align_endtable gradient, défaut 4 = center
clampTileMode

align_start / align_end — ≠ stack

iAlignment
0topLeft
1topCenter
2topRight
3centerLeft
4center (défaut fromJson)
5centerRight
6bottomLeft
7bottomCenter
8bottomRight
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.