# Turn back Outlook's dark-mode colors in pasted signatures · michael/spark-rs

[View on GitCafe](https://git.cafe/michael/spark-rs/commit/ac7390078dd008cf01333d0c05463a15c11d02f0)

Repository: [michael/spark-rs](https://git.cafe/michael/spark-rs)

Visibility: public

Requested revision: ac7390078dd008cf01333d0c05463a15c11d02f0

Requested commit: ac7390078dd008cf01333d0c05463a15c11d02f0

Commit: ac7390078dd008cf01333d0c05463a15c11d02f0

Tree: 455420f28a04e583ab13e5eb9afaa273f6c6efa8

Author: Michael Rodriguez

Committer: Michael Rodriguez

## Message

```
Turn back Outlook's dark-mode colors in pasted signatures

A signature copied from Outlook in dark mode comes with its text lightened
and backgrounds darkened, each color marked !important: black text is
white, so on the light sheet a signature is shown on, and in recipients'
light-mode mail, most of its lines vanished.

Those colors get their lightness back with the same hue, inverting the
transform Outlook's editor uses (CIELAB lightness flipped into #333..white).
Only text that would get darker and backgrounds that would get lighter
change, so it can only make a signature easier to read on white. The Rust
side does it as a signature is cleaned, so it's kept and sent right; the
editor does it as one is pasted or loaded, so it shows right, and a
signature saved before this is fixed the next time it's opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [de7f47f48f2eacf304569451a0c16cf5e3affbcf](https://git.cafe/michael/spark-rs/commit/de7f47f48f2eacf304569451a0c16cf5e3affbcf?format=markdown)

[Source at this commit](https://git.cafe/michael/spark-rs/tree/ac7390078dd008cf01333d0c05463a15c11d02f0?format=markdown)
