From de9f7a94805fd18aed1c820015095fcd665a0f33 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 10 Jun 2022 14:48:34 -0700 Subject: [PATCH] chore: remove some unused styles --- ui/styles/styles.go | 51 --------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/ui/styles/styles.go b/ui/styles/styles.go index b668ee155a7156387831dbf1307da8bc53851dc0..debd082a35e71d7e99e6c2df32cdcd136df9427b 100644 --- a/ui/styles/styles.go +++ b/ui/styles/styles.go @@ -24,15 +24,9 @@ type Styles struct { SelectorBox lipgloss.Style ReadmeBox lipgloss.Style - RepoTitleBorder lipgloss.Border - RepoNoteBorder lipgloss.Border - RepoBodyBorder lipgloss.Border - Repo lipgloss.Style RepoTitle lipgloss.Style - RepoTitleBox lipgloss.Style RepoCommand lipgloss.Style - RepoNoteBox lipgloss.Style RepoBody lipgloss.Style RepoHeader lipgloss.Style RepoHeaderName lipgloss.Style @@ -142,59 +136,14 @@ func DefaultStyles() *Styles { s.ReadmeBox = lipgloss.NewStyle() - s.RepoTitleBorder = lipgloss.Border{ - Top: "─", - Bottom: "─", - Left: "│", - Right: "│", - TopLeft: "╭", - TopRight: "┬", - BottomLeft: "├", - BottomRight: "┴", - } - - s.RepoNoteBorder = lipgloss.Border{ - Top: "─", - Bottom: "─", - Left: "│", - Right: "│", - TopLeft: "┬", - TopRight: "╮", - BottomLeft: "┴", - BottomRight: "┤", - } - - s.RepoBodyBorder = lipgloss.Border{ - Top: "", - Bottom: "─", - Left: "│", - Right: "│", - TopLeft: "", - TopRight: "", - BottomLeft: "╰", - BottomRight: "╯", - } - s.Repo = lipgloss.NewStyle() s.RepoTitle = lipgloss.NewStyle(). Padding(0, 2) - s.RepoTitleBox = lipgloss.NewStyle(). - BorderStyle(s.RepoTitleBorder). - BorderForeground(s.InactiveBorderColor) - s.RepoCommand = lipgloss.NewStyle(). Foreground(lipgloss.Color("168")) - s.RepoNoteBox = lipgloss.NewStyle(). - BorderStyle(s.RepoNoteBorder). - BorderForeground(s.InactiveBorderColor). - BorderTop(true). - BorderRight(true). - BorderBottom(true). - BorderLeft(false) - s.RepoBody = lipgloss.NewStyle(). Margin(1, 0)