~rjarry/aerc#223: 
style is not correctly layered

Having a custom styleset with

[user]
bold.bold=true

and setting

tab-title-account={{.Style .Account "bold"}}

in aerc.conf does not reverse colors for the text when the tab is deselected (it does reverse colors for the tab's padding (spaces around the text) though).

A current workaround for this problem is the following patch (courtesy of Robin):

diff --git a/lib/ui/context.go b/lib/ui/context.go
index 9ca7cc9d56c0..5ab326eddaf8 100644
--- a/lib/ui/context.go
+++ b/lib/ui/context.go
@@ -77,6 +77,7 @@ func (ctx *Context) Printf(x, y int, style tcell.Style,
 
        buf := parse.ParseANSI(str)
        buf.ApplyStyle(style)
+       buf.ApplyAttrs(style)
 
        old_x := x
Status
REPORTED
Submitter
~balejk
Assigned to
No-one
Submitted
4 months ago
Updated
4 months ago
Labels
No labels applied.

~balejk referenced this from #138 a month ago

Register here or Log in to comment, or comment via email.