~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
RESOLVED CLOSED
Submitter
~balejk
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
2 months ago
Labels
No labels applied.

~balejk referenced this from #138 1 year, 1 month ago

~balejk 2 months ago

I am no longer seeing this with the current master (fb2908e778de9ab).

~rjarry REPORTED CLOSED 2 months ago

probably fixed accidentally :)

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