mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-14 19:05:27 +00:00
19318576f3
Three documentation/marker additions surfaced by an engineer-v1 audit: - ChatWallpaper.kt: the per-mode/per-element constants used by the theme color formula were a wall of magic numbers. Add a header explaining what each parameter controls and where the values came from (empirically tuned via the dev UI in Appearance.kt). - Appearance.kt: surround the module-level FormulaDevTools state (formulaSavedParams, patternScaleDragging) with a prominent banner marking it dev-only. The dev UI is shipped in the current build but must be removed before reaching end users; the search-tag makes that trivial later. - Color.kt: solveCubic had no docstring; the 1e-10f thresholds looked like magic. Document Cardano's method, the maxChromaForMatrix caller context, and the numerical-stability rationale for the thresholds. Pure comment additions; no behavior change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>