mirror of
https://github.com/alecthomas/chroma.git
synced 2026-06-09 21:08:31 +02:00
a71fea3435
Style.Mode() derives Light/Dark from the Background entry's luminosity. A new optional Counterpart field (and counterpart="..." XML attribute) points at the opposite-mode style. styles.GetForMode(name, mode) follows the counterpart, and RegisterPair links a Light/Dark pair both ways. Wires counterparts on the obvious paired bundled styles.