From 57df1f9b5f96d53a46f17d12f0cb11c18d8ed747 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 14 Aug 2025 12:46:39 -0400 Subject: [PATCH] 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. --- internal/tui/components/dialogs/quit/quit.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/tui/components/dialogs/quit/quit.go b/internal/tui/components/dialogs/quit/quit.go index 190303b71eaf31984d0c0c164cb1ae39cc8fa9fe..763dc842d386a072176e1a26741d8b68c1e2993b 100644 --- a/internal/tui/components/dialogs/quit/quit.go +++ b/internal/tui/components/dialogs/quit/quit.go @@ -80,8 +80,10 @@ func (q *quitDialogCmp) View() string { } const horizontalPadding = 3 - yesButton := yesStyle.Padding(0, horizontalPadding).Render("Yep!") - noButton := noStyle.Padding(0, horizontalPadding).Render("Nope") + yesButton := yesStyle.PaddingLeft(horizontalPadding).Underline(true).Render("Y") + + yesStyle.PaddingRight(horizontalPadding).Render("ep!") + noButton := noStyle.PaddingLeft(horizontalPadding).Underline(true).Render("N") + + noStyle.PaddingRight(horizontalPadding).Render("ope") buttons := baseStyle.Width(lipgloss.Width(question)).Align(lipgloss.Right).Render( lipgloss.JoinHorizontal(lipgloss.Center, yesButton, " ", noButton),