aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/attach.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-11-20 16:22:40 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-21 13:31:04 +0100
commitbf683c7b09a17702e7d467b0b9f907edc15dc0bd (patch)
treeac85784dc3e2b69dc96c01a7b15a5ac57e8171f1 /commands/compose/attach.go
parentc063b1d5f38ae144b7c86fe450a58f5f0ead667b (diff)
downloadaerc-bf683c7b09a17702e7d467b0b9f907edc15dc0bd.tar.gz
ui: box and frame an interactive widget
Draw a framed box with a title containing an interactive-drawable widget. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'commands/compose/attach.go')
-rw-r--r--commands/compose/attach.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/compose/attach.go b/commands/compose/attach.go
index 967b7902..af5c023c 100644
--- a/commands/compose/attach.go
+++ b/commands/compose/attach.go
@@ -11,6 +11,7 @@ import (
"strings"
"git.sr.ht/~rjarry/aerc/commands"
+ "git.sr.ht/~rjarry/aerc/lib/ui"
"git.sr.ht/~rjarry/aerc/logging"
"git.sr.ht/~rjarry/aerc/widgets"
"github.com/mitchellh/go-homedir"
@@ -152,7 +153,7 @@ func (a Attach) openMenu(aerc *widgets.Aerc, args []string) error {
}
aerc.AddDialog(widgets.NewDialog(
- t,
+ ui.NewBox(t, "File Picker", "", aerc.SelectedAccountUiConfig()),
// start pos on screen
func(h int) int {
return h / 8