diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-12 10:26:20 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-31 21:02:14 +0200 |
commit | ae4d742c5a90091c1229639a8480830805ac105d (patch) | |
tree | 5e018f6e4e21562a4f49f8726b028c697ec2222b /config/style.go | |
parent | 86441411f46ba067cb445e6590b8d12cd20c4490 (diff) | |
download | aerc-ae4d742c5a90091c1229639a8480830805ac105d.tar.gz |
templates: fix layered fg & bg color for inline styles
The logic was inverted. The style argument is actually the "under" layer
style. Each character in the RuneBuffer style must be applied on *top*
of it, not the other way around.
Use colors from style and override them with each character's colors if
they are set. Keep attributes handling unchanged.
Fixes: ab8f433e1739 ("templates: allow layered fg & bg color for inline styles")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'config/style.go')
0 files changed, 0 insertions, 0 deletions