From e4219da538b171cb7143a5721cec5f13aa15d0d4 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Fri, 2 Oct 2026 14:15:55 -0400 Subject: [PATCH] American spelling Switch prose, comments and local names to American spelling so the org-wide spelling check passes. Claude-Session: https://claude.ai/code/session_01XGS7UUxZFhvaK4bnErEfvW --- CONTEXT.md | 2 +- internal/color/color.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTEXT.md b/CONTEXT.md index 69aa7a7..51e586a 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -20,7 +20,7 @@ Sync color from an [Omarchy](https://omarchy.org) desktop environment to a [WLED **Sentinel** — a string fingerprint that changes when the color source’s backing files change (e.g. `theme.name` / `colors.toml` mtimes, wallpaper symlink target). Exposed as `source.Source.Sentinel()` for the poll fallback and implemented per source type. -**Poll fallback** — when `fsnotify` cannot initialise a watcher (unusual on Linux), the daemon runs a 1-second loop: if `Sentinel()` differs from the previous value, it debounces and pushes (same path as a filesystem trigger). +**Poll fallback** — when `fsnotify` cannot initialize a watcher (unusual on Linux), the daemon runs a 1-second loop: if `Sentinel()` differs from the previous value, it debounces and pushes (same path as a filesystem trigger). **Seam** — the `source.Source` interface: `Read()`, `WatchDir()`, `IsTrigger()`, `Sentinel()`. Adding a new source means implementing this interface only. diff --git a/internal/color/color.go b/internal/color/color.go index 83da922..4b41eef 100644 --- a/internal/color/color.go +++ b/internal/color/color.go @@ -33,7 +33,7 @@ func NamedHexFromColorsToml(tomlKey, colorsTomlPath string) ([3]uint8, error) { } // ScaleSaturation converts to HSV, multiplies S by saturationMultiplier, converts back to sRGB. -// multiplier 1.0 leaves hue/value; 0.0 yields grey; >1.0 boosts vividness (S capped at 1). +// multiplier 1.0 leaves hue/value; 0.0 yields gray; >1.0 boosts vividness (S capped at 1). func ScaleSaturation(rgb [3]uint8, saturationMultiplier float64) [3]uint8 { rN := float64(rgb[0]) / 255 gN := float64(rgb[1]) / 255