Make some menu options bold

This commit is contained in:
HikariKnight 2023-11-08 17:27:21 +01:00
parent 5d98813402
commit fe170efba3
3 changed files with 17 additions and 8 deletions

View file

@ -1,6 +1,9 @@
package menu
import "github.com/nexidian/gocliselect"
import (
"github.com/gookit/color"
"github.com/nexidian/gocliselect"
)
// Make an OK menu
func Ok(msg string) string {
@ -19,8 +22,8 @@ func Ok(msg string) string {
func OkBack(msg string) string {
// Make the menu
menu := gocliselect.NewMenu(msg)
menu.AddItem("OK", "next")
menu.AddItem("Go Back", "back")
menu.AddItem(color.Bold.Sprint("OK"), "next")
menu.AddItem(color.Bold.Sprint("Go Back"), "back")
// Display the menu
choice := menu.Display()