Skip to content

Commit ddf5664

Browse files
authored
Merge pull request #127 from svanharmelen/feat/confirmation
Make the active button stand out in more terminal themes
2 parents bb04dd3 + be5bf20 commit ddf5664

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: components/ConfirmationModal.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package components
22

33
import (
4+
"github.com/gdamore/tcell/v2"
45
"github.com/rivo/tview"
56

67
"github.com/jorgerojas26/lazysql/app"
@@ -19,6 +20,10 @@ func NewConfirmationModal(confirmationText string) *ConfirmationModal {
1920
}
2021
modal.AddButtons([]string{"Yes", "No"})
2122
modal.SetBackgroundColor(app.Styles.PrimitiveBackgroundColor)
23+
modal.SetButtonActivatedStyle(tcell.StyleDefault.
24+
Background(app.Styles.InverseTextColor).
25+
Foreground(app.Styles.ContrastSecondaryTextColor),
26+
)
2227
modal.SetTextColor(app.Styles.PrimaryTextColor)
2328

2429
return &ConfirmationModal{

0 commit comments

Comments
 (0)