From d9a8edd8e9269aa1189d55c8d13caa05084435f5 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 27 Feb 2023 09:18:16 -0600 Subject: templates: allow inline user styles Allow custom user-defined styles in a styleset. The styles can take any name, and must be under the [user] ini section. All attributes apply to user defined styles. Example: [user] red.fg=red red.bold=true Add a .Style function which accepts the name of a user-defined style and applies it to the string. {{.Style "red" "foo"}} Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fb5021e..42c41de5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Change local domain name for SMTP with `smtp-domain=example.com` in `aerc.conf` - New column-based status line format with `status-columns`. +- Inline user-defined styles can be inserted in UI templates via the + `{{.Style "name" string}}` function. ### Changed -- cgit