diff --git a/cmd/task/list.go b/cmd/task/list.go index 6efb9741e1a314976af983c6f600c9181034d687..14b3f4beb25891e955544d365e5e53c102fc4138 100644 --- a/cmd/task/list.go +++ b/cmd/task/list.go @@ -71,7 +71,7 @@ func runList(cmd *cobra.Command, _ []string) error { tasks = applyFilters(tasks, areaID, statusFilter, showAll) if len(tasks) == 0 { - fmt.Fprintln(cmd.OutOrStdout(), ui.Muted.Render("No tasks found")) + fmt.Fprintln(cmd.OutOrStdout(), "No tasks found") return nil } diff --git a/internal/ui/styles.go b/internal/ui/styles.go index 4a3c5a362087df9857ff5714729f62df2adacd51..291b0a32b2855d1007541f20f65fe6811364e4cb 100644 --- a/internal/ui/styles.go +++ b/internal/ui/styles.go @@ -17,10 +17,25 @@ var ( Success = lipgloss.NewStyle().Foreground(lipgloss.Color("2")) // green Warning = lipgloss.NewStyle().Foreground(lipgloss.Color("3")) // yellow Error = lipgloss.NewStyle().Foreground(lipgloss.Color("1")) // red - Muted = lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // gray Bold = lipgloss.NewStyle().Bold(true) ) +// Heading styles with backgrounds for contrast on any theme. +var ( + // H1 is the primary heading style (top-level items). + H1 = lipgloss.NewStyle(). + Bold(true). + Foreground(lipgloss.Color("0")). + Background(lipgloss.Color("4")). + Padding(0, 1) + // H2 is the secondary heading style (nested items). + H2 = lipgloss.NewStyle(). + Bold(true). + Foreground(lipgloss.Color("0")). + Background(lipgloss.Color("6")). + Padding(0, 1) +) + // FormatDate formats a time.Time as a date string using the user's locale. // Locale is auto-detected from LC_TIME, LC_ALL, or LANG environment variables. func FormatDate(t time.Time) string {