mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-14 19:05:27 +00:00
e178e8924e
LIGHT had three pattern/background controls — Pattern depth, Pattern chroma, BG Lightness — that DARK and BLACK didn't expose. Without them the founder couldn't tune the wallpaper pattern's brightness/saturation or nudge the background's lightness independently of the bubble cluster in those themes. Add the same three sliders to DARK and BLACK. generateSchemeDark / generateSchemeBlack gain three new optional params that pass through generateDarkFromSlots: - patternDepth: when set, replaces the slot's hard-coded lightnessMult (and patternIntensity multiplier) directly, matching LIGHT's semantic of "multiplier on effStep". - patternChroma: when set, overrides the pattern slot's chroma — taking precedence over BLACK's max-pin behaviour so the user can pull it back from the gamut edge. - bgLOffset: nudges only the background slot's L (other slots stay at their formula-computed L), mirroring LIGHT. null defaults preserve the existing behaviour, so nothing changes for callers that don't pass the new params. Defaults derivation in FormulaDevTools picks up patternDepth and patternChroma from the preset's stored tint slot (same shape as LIGHT, with the sign of the depth swapped because dark themes have the pattern brighter than the bg, not darker). bgLOffset stays at its existing 0f fallback. Slider ranges: BLACK pattern depth uses 0..15 because the default lightnessMult for BLACK pattern is 9.0 — the LIGHT/DARK 0..10 wouldn't give meaningful headroom. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>