From e4df1d22958ecd1dd4845fcdd920af41b030d85d Mon Sep 17 00:00:00 2001 From: jesko Date: Fri, 8 Nov 2024 19:55:44 +0100 Subject: [PATCH 1/2] a modest attempt to improve the logo aesthetics --- internal/ui/logo_test.go | 8 ++++---- internal/ui/splash.go | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/internal/ui/logo_test.go b/internal/ui/logo_test.go index 6a2fc0a0d4..8e67c689d2 100644 --- a/internal/ui/logo_test.go +++ b/internal/ui/logo_test.go @@ -15,7 +15,7 @@ func TestNewLogoView(t *testing.T) { v := ui.NewLogo(config.NewStyles()) v.Reset() - const elogo = "[#ffa500::b] ____ __.________ \n[#ffa500::b]| |/ _/ __ \\______\n[#ffa500::b]| < \\____ / ___/\n[#ffa500::b]| | \\ / /\\___ \\ \n[#ffa500::b]|____|__ \\ /____//____ >\n[#ffa500::b] \\/ \\/ \n" + const elogo = "[#ffa500::b] ____ __ ________ \n[#ffa500::b]| |/ / __ \\______\n[#ffa500::b]| /\\____ / ___/\n[#ffa500::b]| \\ \\ / /\\___ \\\n[#ffa500::b]|____|\\__ \\/____//____ /\n[#ffa500::b] \\/ \\/ \n", assert.Equal(t, elogo, v.Logo().GetText(false)) assert.Equal(t, "", v.Status().GetText(false)) } @@ -25,17 +25,17 @@ func TestLogoStatus(t *testing.T) { logo, msg, e string }{ "info": { - "[#008000::b] ____ __.________ \n[#008000::b]| |/ _/ __ \\______\n[#008000::b]| < \\____ / ___/\n[#008000::b]| | \\ / /\\___ \\ \n[#008000::b]|____|__ \\ /____//____ >\n[#008000::b] \\/ \\/ \n", + "[#008000::b] ____ __ ________ \n[#008000::b]| |/ / __ \\______\n[#008000::b]| /\\____ / ___/\n[#008000::b]| \\ \\ / /\\___ \\\n[#008000::b]|____|\\__ \\/____//____ /\n[#008000::b] \\/ \\/ \n", "blee", "[#ffffff::b]blee\n", }, "warn": { - "[#c71585::b] ____ __.________ \n[#c71585::b]| |/ _/ __ \\______\n[#c71585::b]| < \\____ / ___/\n[#c71585::b]| | \\ / /\\___ \\ \n[#c71585::b]|____|__ \\ /____//____ >\n[#c71585::b] \\/ \\/ \n", + "[#c71585::b] ____ __ ________ \n[#c71585::b]| |/ / __ \\______\n[#c71585::b]| /\\____ / ___/\n[#c71585::b]| \\ \\ / /\\___ \\\n[#c71585::b]|____|\\__ \\/____//____ /\n[#c71585::b] \\/ \\/ \n", "blee", "[#ffffff::b]blee\n", }, "err": { - "[#ff0000::b] ____ __.________ \n[#ff0000::b]| |/ _/ __ \\______\n[#ff0000::b]| < \\____ / ___/\n[#ff0000::b]| | \\ / /\\___ \\ \n[#ff0000::b]|____|__ \\ /____//____ >\n[#ff0000::b] \\/ \\/ \n", + "[#ff0000::b] ____ __ ________ \n[#ff0000::b]| |/ / __ \\______\n[#ff0000::b]| /\\____ / ___/\n[#ff0000::b]| \\ \\ / /\\___ \\\n[#ff0000::b]|____|\\__ \\/____//____ /\n[#ff0000::b] \\/ \\/ \n", "blee", "[#ffffff::b]blee\n", }, diff --git a/internal/ui/splash.go b/internal/ui/splash.go index bfe58e461b..08ad66634c 100644 --- a/internal/ui/splash.go +++ b/internal/ui/splash.go @@ -13,22 +13,22 @@ import ( // LogoSmall K9s small log. var LogoSmall = []string{ - ` ____ __.________ `, - `| |/ _/ __ \______`, - `| < \____ / ___/`, - `| | \ / /\___ \ `, - `|____|__ \ /____//____ >`, - ` \/ \/ `, + ` ____ __ ________ `, + `| |/ / __ \______`, + `| /\____ / ___/`, + `| \ \ / /\___ \`, + `|____|\__ \/____//____ /`, + ` \/ \/ `, } // LogoBig K9s big logo for splash page. var LogoBig = []string{ - ` ____ __.________ _________ .____ .___ `, - `| |/ _/ __ \_____\_ ___ \| | | |`, - `| < \____ / ___/ \ \/| | | |`, - `| | \ / /\___ \\ \___| |___| |`, - `|____|__ \ /____//____ >\______ /_______ \___|`, - ` \/ \/ \/ \/ `, + ` ____ __ ________ _______ ____ ___ `, + `| |/ / __ \______/ ___ \| | | |`, + `| /\____ / ___/ \ \/| | | |`, + `| \ \ / /\___ \ \___| |___| |`, + `|____|\__ \/____//____ /\______ /_______ \___|`, + ` \/ \/ \/ \/ `, } // Splash represents a splash screen. From 8b5a466a1a52aa628987d3fc42012348ff11e260 Mon Sep 17 00:00:00 2001 From: jesko Date: Sun, 10 Nov 2024 19:47:20 +0100 Subject: [PATCH 2/2] removes trailing comma --- internal/ui/logo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/logo_test.go b/internal/ui/logo_test.go index 8e67c689d2..168ef86e07 100644 --- a/internal/ui/logo_test.go +++ b/internal/ui/logo_test.go @@ -15,7 +15,7 @@ func TestNewLogoView(t *testing.T) { v := ui.NewLogo(config.NewStyles()) v.Reset() - const elogo = "[#ffa500::b] ____ __ ________ \n[#ffa500::b]| |/ / __ \\______\n[#ffa500::b]| /\\____ / ___/\n[#ffa500::b]| \\ \\ / /\\___ \\\n[#ffa500::b]|____|\\__ \\/____//____ /\n[#ffa500::b] \\/ \\/ \n", + const elogo = "[#ffa500::b] ____ __ ________ \n[#ffa500::b]| |/ / __ \\______\n[#ffa500::b]| /\\____ / ___/\n[#ffa500::b]| \\ \\ / /\\___ \\\n[#ffa500::b]|____|\\__ \\/____//____ /\n[#ffa500::b] \\/ \\/ \n" assert.Equal(t, elogo, v.Logo().GetText(false)) assert.Equal(t, "", v.Status().GetText(false)) }