on main help sign in
fix(tui): underline quit dialog buttons (#548)

This underlines the "Y" and "N" in "Yep!" and "Nope" of the quit dialog to make it consistent with other dialogs and indicates that these buttons can be activated by a key press.

commit57df1f9b5f96d53a46f17d12f0cb11c18d8ed747 authorAyman Bagabas <ayman.bagabas@gmail.com> dateThu 14 Aug 2025, 12:46 (1 year ago) parented5e17e
1 file changed+4−2
internal/tui/components/dialogs/quit/quit.go+4−2
internal/tui/components/dialogs/quit/quit.go+4−2
@@ -80,8 +80,10 @@ func (q *quitDialogCmp) View() string {
8080 }
8181
8282 const horizontalPadding = 3
83− yesButton := yesStyle.Padding(0, horizontalPadding).Render("Yep!")
84− noButton := noStyle.Padding(0, horizontalPadding).Render("Nope")
83+ yesButton := yesStyle.PaddingLeft(horizontalPadding).Underline(true).Render("Y") +
84+ yesStyle.PaddingRight(horizontalPadding).Render("ep!")
85+ noButton := noStyle.PaddingLeft(horizontalPadding).Underline(true).Render("N") +
86+ noStyle.PaddingRight(horizontalPadding).Render("ope")
8587
8688 buttons := baseStyle.Width(lipgloss.Width(question)).Align(lipgloss.Right).Render(
8789 lipgloss.JoinHorizontal(lipgloss.Center, yesButton, " ", noButton),