aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-10-28 12:20:19 -0500
committerRobin Jarry <robin@jarry.cc>2022-11-06 23:17:02 +0100
commitc894ee2d7ae9442a04ca2af2dca5b576a850482a (patch)
tree31a4d9bd714c90892e67c7eb3faf17773352bc3d /widgets/aerc.go
parent4cf96270f135fb31411d933ab4b686fe4e4900cf (diff)
downloadaerc-c894ee2d7ae9442a04ca2af2dca5b576a850482a.tar.gz
status: add warning style and methods
Add a warning style to default statusline. Add methods to status, aerc, and account to push a warning message. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 81d07474..aef874b3 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -542,6 +542,10 @@ func (aerc *Aerc) PushError(text string) *StatusMessage {
return aerc.statusline.PushError(text)
}
+func (aerc *Aerc) PushWarning(text string) *StatusMessage {
+ return aerc.statusline.PushWarning(text)
+}
+
func (aerc *Aerc) PushSuccess(text string) *StatusMessage {
return aerc.statusline.PushSuccess(text)
}