From 7f5321f4163db3661e13999169fb0d349bafe7d4 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Fri, 6 Jan 2023 14:23:10 -0500 Subject: [PATCH] colors (#124) --- cmd/zrok/util.go | 6 +++--- cmd/zrok/version.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/zrok/util.go b/cmd/zrok/util.go index b30d6234..17cbb9b4 100644 --- a/cmd/zrok/util.go +++ b/cmd/zrok/util.go @@ -21,11 +21,11 @@ func mustGetAdminAuth() runtime.ClientAuthInfoWriter { return httptransport.APIKeyAuth("X-TOKEN", "header", adminToken) } -var errorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#D90166")).Background(lipgloss.Color("0")) +var errorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#D90166")) var errorLabel = errorStyle.Render("ERROR") -var warningStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFA500")).Background(lipgloss.Color("0")) +var warningStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFA500")) var warningLabel = warningStyle.Render("WARNING") -var codeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#00FFFF")).Background(lipgloss.Color("0")) +var codeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#00FFFF")) func showError(msg string, err error) { if err != nil { diff --git a/cmd/zrok/version.go b/cmd/zrok/version.go index ed98a3a2..84829686 100644 --- a/cmd/zrok/version.go +++ b/cmd/zrok/version.go @@ -26,6 +26,6 @@ func newVersionCommand() *versionCommand { } func (cmd *versionCommand) run(_ *cobra.Command, _ []string) { - zrokStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#FF0080")) + zrokStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#FF00EE")) fmt.Println(zrokStyle.Render(" _ \n _____ __ ___ | | __\n|_ / '__/ _ \\| |/ /\n / /| | | (_) | < \n/___|_| \\___/|_|\\_\\") + "\n\n" + codeStyle.Render(build.String()) + "\n") }