26f897c1ec
release / release-please (push) Failing after 1m49s
docs / build (push) Failing after 6m34s
release / build-and-upload (arm64, linux) (push) Has been cancelled
release / build-and-upload (arm64, windows) (push) Has been cancelled
release / build-darwin (amd64, darwin) (push) Has been cancelled
release / checksums (push) Has been cancelled
release / finalize (push) Has been cancelled
release / build-darwin (arm64, darwin) (push) Has been cancelled
release / build-and-upload (amd64, linux) (push) Has been cancelled
release / build-and-upload (amd64, windows) (push) Has been cancelled
docs / deploy (push) Has been cancelled
26 lines
494 B
Go
26 lines
494 B
Go
package tui
|
|
|
|
import (
|
|
"github.com/charmbracelet/lipgloss"
|
|
"github.com/muesli/termenv"
|
|
)
|
|
|
|
const (
|
|
ansiRed = "1"
|
|
ansiGreen = "2"
|
|
ansiYellow = "3"
|
|
ansiBlue = "4"
|
|
ansiCyan = "6"
|
|
ansiBrightBlack = "8"
|
|
)
|
|
|
|
func init() {
|
|
configureTUIColors()
|
|
}
|
|
|
|
// configureTUIColors forces ANSI-profile colors so styling follows the user's
|
|
// terminal theme instead of hard-coded 256-color palette values.
|
|
func configureTUIColors() {
|
|
lipgloss.SetColorProfile(termenv.ANSI)
|
|
}
|