summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-06-11 15:49:19 +0200
committerStefan Haller <stefan@haller-berlin.de>2024-06-23 12:33:16 +0200
commit7e92dbfd3d49c6bb859c5bd1bf5a43f09ef324b3 (patch)
treef53474457bfacb20d27d5d68bd116fdedffe0bcc /pkg/gui/types
parentdbc21af3b11940018c25a44dc3ccd33e4ebc0a06 (diff)
Add menu prompt
This makes it possible to add a prompt to a menu. It will be shown above the menu items, separated from them by a blank line.
Diffstat (limited to 'pkg/gui/types')
-rw-r--r--pkg/gui/types/common.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go
index 77f2f56eb..fc9168406 100644
--- a/pkg/gui/types/common.go
+++ b/pkg/gui/types/common.go
@@ -159,6 +159,7 @@ const (
type CreateMenuOptions struct {
Title string
+ Prompt string // a message that will be displayed above the menu options
Items []*MenuItem
HideCancel bool
ColumnAlignment []utils.Alignment