refactor: small updates to color and flag checking

This commit is contained in:
Slug-Boi
2024-11-16 22:58:53 +01:00
parent f0547bc0f8
commit 597d4f5572
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -49,6 +49,10 @@ var rootCmd = &cobra.Command{
screen.MoveTopLeft()
sel_auth := tui.Entry()
message = utils.Commit(args[0], sel_auth)
if tflag {
fmt.Println(message)
return
}
goto tui
case 1:
if len(args) == 1 {
+1 -1
View File
@@ -20,7 +20,7 @@ const listHeight = 14
var (
titleStyle = lipgloss.NewStyle().MarginLeft(2)
itemStyle = lipgloss.NewStyle().PaddingLeft(4).Foreground(lipgloss.Color("170"))
selectedItemStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("170"))
selectedItemStyle = lipgloss.NewStyle().PaddingLeft(2).Background(lipgloss.Color("236")).Foreground(lipgloss.Color("170"))
highlightStyle = lipgloss.NewStyle().PaddingLeft(4).Background(lipgloss.Color("236")).Foreground(lipgloss.Color("170"))
selectedHighlightStyle = lipgloss.NewStyle().PaddingLeft(2).Background(lipgloss.Color("206")).Foreground(lipgloss.Color("90"))
deletionStyle = lipgloss.NewStyle().MarginLeft(2).Foreground(lipgloss.Color("9"))